PyCA's cryptography library
Go to file
2022-01-24 10:35:14 +00:00
tests Fix more issues with gating tests 2022-01-24 10:35:14 +00:00
.gitignore Update to 3.4.7 and simplify builds 2021-04-22 12:50:35 +02:00
0001-fix-pkcs12-parse-ordering.-fixes-5872-5879.patch Add backports of OpenSSL 3.0.0 fixes (upstream PR #6000) 2021-05-17 09:38:47 +02:00
0002-WIP-3.0.0-support-5250.patch Add backports of OpenSSL 3.0.0 fixes (upstream PR #6000) 2021-05-17 09:38:47 +02:00
0003-switch-to-using-EVP_PKEY_derive-instead-of-DH_comput.patch Add backports of OpenSSL 3.0.0 fixes (upstream PR #6000) 2021-05-17 09:38:47 +02:00
0004-3.0.0-deprecated-func-and-it-isn-t-useful-to-us-in-g.patch Remove bindings to ERR_GET_FUNC 2021-08-08 15:25:44 +02:00
0005-remove-unneeded-binding-6150.patch Remove bindings to ERR_GET_FUNC 2021-08-08 15:25:44 +02:00
0006-Specify-the-out-length-for-poly1305.patch Fix more issues with gating tests 2022-01-24 10:35:14 +00:00
conftest-skipper.py Merged update from upstream sources 2021-03-11 20:13:36 +00:00
gating.yaml Add gating definition for RHEL 9 2021-06-09 12:32:00 +05:30
python-cryptography.spec Fix more issues with gating tests 2022-01-24 10:35:14 +00:00
README.md Update to 3.4.7 and simplify builds 2021-04-22 12:50:35 +02:00
sources Update to 3.4.7 and simplify builds 2021-04-22 12:50:35 +02:00
vendor_rust.py Merged update from upstream sources 2021-03-11 20:13:36 +00:00

PyCA cryptography

https://cryptography.io/en/latest/

Packaging python-cryptography

The example assumes

  • Fedora Rawhide (f34)
  • PyCA cryptography release 3.4
  • Update Bugzilla issue is RHBZ#00000001

Build new python-cryptography

Switch and update branch

fedpkg switch-branch rawhide
fedpkg pull

Bump version and get sources

rpmdev-bumpspec -c "Update to 3.4 (#00000001)" -n 3.4 python-cryptography.spec
spectool -gf python-cryptography.spec

Upload new source

fedpkg new-sources cryptography-3.4.tar.gz

Commit changes

fedpkg commit --clog
fedpkg push

Build

fedpkg build

RHEL/CentOS builds

RHEL and CentOS use a different approach for Rust crates packaging than Fedora. On Fedora Rust dependencies are packaged as RPMs, e.g. rust-pyo3+default-devel RPM. These packages don't exist on RHEL and CentOS. Instead python-cryptography uses a tar ball with vendored crates. The tar ball is created by a script:

./vendor_rust.py
rhpkg upload cryptography-3.4-vendor.tar.bz2