Commit graph

131 commits

Author SHA1 Message Date
Alex Gaynor
785ebd8400 random hack to maybe support older pips (#3970) (#3973) 2017-10-12 12:35:07 +08:00
Paul Kehrer
fce63a57b4 disable smart quotes in sphinx to workaround a spellchecker issue (#3946)
This makes it so we don't have to pin sphinx while we wait for
sphinxcontrib-spelling to properly handle smart quotes
2017-10-03 21:16:50 -04:00
Alex Gaynor
7bb0210ef9 blacklist yet another version of sphinx (#3940) 2017-09-26 09:52:04 +08:00
Alex Gaynor
4c41ab087d Switch to using the other style of environment markers (#3796)
* Switch to using the other style of environment markers

* We don't do py3.3 any more!

* changelog
2017-08-24 08:33:01 +08:00
Alex Gaynor
ca941bd00b bump pytest version (#3860) 2017-08-10 21:30:07 -05:00
Alex Gaynor
7f40239ea2 Blacklist pytest 3.2.0 because it breaks us (#3835)
See upstream: https://github.com/pytest-dev/pytest/issues/2644
2017-08-01 18:54:35 -05:00
Alex Gaynor
bacff94f5b simplify setup.py branches (#3806) 2017-07-22 16:12:54 +03:00
Alex Gaynor
0a8bdff513 simplify pyenchant requirement (#3805) 2017-07-21 20:57:50 +03:00
Alex Gaynor
d3c4ba3a79 Blacklist some pyenchant versions (#3799) 2017-07-20 06:57:59 +02:00
Alex Gaynor
bb31501f41 sphinx 1.6.3 is also no good (#3748) 2017-07-02 17:32:21 -05:00
Paul Kehrer
e3a2fb209b remove python 3.3 from CI (#3729)
* remove python 3.3 from CI

* remove 3.3 everywhere, not just from CI
2017-06-26 21:08:33 -04:00
Alex Gaynor
fe2b17407b Remove entry_points from setup.py (#3723) 2017-06-25 08:09:11 -10:00
Alex Gaynor
9bf8174367 Sphinx 1.6.2 is also broken (#3627) 2017-05-28 13:15:42 -05:00
Alex Gaynor
6091e11cae Bump the minimum PyPy/cffi version and simplify as a result (#3585)
* Bump the minimum PyPy/cffi version and simplify as a result

* unused imports

* grumble, fix
2017-05-23 20:31:03 -07:00
Alex Gaynor
e748b39339 Remove dependency on setuptools (#3567) 2017-05-22 20:54:34 -07:00
Paul Kehrer
5103235129 time to remove commoncrypto, fare thee well (#3551)
* time to remove commoncrypto, fare thee well

* remove even more

* update the changelog

* remove more things

* don't need this function

* remove CAST5 CTR tests since that was only supported in commoncrypto

* assert a thing
2017-05-20 10:09:02 -07:00
Alex Gaynor
c1f9169181 pin sphinx version to avoid test breakage (#3544) 2017-05-17 08:47:36 -05:00
Alex Gaynor
0417d00d9f Don't compare cffi version using strings (#3524) 2017-04-29 09:00:24 -05:00
Alex Gaynor
82393f9579 bump minimum setuptools version (#3513)
This is sort of a pre-req for #3508 (but not really, because setuptools needs to be this version before setup.py even runs for that PR). Because we still support older setuptools versions in our pkg_resources code, this is mostly a gentle nudge to the ecosystem.
2017-04-22 11:04:27 +08:00
Alex Gaynor
8ad694c28c Fixes #3409 -- bump idna dep to a version with massively improved performance/memory usage (#3411) 2017-02-20 10:45:20 -06:00
Paul Kehrer
9b34ca92c3 add support for update_into on CipherContext (#3190)
* add support for update_into on CipherContext

This allows you to provide your own buffer (like recv_into) to improve
performance when repeatedly calling encrypt/decrypt on large payloads.

* another skip_if

* more skip_if complexity

* maybe do this right

* correct number of args

* coverage for the coverage gods

* add a cffi minimum test tox target and travis builder

This tests against macOS so we capture some commoncrypto branches

* extra arg

* need to actually install py35

* fix

* coverage for GCM decrypt in CC

* no longer relevant

* 1.8 now

* pep8

* dramatically simplify

* update docs

* remove unneeded test

* changelog entry

* test improvements

* coverage fix

* add some comments to example

* move the comments to their own line

* fix and move comment
2017-02-16 23:20:38 -05:00
Ofek Lev
0e6a129724 replace pyasn1 with asn1crypto (#3361)
* replace pyasn1 with asn1crypto

* allow trailing bytes

* fix x509 test

* update CHANGELOG.rst

* fix assert

* make asn1crypto code more idiomatic

* find tag

* final clean-up

* leave trailing byte logic unchanged

* document dependency change

* spelling

* fix spelling
2017-02-08 13:09:41 +08:00
Alex Gaynor
31b5d784e6 Fixed #3334 -- added Python 3.6 support (#3335)
* Fixed #3334 -- added Python 3.6 support

* install py36

* empty commit to retrigger travis

* this is an impressively dumb typo
2016-12-23 11:20:36 -06:00
Paul Kehrer
f2691895a2 older readme_renderer doesn't work with docutils 0.13 (#3300) 2016-12-09 17:31:15 -05:00
InvalidInterrupt
8e66ca6813 CertificateBuilder accepts aware datetimes for not_valid_after and not_valid_before (#2920)
* CertificateBuilder accepts aware datetimes for not_valid_after and not_valid_before
These functions now accept aware datetimes and convert them to UTC

* Added pytz to test requirements

* Correct pep8 error and improve Changelog wording

* Improve tests and clarify changelog message

* Trim Changelog line length

* Allow RevokedCertificateBuilder and CertificateRevocationListBuilder to accept aware datetimes

* Fix accidental changelog entry
2016-08-16 22:39:31 -04:00
Alex Gaynor
14a9ad4c35 Mark the minimum pytest version in setup.py. (#3035)
Fixes #3034
2016-07-01 21:32:23 -05:00
Paul Kehrer
c6c3b6d9d5 pip is prejudiced against dashes and underscores (#2922) 2016-05-29 01:17:08 -04:00
Frazer McLean
542ea8ebd2 Remove redundant excludes from find_packages
Resolves #2854.

tests don't need excluded because they're not within the "src" directory.
2016-03-26 23:11:03 +01:00
Alex Gaynor
de3aa05c45 Don't try to use hypothesis on Python 2.6, upstream dropped support 2016-02-19 07:33:56 -05:00
Alex Gaynor
30e199e0fb Require a newer setuptools.
This lets a long confusing comment.
2016-01-23 09:26:07 -05:00
Paul Kehrer
9244deaa07 Merge pull request #2676 from alex/docs-pep8-dedupe
Centralize declaration of docs and pep8 deps in setup.py
2016-01-18 09:08:24 -06:00
Alex Gaynor
b638dba24e Delete two out of date comments 2016-01-17 23:45:10 -05:00
Alex Gaynor
9417608c11 Centralize declaration of docs and pep8 deps in setup.py 2016-01-17 23:28:05 -05:00
Alex Gaynor
e74dc4ed86 add this back, we couldn't dedupe there 2016-01-17 11:46:25 -05:00
Alex Gaynor
22f7ec5fc0 syntax error 2016-01-17 11:41:40 -05:00
Christian Heimes
830af271de Port callbacks to new static callback
cffi 1.4.0 will introduce a new API to create static callbacks. Contrary
to the old callback API, static callbacks no longer depend on libffi's
dynamic code generation for closures. Static code has some benefits over
dynamic generation. For example the code is faster. Also it doesn't need
writeable and executable memory mappings, which makes it compatible with
SELinux's deny execmem policy.

The branch depends on PR #2488.

https://bitbucket.org/cffi/cffi/issues/232/static-callbacks

Closes: #2477
Signed-off-by: Christian Heimes <cheimes@redhat.com>
2016-01-07 11:38:34 -08:00
Alex Gaynor
9a0ad04393 Fixed #2605 -- require setuptools 1.0
Per @dstufft:

- 0.6.28 or something around there that supports wheels
- 0.7 is the version that introduced marker support in setuptools
- 1.0 is the version where setuptools started using and verifying tls
2015-12-30 16:56:34 -05:00
Paul Kehrer
1e555aa2aa Revert "pin pytest to disallow 2.8.4 which breaks tests"
This reverts commit ed48066a3f.
2015-12-11 22:24:36 -06:00
Alex Gaynor
ed48066a3f pin pytest to disallow 2.8.4 which breaks tests 2015-12-07 19:57:51 -05:00
Paul Kehrer
8b5d094ca3 switch to using pyasn1_modules for the test 2015-10-27 09:35:17 +09:00
Paul Kehrer
5a2bb54bbb encode countryName with PrintableString
This commit adds a dependency on asn1crypto for testing purposes to
parse the certificate and confirm that countryName is encoded with
PrintableString while other fields are UTF8String. This is a test
only dep.
2015-10-20 11:13:07 -05:00
Dominic Chen
9604d9e983 add shebang for setup.py scripts 2015-10-10 05:17:31 +00:00
Paul Kehrer
78f6b5106a unpin pytest now that 2.8.2 is released 2015-10-07 12:14:51 -05:00
Paul Kehrer
584d9d6084 hypothesis-pytest is no longer a required package 2015-10-02 11:13:52 -05:00
Terry Chia
36a787ff21 Address comments. 2015-09-30 19:13:14 +08:00
Terry Chia
6325d5c9bc == should be !=. 2015-09-26 22:31:53 +08:00
Terry Chia
5cec1bf1b6 Add plumbing for hypothesis. 2015-09-26 22:31:53 +08:00
Alex Gaynor
959403b6df Pin pytest to <2.8, there's a bug with deprecation warnings 2015-09-19 13:19:43 -04:00
Alex Gaynor
1d5805b6ec added a trove classifier 2015-09-17 20:57:44 -04:00
Paul Kehrer
7d17cbb8ec raise an error if trying to install on PyPy < 2.6 2015-08-20 13:30:23 -05:00