Commit Graph

51 Commits

Author SHA1 Message Date
Daniel Kahn Gillmor
33e193253c Try to avoid tox test setup failures in unit-tests and test-setup CI jobs
I'm seeing errors like this in the test-setup and unit-tests CI jobs:

py: failed with pass_env values cannot contain whitespace, use comma to have multiple values in a single line, invalid values found 'HOME ARCHFLAGS LDFLAGS CFLAGS INCLUDE LIB LD_LIBRARY_PATH PATH'

py39-setup: failed with pass_env values cannot contain whitespace, use comma to have multiple values in a single line, invalid values found 'HOME ARCHFLAGS LDFLAGS CFLAGS INCLUDE LIB LD_LIBRARY_PATH PATH'

Despite the fact that [tox
documentation](https://tox.wiki/en/3.1.2/config.html) says that
"passenv" is "SPACE-SEPARATED-GLOBNAMES", the setup seems to think
that "pass_env" (which is not "passenv", note the lack of underscore)
is somehow bad.  Maybe putting each value on its own line will satisfy
this check?
2023-02-06 09:57:55 -05:00
Michael Greene
791c9bd860 more test definition tweaks 2022-11-23 17:17:19 -08:00
Michael Greene
eb99007b3a big PEP8 pass 2022-11-23 17:15:45 -08:00
Michael Greene
0e0e8d0114 drop 3.5 2022-11-23 16:39:01 -08:00
Michael Greene
e5240df3d3 python 3.5 is EOL 2022-11-23 16:36:27 -08:00
James Morris
955d166947 Add 3.10 tests 2021-12-21 11:41:29 -05:00
James Morris
1bc474dff2 Fix comment 2021-09-24 10:52:28 -04:00
James Morris
ff0c5cf9b9 Use a patched pytest-order
pytest-order contains a fix for parameterized tests in 1.0, but
that version dropped support for Python 3.5. This patched version
runs on Python 3.5 and has all the other updates in pytest-order 1.0.
2021-09-23 20:08:51 -04:00
James Morris
f0c7ce247d Use a compatible version of pytest-order 2021-06-25 15:32:23 -04:00
Paul Mulders
e2f427ea5c Port tests/test_05_actions.py to pytest-order 2021-06-23 17:58:34 +02:00
James Morris
5c9a9bad39 Further refine tox envlist 2021-01-06 16:33:23 -05:00
James Morris
35b2654154 Consolidate tox.ini setup test definitions 2020-12-10 15:02:26 -05:00
James Morris
edbde9eddb Add a setup39 test 2020-12-09 12:24:51 -05:00
James Morris
e7e2fa2c7b Updated tox allowlist_externals to quiet warning about rm 2020-12-09 12:10:19 -05:00
James Morris
6bffbd811d Simplified tox environment list 2020-12-09 12:05:12 -05:00
James Morris
fef0714462 Fix setup38 test 2020-10-07 15:38:29 -04:00
James Morris
6650e0c0c6 Add Python 3.8 to tests and drop Python 2.7 and 3.4 support 2020-10-07 15:38:29 -04:00
James Morris
f20b46232d Try using gpg==1.10.0 for tests 2020-07-17 14:13:56 -04:00
James Morris
9440ed0b62 Corrected python version for pep8 test 2020-07-16 12:29:28 -04:00
Michael Greene
824f2649fb soft unit test update pass:
- first pass super basic integration test separation
- BCPG decryption tests now pass so removed XFAIL marker
- remove unused imports
- added some warning filtering to reduce noise
2019-08-01 15:45:47 -07:00
rot42
d601655c27 support for Ed25519 signatures
This increases the versioned dependency on the cryptography module to
2.6, since that is the version that provides the necessary ed25519
functionality.

We also add a "pure" 25519 OpenPGP certificate for testing purposes.

Closes #221, #222, #247

Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
2019-08-01 15:57:48 -04:00
rot42
53c6c3ba94 support for ECDH encryption using Curve25519 (cv25519)
This increases the minimum versioned dependency on the cryptography
module to 2.5, where the necessary features are exposed.

We also add a mixed RSA + ECDH OepnPGP certificate for testing
purposes.

Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
2019-08-01 15:54:06 -04:00
Daniel Kahn Gillmor
989bd1fd83 update tox and requirements.txt to cryptography 1.5 as well 2019-08-01 12:23:20 -04:00
Stephen Fuhry
36a88858a9 swap out python 3.3 (EOL) with 3.7 2019-02-04 11:22:38 -05:00
Michael Greene
bdd04fba1e try building libgpgme and libgpg-error 2017-08-16 18:42:24 -07:00
Michael Greene
ca7ca6b24d bugfixen
- added missed call to _compute.chksum in ECDSAPriv
- replaced all gpg wrapper fixtures in the unit test suite with gpg package
- moved test suite gnupghome location to tests/gnupghome
2017-08-15 21:43:37 -07:00
Michael Greene
41bff26e46 test suite kerjiggering 2017-08-04 13:19:32 -07:00
Michael Greene
6977939da5 #166 - apply workaround from @SirCmpwn for changes to EnumMeta in Python 3.6
- also add Python 3.6 to the tox/travis test matrices
2017-02-27 10:05:57 -08:00
Michael Greene
3321022287 significantly updated unit test suite to work with py.test 3.x; renamed a few files 2017-01-11 14:04:42 -08:00
Michael Greene
fcb5058ae5 - better organization for running the tests, plus slight change to the fix itself [#156]
- locked py.test to 2.9.1 for now so I can figure out the changes to fixtures that are breaking my tests later
2016-06-02 16:47:44 -07:00
Michael Greene
d8834a6116 updated six version in the other two places
[skip ci]
2016-04-18 19:22:33 -07:00
Michael Greene
3cbad620e1 - generalized/refactored away some repeated code in MPIs subclasses
- updated __all__ in a few places
- improved test_exports
- pep8
2016-02-16 21:05:21 -08:00
Michael Greene
97e1678aa6 removed some leftover 3.2 stuff that was missed
[skip ci]
2016-02-16 16:18:01 -08:00
Michael Greene
0efb355643 - removed Python 3.2 from CI/unit tests and list of supported interpreters
- bumped minimum cryptography version to 1.1
- added missing pyasn1 line from requirements in README
[skip ci]
2016-02-15 14:23:34 -08:00
Michael Greene
890581880b added Python 3.5 to build matrix and tox configs;
fixed Python 3.2 compatibility for testing
[skip ci]
2016-01-12 14:20:26 -08:00
Michael Greene
9c6d9636b4 - implemented key protection such that unprotected private keys can be protected with passphrases, and already-protected passphrases can be re-protected with a new passphrase, and unit tests for these two scenarios - closes #149
- updated CI configs so that Python 3.2 can actually finish running the test suite without crashing since it is stuck on an older version of Cryptography
- added additional tests to test setup.py on all versions of Python after I noticed that a recent change would have made it break on Python 3.2
- enum34 should no longer be installed needlessly on Python 3.4 or newer
- added --no-cache-dir to tox's call to pip to install dependencies needed for testing
2015-06-11 19:55:07 -07:00
Michael Greene
84567e085f - PEP8
- modified tox.ini so that py32 can continue to be tested even though cryptography no longer supports it
 - Key Generation - #147 :
   - implemented new API method
   - added unit tests for generating keys, adding user ids, and adding new subkeys
   - added unit tests to test basic expected exception raising when trying to use incomplete keys
   - added a very basic key-completeness test to the @KeyAction decorator
 - added __contains__ to SignatureVerification
2015-06-01 17:45:41 -07:00
Michael Greene
f8ec3055ed PEP 8 2014-10-01 11:04:01 -07:00
Michael Greene
eaa7aef8e2 py.test errors for the last couple of builds should now be fixed 2014-09-15 17:09:47 -07:00
Michael Greene
9ea1d14ed0 updated tox pep8 to use a flake8 config section; PEP8 fixes; added one-pass signed messages (closes #103) 2014-08-22 14:32:43 -07:00
Michael Greene
43bc7bf7f6 Updated cryptography to 0.5.4 - closes #91
Slightly reorganized the default imports in pgpy/__init__.py
First pass at updating the ascii_unarmor regex to support cleartext signatures - #102, #27, #28
Added pypy3 to the test matrix as an allowed failure
2014-08-22 13:00:40 -07:00
Michael Greene
e1f43a3519 - renamed subpacket and packet files to be more easily eye-sortable
- updated parametrizations to match the new filenames
 - disabled stdout capturing in py.test
 - added classname output to TestPacket.test_load
2014-08-07 13:49:01 -07:00
Michael Greene
9ca80e7e5e added pypy to the test suite out of curiosity, and marked it as an allowed failure 2014-07-31 13:09:37 -07:00
Michael Greene
5a34bcaf11 grep didn't work; added -e flag to pip install for setup and setup27 2014-07-20 21:50:06 -07:00
Michael Greene
961101d6a4 fixes ERROR: Unknown environment "pep8" 2014-07-20 21:27:43 -07:00
Michael Greene
0f56d9ddf5 overrode deps for setup and setup27; added a second command to make sure 2014-07-20 21:26:29 -07:00
Michael Greene
c42e8f214a only need to do one PEP8 test, so removed the redundancy
added two tests to test setup.py using pip, to ensure that it actually installs as intended
2014-07-20 21:02:54 -07:00
Michael Greene
03c99333b8 allow byte-compiling in tox 2014-06-10 17:18:07 -07:00
Michael Greene
45a0c40b7d added options to [pytest] to make test collection faster; added environment variable to disable .pyc creation during testing 2014-05-09 20:41:40 -07:00
Michael Greene
5dbd94ad0e CI unit tests should now use TOX and test both libssl 0.9.8 and libssl 1.0.0 2014-05-08 17:36:55 -07:00