Commit Graph

907 Commits (1f7e80a33d9a67055b37d1730ca77c1e87835f69)

Author SHA1 Message Date
Isis Lovecruft 543d478313
Fix versioneer.versionfile_source location. 2013-07-02 09:42:39 +00:00
Isis Lovecruft 76f02a3abe
Merge branch 'release/1.1.2' 2013-07-02 09:39:21 +00:00
Isis Lovecruft d199a7512e
Start Pythonising the Makefile test cleanup actions. 2013-07-02 09:36:48 +00:00
Isis Lovecruft c4cf7db682
Remove MANIFEST.in now that all files are now in setup.py. 2013-07-02 09:18:41 +00:00
Isis Lovecruft 0e01dca38e
Add test_suite command to setup.py.
* After installation, tests can now be run with:
   '$ python setup.py test_suite'
2013-07-02 09:17:21 +00:00
Isis Lovecruft 6326ec8a43
Add versioneer.py to scripts list in setup.py. 2013-07-02 09:17:03 +00:00
Isis Lovecruft ec8ae825cc
Add README, LICENSE, and TODO to package_data in setup.py. 2013-07-02 09:16:21 +00:00
Isis Lovecruft 1a38d786a3
Fix unittest import_with_colons to use key dict. 2013-07-02 09:14:56 +00:00
Isis Lovecruft b3decd7b73
Add imports specific to running unittests after an installation. 2013-07-02 09:13:58 +00:00
Isis Lovecruft eca66e2d09
Unignore MANIFEST.in file. 2013-07-02 08:34:10 +00:00
Isis Lovecruft a09be69fd8
Unignore setup.cfg file. 2013-07-02 08:33:52 +00:00
Isis Lovecruft f450aeb9b0
Reorganise docs and update README. 2013-07-02 08:32:34 +00:00
Isis Lovecruft 1f2127628e
Merge branch 'master' into develop 2013-07-02 07:43:56 +00:00
Isis Lovecruft fe21a2f54e
Merge branch 'release/1.1.1' 2013-07-02 07:43:42 +00:00
Isis Lovecruft f1a6b14a7a
Fix PyPI classifier strings. 2013-07-02 07:42:12 +00:00
Isis Lovecruft 555364ddf5
Merge branch 'master' into develop 2013-07-02 07:33:19 +00:00
Isis Lovecruft 57a6748c00
Merge branch 'release/1.1.0' 2013-07-02 07:32:58 +00:00
Isis Lovecruft 0108587534
Merge branch 'feature/module-layout' into develop 2013-07-02 07:21:59 +00:00
Isis Lovecruft ab54c7b71e
Make detached binary sig unittest test what it's supposed to. 2013-07-02 07:17:51 +00:00
Isis Lovecruft 0ca6352457
Add check on recv-key size after writing it to a file. 2013-07-02 07:15:31 +00:00
Isis Lovecruft db4826f815
Fix an error in a unittest due to attempt to write class obj, not str form. 2013-07-02 07:14:48 +00:00
Isis Lovecruft ea8c2c5e1f
Ugh. Change the unittest paths again. 2013-07-02 07:14:21 +00:00
Isis Lovecruft f2cfd3f04b
Merge branch 'develop' into feature/module-layout
Conflicts:
	gnupg/_parsers.py
