summaryrefslogtreecommitdiff
path: root/tox.ini
Commit message (Collapse)AuthorAgeFilesLines
* remove X509StoreFlags.NOTIFY_POLICY (#1213)Paul Kehrer2023-04-211-0/+1
| | | | | | | | | * remove X509StoreFlags.NOTIFY_POLICY fixes #1212 * also fix twisted * more CI fixes, sigh
* fix testing against cryptography main branch and improve twisted (#1209)Paul Kehrer2023-04-141-5/+4
| | | | | * fix testing against cryptography main branch and improve twisted * oops
* parallel twisted tests and newer mypy (#1197)Paul Kehrer2023-03-241-4/+4
| | | | | * parallel twisted tests and newer mypy * update mypy env
* Fix CI (#1185)Maximilian Hils2023-02-131-0/+2
| | | | | * Reformat code using black 23.x * fix compat with tox 4
* fixes for tox4 (#1167)Alex Gaynor2022-12-161-3/+9
| | | | | * fixes for tox4 * Update tox.ini
* Add support for Python 3.11 (#1161)Hugo van Kemenade2022-11-051-1/+1
|
* add `Connection.use_(certificate|privatekey)` (#1121)Maximilian Hils2022-09-161-1/+1
| | | | | | | | | | | * add `Connection.use_(certificate|privatekey)` * bump minimum cryptography version * deduplicate tests * black! * max line length
* Add inline type annotations (#1089)lovetox2022-05-201-1/+8
| | | | | | | | | | | | | | | | | * crypto: Add type annotations * Don’t redefine var mypy complains about the redefinition * _util: Add type annotations * rand: Add type annotations * Prepare package & CI for running mypy * fix toxenv name Co-authored-by: Maximilian Hils <github@maximilianhils.com>
* repair CI (#1116)Paul Kehrer2022-05-111-9/+2
| | | | | | | | | | | | | | | | | | | | | * repair CI * more fixes * pypy39 requires latest cryptography * Apply suggestions from code review Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com> * use constant * bump minimum version * remove unneeded try * fix Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
* flake8-import-order (#1099)whiteowl32022-03-021-0/+2
| | | | | | | | | | | * flake8-import-order * make sure bad import orders fail * flake8-import-order * add application name to flake8 section * correct import order for openssl as application
* Remove some more py27-isms (#1062)Alex Gaynor2021-11-241-1/+1
|
* Add CI jobs to test against cryptography wheels (#1049)Nathaniel J. Smith2021-11-051-1/+2
|
* Expose some DTLS-related features (#1026)Nathaniel J. Smith2021-11-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Expose DTLS_METHOD and friends * Expose OP_NO_RENEGOTIATION * Expose DTLS MTU-related functions * Expose DTLSv1_listen and associated callbacks * Add a basic DTLS test * Cope with old versions of openssl/libressl * blacken * Soothe flake8 * Add temporary hack to skip DTLS test on old cryptography versions * Update for cryptography v35 release * Add changelog entry * Fix versionadded:: * get_cleartext_mtu doesn't exist on decrepit old openssl * Rewrite DTLS test to work around stupid OpenSSL misbehavior * flake8 go away * minor tidying
* Added py310 to support matrix (#1051)Alex Gaynor2021-10-151-1/+1
|
* Misc CI cleanups (#1045)Nathaniel J. Smith2021-10-041-5/+4
| | | | | | | | | | | | | | * Misc CI cleanups - Update branch names to match upstream - Drop py2 testing * Appease stricter checking in latest Sphinx to get CI passing again * Don't accidentally delete an important line from tox.ini * Give py2 support a brief stay of execution As requested by @reaperhulk on IRC
* Add SSL_CTX_set_min_proto_version/SSL_CTX_set_max_proto_version bindings (#985)Maximilian Hils2021-03-101-2/+2
| | | | | | | | | | | | | | | | | | | * add Context.set_*_proto_version, fix #860 * docs: add new openssl tls methods * accept the fact that nothing can be taken for granted * bump minimum required cryptography version to 3.3 * drop support for Python 3.5 * use binary wheels for cryptography * Revert "use binary wheels for cryptography" This reverts commit 91a04c612ed1d0dd9fd541dfefe21cac7c25b1c1. * docker ci: compile cryptography with rust
* Tox.ini; Test on Python 3.9 and make flake8 stricter (#966)Christian Clauss2020-11-291-3/+2
| | | | | | | | | | | | | * Tox.ini; Test on Python 3.9 and make flake8 stricter * max-line-length = 88 * Remove unused import * Update tox.ini * Use PEP8 line length * Use PEP8 line length
* Drop CI for OpenSSL 1.0.2 (#953)Alex Gaynor2020-10-261-16/+1
| | | | | | | * Drop CI for OpenSSL 1.0.2 * Delete code for coverage reasons * Bump minimum cryptography version
* fixed tests for twisted change (#950)Alex Gaynor2020-10-141-5/+1
| | | * fixed tests for twisted change
* Paint it Black by the Rolling Stones (#920)Alex Gaynor2020-07-231-2/+9
|
* Remove dead examples directory from flake8 invocation. (#914)Benjamin Peterson2020-05-211-1/+1
|
* Uhhh, fix twisted tests to actually run twisted (wat) (#906)Alex Gaynor2020-03-301-2/+3
| | | | | * Uhhh, fix twisted tests to actually run twisted (wat) * Update tox.ini
* Drop support for Python 3.4, since cryptography dropped it (#884)Alex Gaynor2019-12-151-1/+1
|
* bump the minimum cryptography version (#875)Paul Kehrer2019-11-171-1/+1
| | | | | | | Users with older cryptography (and hence potentially older asn1crypto, a transitive dependency) are seeing a serious bug on macOS catalina due to the way older asn1crypto loads a shared library. While this isn't a pyOpenSSL bug bumping this dep might prevent the bug from impacting some users.
* Fixes #868 -- test on py38 (#870)Alex Gaynor2019-10-201-1/+1
|
* Run tests in random order to weed out issues (#842)Alex Gaynor2019-06-021-1/+2
|
* Hypothetically fixes pyOpenSSL tests (#805)Paul Kehrer2019-01-211-1/+2
| | | | | | | | | | | | | | | * fix openssl CLI testing for 1.1.1 * various 1.1.1 related fixes some of which are just admitting TLS 1.3 is fundamentally different and pinning the tests to TLS 1.2 * flake8 fixes * allow travis_infra env var through * fix twisted
* Fixes #784 -- bump minimum cryptography version (#785)Alex Gaynor2018-08-101-1/+1
|
* Added py37 (#772)Alex Gaynor2018-07-041-1/+1
| | | | | | | | * Added py37 to travis * Added py37 trove classifier * Added py37 to tox
* Run tests against pypy3, use travis's pypy/pypy3 (#743)Jeremy Lainé2018-03-211-1/+1
|
* Raise minimum cryptography version to 2.2.1, drop python 2.6 (#742)Jeremy Lainé2018-03-211-2/+2
|
* fix a memory leak and a potential UAF and also #722 (#723)Paul Kehrer2017-11-301-1/+1
| | | | | | | | * fix a memory leak and a potential UAF and also #722 * sanity check * bump cryptography minimum version, add changelog
* Drop py33 (#677)Alex Gaynor2017-07-251-1/+1
|
* move deps to extras (#661)Paul Kehrer2017-07-071-4/+4
| | | | | | * move deps to extras * this file is gone
* FIxed #266 -- attempt to deflake our tests (#660)Alex Gaynor2017-07-061-0/+1
| | | | | | * FIxed #266 -- attempt to deflake our tests * typo
* try loading trusted certs from a list of fallbacks (#633)Paul Kehrer2017-06-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * try loading trusted certs from a list of fallbacks pyca/cryptography will shortly begin shipping a wheel. Since SSL_CTX_set_default_verify_paths uses a hardcoded path compiled into the library, this will start failing to load the proper certificates for users on many linux distributions. To avoid this we can use the Go solution of iterating over a list of potential candidates and loading it when found. * capath is lazy loaded so we need to do a lot more checks This now checks to see if env vars are set as well as seeing if the dir exists and has valid certs in it. If either of those are true (or the number of certs is > 0) it won't load the fallback. If it does do the fallback it will also attempt to load certs from a dir as a final fallback * remove an early return * this shouldn't be commented out * oops * very limited testing * sigh, can't use these py3 exceptions of course * expand the tests a bit * coverage! * don't need this now * change the approach to use a pyca/cryptography guard value * test fix * older python sometimes calls itself linux2 * flake8 * add changelog * coverage * slash opt
* Fix invalid cast from ASN1_TIME to ASN1_GENERALIZEDTIME (#612)Moriyoshi Koizumi2017-06-211-1/+1
| | | | | | * Fix invalid cast from ASN1_TIME to ASN1_GENERALIZEDTIME, which ends up with an error with LibreSSL. * Require cryptography >= 1.9
* urllib3 uses pytest now, various upgrades to the travis env (#634)Paul Kehrer2017-06-091-1/+1
| | | | | | | | | | | | | | * urllib3 uses pytest now, also use trusty * more improvements * keep modernizing * try trusty later. * revert * still try for trusty, back to the right pypy
* Add an informative __main__.py (#620)Hynek Schlawack2017-05-131-0/+1
| | | | | | | | | | | | | | | | | | | | | | * Add an informative __main__.py Give users an easy way to figure out what versions they're running. * Why not more info! * Add test * No empty last line * Make @alex happy * DIAF Python 2.6 * Add cffi's version * Make debug a module * Add cryptography's compile-time OpenSSL
* Python 3.6 (#600)Hynek Schlawack2017-01-301-1/+1
|
* Add support for OCSP stapling. (#580)Cory Benfield2017-01-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | * Define the OCSPCallbackHelper. * Define set_ocsp_status_callback function. * Reframe this as the "server" helper. * Add OCSP helper. * Allow clients to request OCSP * Some tests for OCSP. * Don't forget to throw callback errors. * Add changelog entry for OCSP stapling. * Require at least cryptography 1.7 * Sorry Flake8, won't happen again. * How does spelling work?
* We should consider *actually* testing Twisted. (#579)Cory Benfield2016-11-281-1/+1
|
* Add the ability to set a custom verification time on X509Store (#567)Thomas Sileo2016-11-221-1/+1
|
* Convert NextProtoNegotiationTests to use pytest-style tests (#569)Alex Chan2016-11-101-1/+1
| | | | | | | | | | | | | | | | | | * Convert NextProtoNegotiationTests to use pytest-style tests Addresses #340. * Fix Twisted test suite See https://twistedmatrix.com/trac/ticket/8876 * Remove tests for OpenSSL with no NPN support NPN was added in OpenSSL 1.0.1. As of version 16.1.0, PyOpenSSL only supports OpenSSL 1.0.1 or later, so this test is: 1. Testing a use case that's no longer supported. 2. Dead code in CI.
* Convert test_rand to use pytest-style tests (#563)Alex Chan2016-10-241-1/+1
| | | | | | | | | | Fix up the assert helpers, subclass form `object` rather than test case, and use parametrization where appropriate. One helper method on the original `TestCase` was the ability to create temporary directories that were cleaned up at the end of the test -- now we use a pytest fixture instead: http://doc.pytest.org/en/latest/tmpdir.html Addresses #340.
* Avoid pytest 3 warning (#517)Hynek Schlawack2016-08-251-1/+1
| | | | | | * Avoid pytest warning * Upgrade pytest min version in tox.ini
* coverage 4.2 doesn't need the clean step anymore (#508)Hynek Schlawack2016-07-311-8/+3
| | | | | | * coverage 4.2 doesn't need the clean step anymore * Set version for report too
* Pass --reporter to trial so that it's output doesn't overflow travis (#490)Alex Gaynor2016-06-041-1/+1
|
* Fix cryptography minimum versionHynek Schlawack2016-03-161-2/+2
|
* Update these jobsAlex Gaynor2016-03-161-2/+2
|