summaryrefslogtreecommitdiff
path: root/setup.py
Commit message (Collapse)AuthorAgeFilesLines
* See if we can always enable abi3 (#8823)Alex Gaynor2023-04-251-6/+0
| | | Previously it wasn't because pypy doesn't support abi3, but maybe the pyo3 feature works.
* Error cleanly in setup.py when using a too-old PyPy (#8634)Alex Gaynor2023-03-291-0/+3
|
* Upgrade to pyo3 0.18 (#6935)Alex Gaynor2023-03-241-1/+1
| | | | | | | * Upgrade to pyo3 0.16 * Upgrade to pyo3 0.17 * Upgrade to pyo3 0.18
* Migrate from setup.cfg to pyproject.toml completely (#8116)Alex Gaynor2023-03-251-1/+1
| | | One less file?
* update MSRV 1.48.0 -> 1.56.0 (#8587)Paul Kehrer2023-03-241-1/+1
| | | | | * update MSRV 1.48.0 -> 1.56.0 * bump some deps for MSRV
* drop python 3.6 support (#8448)Paul Kehrer2023-03-241-2/+1
| | | | | | | | | | | * drop python 3.6 support * Update tests/hazmat/bindings/test_openssl.py Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com> --------- Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
* Python 3.6 compatibility fix. (#8516)Matthew Ryan2023-03-151-1/+2
| | | | | | | | | | | | | | | | * Python 3.6 compatibility fix. The capture_output argument to subprocess.run() was not introduced until Python 3.7. Use stdout=subprocess.PIPE and stderr=subprocess.PIPE instead, which is equivalent. * Update pyproject.toml * Black --------- Co-authored-by: Matthew Ryan <matt.ryan@nominum.com> Co-authored-by: Paul Kehrer <paul.l.kehrer@gmail.com>
* Ressurect the PoC of OpenSSL from Rust (#7164)Alex Gaynor2023-03-151-3/+0
|
* Error loudly if you somehow run setup.py without CFFI installed (#7640)Alex Gaynor2022-09-231-0/+6
|
* remove ext_package so top_level.txt is accurate in wheel metadata (#7511)anthony sottile2022-08-151-1/+1
|
* Add the rustc version to debug assistance output when setup.py fails (#7382)Hood Chatham2022-06-281-0/+19
| | | | | | | | | | | | | | | | | * Add the rustc version to debug assistance output when setup.py fails * Update setup.py Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com> * Apply formatter, better string manipulation * Try again with string manipulation * check=True * apply formatter Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
* Bump MSRV to 1.48.0 (#7128)Alex Gaynor2022-04-271-1/+1
|
* update setup.py links to the canonical URL (#6284)Paul Kehrer2021-09-191-3/+3
| | | URL fragments don't work on the redirects anyway
* Port most of setup.py to setup.cfg (#6239)Paul Kehrer2021-08-291-92/+2
| | | | | | | | | * try porting over setup.py config * reduce duplication * flake * move long_description, remove more lines from setup.py
* Add more debug assistance (#6210)Christian Heimes2021-08-171-0/+15
| | | | | | Print Python version, platform, setuptools, pip, and setuptools_rust on failed builds. Signed-off-by: Christian Heimes <christian@python.org>
* Convert unpadding code to Rust (#5668)Alex Gaynor2021-02-211-22/+14
|
* Strict is deprecated (#5846)Paul Kehrer2021-02-181-1/+1
| | | | | * Strict is deprecated * bump pytest dep
* Bump pyo3 and lower MSRV (#5823)Alex Gaynor2021-02-131-1/+1
|
* Specify an MSRV in setup.py (#5789)Alex Gaynor2021-02-081-0/+1
|
* More aggressively point people at Rust version docs (#5782)Alex Gaynor2021-02-081-1/+4
|
* Remove setuptools_rust from install requirement (#5779)Christian Heimes2021-02-081-3/+9
| | | | | | | | | | | | * Remove setuptools_rust from install requirement setuptools_rust is only required for building cryptography. Fixes: https://github.com/pyca/cryptography/issues/5778 Signed-off-by: Christian Heimes <cheimes@redhat.com> * sdist needs setuptools_rust Signed-off-by: Christian Heimes <cheimes@redhat.com>
* Try to assist folks having issues with older pips (#5757)Alex Gaynor2021-02-071-1/+15
| | | | | | | * Try to assist folks having issues with older pips * Update setup.py * Update setup.py
* Integrate Rust into the build process properly (#5410)Alex Gaynor2020-12-221-1/+23
|
* put pytest configuration somewhere that goes in the sdist (#5648)Alex Gaynor2020-12-151-1/+1
| | | fixes #5646
* xdist experiment (#5621)Paul Kehrer2020-12-101-0/+2
| | | | | | | | | | * switch to xdist in tox for faster runs * not using auto to avoid too many processes on local laptops * we need to use pytest-cov to generate coverage properly now * these env vars aren't present on no coverage builds * tox changes
* remove check from setup.py that's not needed anymore (#5626)Alex Gaynor2020-12-091-9/+0
| | | pypy 7.2 is the oldest pypy that supports py3.6
* Complete removal of py2 (#5533)Alex Gaynor2020-12-091-1/+1
| | | | | * Drop Python 2 * Black everything
* Remove __future__ import from our code (#5610)Alex Gaynor2020-12-091-2/+0
|
* Write a bunch of primitives tests as subtests for performance (#5246)Alex Gaynor2020-12-091-1/+2
|
* Switch black to py36 as the minimum version (#5608)Alex Gaynor2020-12-081-1/+1
|
* Remove Python2 from CI and code that branched on it (#5607)Alex Gaynor2020-12-081-6/+2
| | | | | | | | | | | | | * Remove Python2 from CI and code that branched on it * Update setup.py Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> * remove * review feedback Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* bump cffi minimum version to help out pyopenssl (#5598)Alex Gaynor2020-12-011-1/+1
| | | fixes https://github.com/pyca/pyopenssl/issues/971
* remove legacy debugging code from setup.py (#5597)Alex Gaynor2020-12-011-11/+0
|
* print some stuff in setup.py to try to educate people (#5539)Paul Kehrer2020-10-311-69/+102
| | | | This is likely futile, but maybe it will slightly help out people who run into compilation errors and actually choose to look at the output.
* Drop python 3.5 (#5527)Alex Gaynor2020-10-281-2/+2
|
* remove keywords with side effects hack in setup.py (#5426)Paul Kehrer2020-08-251-142/+5
|
* remove idna support finally (#5351)Paul Kehrer2020-07-261-4/+0
| | | | | * remove idna support finally * remove unused import
* Paint it Black by the Rolling Stones (#5324)Alex Gaynor2020-07-201-75/+63
|
* Disable parallel docs builds to fix spellcheck (#5287)Alex Gaynor2020-06-261-1/+1
|
* ban a sphinxcontrib-spelling version that breaks things (#5284)Alex Gaynor2020-06-241-1/+1
| | | | | * ban a sphinxcontrib-spelling version that breaks things * try bumping the pypy3 version
* Support OpenSSH private key serialization format (#5146)Marko Kreen2020-06-201-0/+3
| | | | | | | | | * ssh.py contains load/serialize code. * Add PrivateFormat.OpenSSH to .private_bytes() format. * Add load_ssh_private_key(). * Use new code for PublicFormat.OpenSSH too. * load_ssh_public_key() now supports reading signed public keys. * Supported algorithms: rsa, dsa, ec, ed25519. * Optional dependency on 'bcrypt' package via [ssh] extra
* block another broken sphinx version (#5277)Paul Kehrer2020-06-141-1/+1
|
* Block a sphinx version that's broken (#5272)Alex Gaynor2020-06-121-1/+1
|
* Remove dead constant time code (#5239)Alex Gaynor2020-04-261-1/+0
|
* drop python 3.4 support (#5087)Paul Kehrer2019-12-081-2/+1
| | | | | | | | | | | | * drop python 3.4 support Our dependencies have started dropping support so it is becoming difficult to test. Additionally, Python 3.4 represents <2% of our downloads, so taking on a large maintenance burden to maintain support isn't a good use of limited time. Accordingly, we're dropping testing infrastructure and migrating our abi3 wheels to py35+. * use removed instead of dropped
* Fixes #5010 -- test and build 3.8 wheels (#5013)Alex Gaynor2019-10-171-0/+1
| | | | | | * Fixes #5010 -- test and build 3.8 wheels * try using isolated_build = True to work around a failure
* Remove asn1crypto dependency (#4941)David Benjamin2019-07-281-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove non-test dependencies on asn1crypto. cryptography.io actually contains two OpenSSL bindings right now, the expected cffi one, and an optional one hidden in asn1crypto. asn1crypto contains a lot of things that cryptography.io doesn't use, including a BER parser and a hand-rolled and not constant-time EC implementation. Instead, check in a much small DER-only parser in cryptography/hazmat. A quick benchmark suggests this parser is also faster than asn1crypto: from __future__ import absolute_import, division, print_function import timeit print(timeit.timeit( "decode_dss_signature(sig)", setup=r""" from cryptography.hazmat.primitives.asymmetric.utils import decode_dss_signature sig=b"\x30\x2d\x02\x15\x00\xb5\xaf\x30\x78\x67\xfb\x8b\x54\x39\x00\x13\xcc\x67\x02\x0d\xdf\x1f\x2c\x0b\x81\x02\x14\x62\x0d\x3b\x22\xab\x50\x31\x44\x0c\x3e\x35\xea\xb6\xf4\x81\x29\x8f\x9e\x9f\x08" """, number=10000)) Python 2.7: asn1crypto: 0.25 _der.py: 0.098 Python 3.5: asn1crypto: 0.17 _der.py: 0.10 * Remove test dependencies on asn1crypto. The remaining use of asn1crypto was some sanity-checking of Certificates. Add a minimal X.509 parser to extract the relevant fields. * Add a read_single_element helper function. The outermost read is a little tedious. * Address flake8 warnings * Fix test for long-form vs short-form lengths. Testing a zero length trips both this check and the non-minimal long form check. Use a one-byte length to cover the missing branch. * Remove support for negative integers. These never come up in valid signatures. Note, however, this does change public API. * Update src/cryptography/hazmat/primitives/asymmetric/utils.py Co-Authored-By: Alex Gaynor <alex.gaynor@gmail.com> * Review comments * Avoid hardcoding the serialization of NULL in decode_asn1.py too.
* Drop setup.py test support. (#4879)Alex Gaynor2019-05-071-57/+7
| | | | | | | | | | | | | | * Drop setup.py test support. It's fragile and relies on eggs. While our downstream redistributors don't love this (sorry!), it seems like the right tradeoff. * Remove unused * Added a changelog entry * typo * line length
* Added an explicit content type for long_description (#4826)Alex Gaynor2019-04-011-0/+1
| | | It already defaults to x-rst, but this silences a warning
* allow bytes-like for key/iv/data for symmetric encryption (#4621)Paul Kehrer2018-12-091-3/+3
| | | | | | | | | | | | | | | | | | * allow bytearrays for key/iv for symmetric encryption * bump pypy/cffi requirements * update docs, fix some tests * old openssl is naught but pain * revert a typo * use trusty for old pypy * better error msg again * restore match