2013-07-02 01:26:35 +00:00
Isis Lovecruft 311a90cb33
Merge branch 'master' into develop 2013-07-02 01:12:43 +00:00
Isis Lovecruft 9c770cbc39
Merge branch 'release/1.0.2' 2013-07-02 01:12:05 +00:00
Isis Lovecruft dc1e54a4ed
Merge remote-tracking branch 'tomgalloway/develop' into develop 2013-07-02 01:04:45 +00:00
Isis Lovecruft e8062c95aa
Fix variable names in unittest: pubring→keyring. 2013-07-02 00:55:53 +00:00
Isis Lovecruft e18e10edd1
Add a debug statement to a unittest when we've downloaded a key. 2013-07-02 00:55:26 +00:00
Isis Lovecruft 61b27bcd3b
Ignore additions to gnupg/tests/files/ directory. 2013-07-02 00:54:05 +00:00
Isis Lovecruft 3b7457ae74
Remove a print statement from a unittest. 2013-07-02 00:43:54 +00:00
Isis Lovecruft 6cf7640c5c
Fix whitespace formatting for a line in gnupg/tests/test_gnupg.py. 2013-07-02 00:43:12 +00:00
Isis Lovecruft 12b1de719a
Update paths in unittests to disregard the installed directory. 2013-07-02 00:42:17 +00:00
Isis Lovecruft 8e2773207b
Ignore setup.cfg maintainer upload configuration file. 2013-07-02 00:36:48 +00:00
Isis Lovecruft 26bd9e2585
Merge branch 'develop' into feature/module-layout 2013-06-28 13:17:24 +00:00
Isis Lovecruft 67e823dbf1
Add repoze.sphinx to docs dependency 'extras_require' setting in setup.py. 2013-06-28 13:14:43 +00:00
Isis Lovecruft 8d39234889
Add test logs and files to gitignore. 2013-06-28 13:14:29 +00:00
Isis Lovecruft d7a0ffb395
Move tests/* → gnupg/test/* 2013-06-28 13:13:27 +00:00
Tom Galloway 6d08fe074a Clean up tabs. 2013-06-28 13:25:23 +01:00
Tom Galloway c10df26d0b Upstream issue #62 also handled KEYREVOKED status. Changes reflect this. 2013-06-28 13:20:39 +01:00
Isis Lovecruft 220e68bdfc
Change unittest for separate keyrings to add extra --keyring option for now.
* At some point, as mentioned in an earlier commit, we should actually make
   some sort of helper function for adding extra keyring, so that their keys
   can be used/imported/exported/whatever the user wants to do with them,
   without changing the normal main keyrings.
2013-06-28 07:27:57 +00:00
Isis Lovecruft 1780c7489a
Change the _generated_keys directory for unittests to be under tests/files/. 2013-06-28 07:27:07 +00:00
Isis Lovecruft ad5c282e9a
Change setup.py to rename the package from 'python-gnupg' to 'gnupg'.
* To import, the same 'import gnupg; gpg=gnupg.GPG' is still used, so this
   changes nothing for applications which have started using this fork.

 * This name appears to be untaken on PyPI, the changes I've made thus far are
   significant, and, I believe, are not entirely backwards compatible with
   upstream, do to various keyword argument and method renamings and such.

 * Upstream is unresponsive, their development is private, and the only way to
   get their code is to download an entire tarball and do a diff, since no
   public CVS is available. Also, looking at their recent releases in the past
   five months, they appear to be fixing bugs I've already fixed, albeit in
   different ways -- and not all of the bugs I've fixed, as the shell escape
   trick still works in upstream's 0.3.4 version -- which leads me to believe
   that they are generally oblivious to this fork, though I have tried to
   contact them several times.

 * At first, I merely bumped the major version number up to indicate the
   incompatibility, but in order to upload to PyPI it would need a different
   name, and so I might as well pick a new one and just go with it, in order
   to avoid the general confusion which might result from keeping the name
   'python-gnupg'.
2013-06-28 07:17:12 +00:00
Isis Lovecruft f11ea6901c
Set gpg.temp_[key|sec]ring to None after setting key.[key|sec]ring.
* Change the returned _parsers.GenKey from gnupg.GPG.gen_key() to store the
   location of the renamed temporary keyrings as attributes. This way, one can
   do something like:

   >>> key = gpg.gen_key(key_input)
   >>> key.keyring
   './generated-keys/328A5C6C1B2F0891125ECBE4624276B5A2296478.pubring.gpg'
2013-06-28 07:09:35 +00:00
Isis Lovecruft 8232f14f2a
Remove commented out code from GPG.gen_key() for import after generation.
* Generated keys in separate keyring would not be available after switching
   back to the normal keyrings (not the ones set up for key generation), so at
   first in the unittests I imported them back into the main keyrings… this,
   however, is would be stupid, as in nullifies half the reasons for using
   separate keyrings in the first place, thus the code was commented out. Now
   that the temporary keyrings are placed in the gnupg.GPG._generated_keys
   directory, it would be nice to eventually either extend GPG.import_keys()
   or add a new helper function for doing:

       $ gpg --no-default-keyring --keyring pubring.gpg \
            --keyring ./generated-keys/<some_fingerprint>.gpg
2013-06-28 06:44:52 +00:00
Isis Lovecruft 9008faa0db
Fix a misnamed variable in gnupg.py; self._key_dir→self._keys_dir 2013-06-28 06:42:42 +00:00
Isis Lovecruft 603379eb37
Change _copy_data() error handling to explain errors not due to broken pipes. 2013-06-28 06:40:09 +00:00
Isis Lovecruft 328e8fcbe0
Add a 'generated-keys' subdirectory to gnupg.GPG.homedir.
* Add GPG._generated_keys as an _utils.InheritableProperty class for storing
   a configurable (even by subclasses of GPGBase, without property overrides)
   subdirectory of whichever directory gnupg.GPG.homedir is set to. This
   subdirectory can be used via the 'separate_keyring=True' option to
   gnupg.GPG.gen_key_input(), which will switch temporarily to new pubring.gpg
   and secring.gpg keyrings during key creation, and upon finishing creation
   of the new key, will ask for the new key's fingerprint, and move the
   keyrings into this GPG._generated_keys directory, renamed in the format
   "<GPG.homedir>/<GPG._generated_keys>/<fingerprint>.[pub|sec]ring.gpg".
2013-06-28 06:29:38 +00:00
Isis Lovecruft ca1acaf7e6
Merge branch 'master' into develop 2013-06-28 02:47:15 +00:00
Isis Lovecruft 906cbd2305
Merge branch 'release/1.0.1' 2013-06-28 02:41:19 +00:00
Isis Lovecruft 45d714a73a Fix upstream issue #62, handle expired keys.
* see https://code.google.com/p/python-gnupg/issues/detail?id=62
2013-06-28 02:38:27 +00:00