diff options
Diffstat (limited to 'python-awscrt.spec')
-rw-r--r-- | python-awscrt.spec | 116 |
1 files changed, 100 insertions, 16 deletions
diff --git a/python-awscrt.spec b/python-awscrt.spec index 64da321..602c36d 100644 --- a/python-awscrt.spec +++ b/python-awscrt.spec @@ -1,11 +1,11 @@ %global _empty_manifest_terminate_build 0 Name: python-awscrt -Version: 0.16.13 +Version: 0.16.15 Release: 1 Summary: A common runtime for AWS Python projects License: Apache 2.0 URL: https://github.com/awslabs/aws-crt-python -Source0: https://mirrors.nju.edu.cn/pypi/web/packages/d1/0f/b70b4ee10b4eff4c6db54cd7b9240c4fd47430b1abab3feea935f00463a3/awscrt-0.16.13.tar.gz +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/cc/a0/ef5ab2a0d1a71be71e2decf2d9f762ccf54ab5d3b277e7250f8bd8ed3f34/awscrt-0.16.15.tar.gz %description @@ -23,25 +23,53 @@ Python 3 bindings for the AWS Common Runtime. This library is licensed under the Apache 2.0 License. ## Minimum Requirements: + * Python 3.7+ ## Installation To install from pip: -````bash + +```bash python3 -m pip install awscrt -```` +``` To install from Github: -````bash + +```bash git clone https://github.com/awslabs/aws-crt-python.git cd aws-crt-python git submodule update --init python3 -m pip install . -```` +``` To use from your Python application, declare `awscrt` as a dependency in your `setup.py` file. +### OpenSSL and LibCrypto (Unix only) + +aws-crt-python does not use OpenSSL for TLS. +On Apple and Windows devices, the OS's default TLS library is used. +On Unix devices, [s2n-tls](https://github.com/aws/s2n-tls) is used. +But s2n-tls uses libcrypto, the cryptography math library bundled with OpenSSL. + +To simplify installation, aws-crt-python has its own copy of libcrypto. +This lets you install a wheel from PyPI without having OpenSSL installed. +Unix wheels on PyPI come with libcrypto statically compiled in. +Code to build libcrypto comes from [AWS-LC](https://github.com/aws/aws-lc). +AWS-LC's code is included in the PyPI source package, +and the git repository includes it as a submodule. + +If you need aws-crt-python to use the libcrypto included on your system, +set environment variable `AWS_CRT_BUILD_USE_SYSTEM_LIBCRYPTO=1` while building from source: + +```sh +AWS_CRT_BUILD_USE_SYSTEM_LIBCRYPTO=1 python3 -m pip install --no-binary :all: --verbose awscrt +``` +( `--no-binary :all:` ensures you do not use the precompiled wheel from PyPI) + +You can ignore all this on Windows and Apple platforms, where aws-crt-python +uses the OS's default libraries for TLS and cryptography math. + ## Mac-Only TLS Behavior Please note that on Mac, once a private key is used with a certificate, that certificate-key pair is imported into the Mac Keychain. All subsequent uses of that certificate will use the stored private key and ignore anything passed in programmatically. Beginning in v0.6.2, when a stored private key from the Keychain is used, the following will be logged at the "info" log level: @@ -75,25 +103,53 @@ Python 3 bindings for the AWS Common Runtime. This library is licensed under the Apache 2.0 License. ## Minimum Requirements: + * Python 3.7+ ## Installation To install from pip: -````bash + +```bash python3 -m pip install awscrt -```` +``` To install from Github: -````bash + +```bash git clone https://github.com/awslabs/aws-crt-python.git cd aws-crt-python git submodule update --init python3 -m pip install . -```` +``` To use from your Python application, declare `awscrt` as a dependency in your `setup.py` file. +### OpenSSL and LibCrypto (Unix only) + +aws-crt-python does not use OpenSSL for TLS. +On Apple and Windows devices, the OS's default TLS library is used. +On Unix devices, [s2n-tls](https://github.com/aws/s2n-tls) is used. +But s2n-tls uses libcrypto, the cryptography math library bundled with OpenSSL. + +To simplify installation, aws-crt-python has its own copy of libcrypto. +This lets you install a wheel from PyPI without having OpenSSL installed. +Unix wheels on PyPI come with libcrypto statically compiled in. +Code to build libcrypto comes from [AWS-LC](https://github.com/aws/aws-lc). +AWS-LC's code is included in the PyPI source package, +and the git repository includes it as a submodule. + +If you need aws-crt-python to use the libcrypto included on your system, +set environment variable `AWS_CRT_BUILD_USE_SYSTEM_LIBCRYPTO=1` while building from source: + +```sh +AWS_CRT_BUILD_USE_SYSTEM_LIBCRYPTO=1 python3 -m pip install --no-binary :all: --verbose awscrt +``` +( `--no-binary :all:` ensures you do not use the precompiled wheel from PyPI) + +You can ignore all this on Windows and Apple platforms, where aws-crt-python +uses the OS's default libraries for TLS and cryptography math. + ## Mac-Only TLS Behavior Please note that on Mac, once a private key is used with a certificate, that certificate-key pair is imported into the Mac Keychain. All subsequent uses of that certificate will use the stored private key and ignore anything passed in programmatically. Beginning in v0.6.2, when a stored private key from the Keychain is used, the following will be logged at the "info" log level: @@ -121,25 +177,53 @@ Python 3 bindings for the AWS Common Runtime. This library is licensed under the Apache 2.0 License. ## Minimum Requirements: + * Python 3.7+ ## Installation To install from pip: -````bash + +```bash python3 -m pip install awscrt -```` +``` To install from Github: -````bash + +```bash git clone https://github.com/awslabs/aws-crt-python.git cd aws-crt-python git submodule update --init python3 -m pip install . -```` +``` To use from your Python application, declare `awscrt` as a dependency in your `setup.py` file. +### OpenSSL and LibCrypto (Unix only) + +aws-crt-python does not use OpenSSL for TLS. +On Apple and Windows devices, the OS's default TLS library is used. +On Unix devices, [s2n-tls](https://github.com/aws/s2n-tls) is used. +But s2n-tls uses libcrypto, the cryptography math library bundled with OpenSSL. + +To simplify installation, aws-crt-python has its own copy of libcrypto. +This lets you install a wheel from PyPI without having OpenSSL installed. +Unix wheels on PyPI come with libcrypto statically compiled in. +Code to build libcrypto comes from [AWS-LC](https://github.com/aws/aws-lc). +AWS-LC's code is included in the PyPI source package, +and the git repository includes it as a submodule. + +If you need aws-crt-python to use the libcrypto included on your system, +set environment variable `AWS_CRT_BUILD_USE_SYSTEM_LIBCRYPTO=1` while building from source: + +```sh +AWS_CRT_BUILD_USE_SYSTEM_LIBCRYPTO=1 python3 -m pip install --no-binary :all: --verbose awscrt +``` +( `--no-binary :all:` ensures you do not use the precompiled wheel from PyPI) + +You can ignore all this on Windows and Apple platforms, where aws-crt-python +uses the OS's default libraries for TLS and cryptography math. + ## Mac-Only TLS Behavior Please note that on Mac, once a private key is used with a certificate, that certificate-key pair is imported into the Mac Keychain. All subsequent uses of that certificate will use the stored private key and ignore anything passed in programmatically. Beginning in v0.6.2, when a stored private key from the Keychain is used, the following will be logged at the "info" log level: @@ -150,7 +234,7 @@ static: certificate has an existing certificate-key pair that was previously imp %prep -%autosetup -n awscrt-0.16.13 +%autosetup -n awscrt-0.16.15 %build %py3_build @@ -190,5 +274,5 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog -* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.16.13-1 +* Fri Apr 21 2023 Python_Bot <Python_Bot@openeuler.org> - 0.16.15-1 - Package Spec generated |