Accepting request 707591 from devel:languages:python
- update to 2.7 * BACKWARDS INCOMPATIBLE: Removed the cryptography.hazmat.primitives.mac.MACContext interface. The CMAC and HMAC APIs have not changed, but they are no longer registered as MACContext instances. * Removed support for running our tests with setup.py test. * Add support for :class:`~cryptography.hazmat.primitives.poly1305.Poly1305` when using OpenSSL 1.1.1 or newer. * Support serialization with Encoding.OpenSSH and PublicFormat.OpenSSH in :meth:`Ed25519PublicKey.public_bytes <cryptography.hazmat.primitives.asymmetric.ed25519.Ed25519PublicKey.public_bytes>` . * Correctly allow passing a SubjectKeyIdentifier to :meth:`~cryptography.x509.AuthorityKeyIdentifier.from_issuer_subject_key_identifier` and deprecate passing an Extension object. - Simplify the test execution to be more understandable OBS-URL: https://build.opensuse.org/request/show/707591 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cryptography?expand=0&rev=47
This commit is contained in:
commit
d49cadd4ab
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:26c821cbeb683facb966045e2064303029d572a87ee69ca5a1bf54bf55f93ca6
|
|
||||||
size 491580
|
|
@ -1,11 +0,0 @@
|
|||||||
-----BEGIN PGP SIGNATURE-----
|
|
||||||
|
|
||||||
iQEzBAABCAAdFiEEBf2foWz3VzUNkaVgI1rl8Sn57ZgFAlx3HYEACgkQI1rl8Sn5
|
|
||||||
7ZjdlAgAoZNwB3D9ERR9VKZBdbL0rHOi/6lXpTHpBK58aOvtc1JqS/YsrFzZNVkX
|
|
||||||
uBpiGKrQSl2HWpweLmps0o3hLASQ1Y7Xx3IsEDeSfSGz2J676hovz5MxezpPC180
|
|
||||||
LBTPUP7OeyR48fKjpFHZhYqxt2u8kyTuKyOs0LaXT7UwTmwzAG/KTYM7gDjHq6JW
|
|
||||||
/ykf+Ay7c62ODg5jUat57j67due7zHXcUO/f2/m07HDUVDsoUY6S9OTco4Z/U3Jy
|
|
||||||
CzqctjoE6s8sv0QdYV5JQKK5p9yD4J7OJvXfNO98wlGhx2HL0pENzNMXOpqkjE+d
|
|
||||||
XcDdG2nEC7SSwXubCEJoQWe3UMvjdg==
|
|
||||||
=JaO7
|
|
||||||
-----END PGP SIGNATURE-----
|
|
3
cryptography-2.7.tar.gz
Normal file
3
cryptography-2.7.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:e6347742ac8f35ded4a46ff835c60e68c22a536a8ae5c4422966d06946b6d4c6
|
||||||
|
size 495877
|
11
cryptography-2.7.tar.gz.asc
Normal file
11
cryptography-2.7.tar.gz.asc
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
-----BEGIN PGP SIGNATURE-----
|
||||||
|
|
||||||
|
iQEzBAABCAAdFiEEBf2foWz3VzUNkaVgI1rl8Sn57ZgFAlzwaSYACgkQI1rl8Sn5
|
||||||
|
7ZjKbQf/bmJ/XYifvMgvEbzKicoQTBiMXRafVsfOGIKo3l5YaNVxcB6S0rCD6jNE
|
||||||
|
plfWF9i8qW1kRdMt68YjfV/nwPcdYRdz1lMzPRhkAOgdFSMLk6QjYUzRy0Qqj5aq
|
||||||
|
UFCu9q5jrgXR7HU2MZz8CnjGZn18VH0Rvz3DZ9CwMXWQ94mGODYp19A+v61Y8vJg
|
||||||
|
Z/heW6ih7Dl/L6t1jP/AVdxABtyJ5KuEhqfmOJyrf7iuMFpu4TJIFGoJsyKd3wDT
|
||||||
|
5vcROhYi5LaUqxnGl2cd2TzuYHiZkxCb2lTvyOcYGD2qExwjG2KF0hGJQcSLY7cD
|
||||||
|
M8Uuo+Jug3pJWn5JX+JI9C5UrjlPBw==
|
||||||
|
=eR9e
|
||||||
|
-----END PGP SIGNATURE-----
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:03f38115dccb266dd96538f94067442a877932c2322661bdc5bf2502c76658af
|
|
||||||
size 35097785
|
|
@ -1,3 +1,23 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 3 13:45:56 UTC 2019 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||||
|
|
||||||
|
- update to 2.7
|
||||||
|
* BACKWARDS INCOMPATIBLE: Removed the cryptography.hazmat.primitives.mac.MACContext interface.
|
||||||
|
The CMAC and HMAC APIs have not changed, but they are no longer registered
|
||||||
|
as MACContext instances.
|
||||||
|
* Removed support for running our tests with setup.py test.
|
||||||
|
* Add support for :class:`~cryptography.hazmat.primitives.poly1305.Poly1305`
|
||||||
|
when using OpenSSL 1.1.1 or newer.
|
||||||
|
* Support serialization with Encoding.OpenSSH and PublicFormat.OpenSSH
|
||||||
|
in :meth:`Ed25519PublicKey.public_bytes <cryptography.hazmat.primitives.asymmetric.ed25519.Ed25519PublicKey.public_bytes>` .
|
||||||
|
* Correctly allow passing a SubjectKeyIdentifier to :meth:`~cryptography.x509.AuthorityKeyIdentifier.from_issuer_subject_key_identifier`
|
||||||
|
and deprecate passing an Extension object.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed May 29 14:41:39 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Simplify the test execution to be more understandable
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Feb 28 19:50:33 UTC 2019 - Michael Ströder <michael@stroeder.com>
|
Thu Feb 28 19:50:33 UTC 2019 - Michael Ströder <michael@stroeder.com>
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%bcond_without python2
|
%bcond_without python2
|
||||||
Name: python-cryptography
|
Name: python-cryptography
|
||||||
Version: 2.6.1
|
Version: 2.7
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python library which exposes cryptographic recipes and primitives
|
Summary: Python library which exposes cryptographic recipes and primitives
|
||||||
License: Apache-2.0 OR BSD-3-Clause
|
License: Apache-2.0 OR BSD-3-Clause
|
||||||
@ -28,13 +28,12 @@ URL: https://cryptography.io/en/latest/
|
|||||||
Source0: https://files.pythonhosted.org/packages/source/c/cryptography/cryptography-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/c/cryptography/cryptography-%{version}.tar.gz
|
||||||
Source1: https://files.pythonhosted.org/packages/source/c/cryptography/cryptography-%{version}.tar.gz.asc
|
Source1: https://files.pythonhosted.org/packages/source/c/cryptography/cryptography-%{version}.tar.gz.asc
|
||||||
Source2: %{name}.keyring
|
Source2: %{name}.keyring
|
||||||
# found on pypi but not on pythonhosted :/
|
|
||||||
Source3: https://files.pythonhosted.org/packages/source/c/cryptography_vectors/cryptography_vectors-%{version}.tar.gz
|
|
||||||
# PATCH-FIX-SLE disable-uneven-sizes-tests.patch bnc#944204
|
# PATCH-FIX-SLE disable-uneven-sizes-tests.patch bnc#944204
|
||||||
Patch1: disable-uneven-sizes-tests.patch
|
Patch1: disable-uneven-sizes-tests.patch
|
||||||
Patch2: skip_openssl_memleak_test.patch
|
Patch2: skip_openssl_memleak_test.patch
|
||||||
BuildRequires: %{python_module asn1crypto >= 0.21.0}
|
BuildRequires: %{python_module asn1crypto >= 0.21.0}
|
||||||
BuildRequires: %{python_module cffi >= 1.7}
|
BuildRequires: %{python_module cffi >= 1.7}
|
||||||
|
BuildRequires: %{python_module cryptography-vectors = %{version}}
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: %{python_module idna >= 2.1}
|
BuildRequires: %{python_module idna >= 2.1}
|
||||||
BuildRequires: %{python_module pyasn1-modules}
|
BuildRequires: %{python_module pyasn1-modules}
|
||||||
@ -89,7 +88,7 @@ symmetric ciphers, message digests and key derivation
|
|||||||
functions.
|
functions.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n cryptography-%{version} -a3
|
%setup -q -n cryptography-%{version}
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
%patch2 -p1
|
%patch2 -p1
|
||||||
|
|
||||||
@ -98,24 +97,15 @@ export CFLAGS="%{optflags} -fno-strict-aliasing"
|
|||||||
%python_build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
# Actually other *.c and *.h are appropriate
|
||||||
|
# see https://github.com/pyca/cryptography/issues/1463
|
||||||
|
find . -name .keep -print -delete
|
||||||
|
|
||||||
%python_install
|
%python_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{python_expand # this is going to be fun
|
%pytest_arch
|
||||||
# create virtualenv
|
|
||||||
$python %{_bindir}/virtualenv --system-site-packages TESTROOT-%{$python_bin_suffix}
|
|
||||||
. TESTROOT-%{$python_bin_suffix}/bin/activate
|
|
||||||
# install package in virtualenv
|
|
||||||
$python setup.py install
|
|
||||||
# install cryptography vectors
|
|
||||||
(cd cryptography_vectors-%{version} && $python setup.py install)
|
|
||||||
# run tests with virtualenv'd python
|
|
||||||
# (specify "tests" directory, otherwise py.test discovers tests in virtualenv'd setuptools)
|
|
||||||
$python -m pytest tests
|
|
||||||
# finish
|
|
||||||
deactivate
|
|
||||||
}
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE LICENSE.APACHE LICENSE.BSD
|
%license LICENSE LICENSE.APACHE LICENSE.BSD
|
||||||
|
Loading…
x
Reference in New Issue
Block a user