Isis Lovecruft
48a4055db0
Add distutils record of installation files to .gitignore.
2013-04-05 23:25:10 +00:00
Isis Lovecruft
48ce05db1f
Update README to use markdown and include better instructions.
2013-04-05 23:20:39 +00:00
Isis Lovecruft
7d22ddeabc
Add uninstall command to top-level Makefile.
2013-04-05 23:12:53 +00:00
Isis Lovecruft
e8a536d4b1
Update top-level Makefile with documentation generation commands.
2013-04-05 23:11:35 +00:00
Isis Lovecruft
1ed011a0db
Update Sphinx documentation config for autodoc and for module path discovery.
2013-04-05 23:02:14 +00:00
Isis Lovecruft
86be391a56
Add documentation creator and first set of API docs.
...
* This uses Sphinx's command 'sphinx-apidoc'.
* TODO Find a way to make Sphinx build the documentations without installing
the module locally first.
2013-04-05 22:50:52 +00:00
Isis Lovecruft
803b4f925b
Merge branch 'develop'
2013-04-05 22:04:03 +00:00
Isis Lovecruft
3d96e33206
Merge branch 'fix/1930-check-user-inputs' into development
2013-04-05 21:38:44 +00:00
Isis Lovecruft
9cbc508a9b
Add test for gnupg._copy_data().
...
* Also, fixed a couple more quotes in docstrings, as well as some whitespace
formatting issues.
2013-04-05 21:30:55 +00:00
Isis Lovecruft
bb65660586
Add missing super() call in ListKeys class.
2013-04-05 21:28:26 +00:00
Isis Lovecruft
1e4fa9e2f4
Refactor old docstrings to have PEP8 conformant three double quotes.
2013-04-05 21:27:21 +00:00
Isis Lovecruft
1344fc31cb
Remove old NOTES.org file.
2013-04-05 13:26:41 +00:00
Isis Lovecruft
37380ff05f
Change debugging messages for key import tests to be more precise.
...
* Also, disabled doctest runs when called with "$ python test_gnupg.py".
2013-04-02 13:15:37 +00:00
Isis Lovecruft
b86d11296b
Clean up a few import statements.
2013-04-02 13:14:53 +00:00
Isis Lovecruft
980bff85cc
Fix a bug where the unittests were leaving hanging file descriptors.
...
* The old unittests did not clean up temp files properly in some test cases.
2013-04-02 13:11:43 +00:00
Isis Lovecruft
53c90f4469
Fix a bug where gpg status message handling did not work for signatures.
...
* If an attempt was made to check a signature and none was found, the
status message would not get handled.
2013-04-02 13:06:46 +00:00
Isis Lovecruft
4d28854feb
Add module name in order to register it in test_gnupg.py.
2013-04-02 12:49:25 +00:00
Isis Lovecruft
4aded0141f
Shorten code for setting keyring paths.
2013-04-02 10:36:55 +00:00
Isis Lovecruft
7840360bb4
General code cleanup.
...
* Move exceptions and global parameters to top of file.
* Move global function to top of file before classes and alphabetise them.
2013-04-02 10:27:26 +00:00
Isis Lovecruft
b8fd74dde3
Change keyring file specification options.
...
* Add DeprecationWarning for gnupg.GPG.keyring parameter, and first steps
towards moving to use gnupg.GPG.secring and pubring instead, because
'keyring' seemed unclear as to which keyring it was referring to.
* Add checks for keyring files, and create them if they are not there.
* Update documentation for gnupg.GPG.__init__().
2013-04-02 10:13:59 +00:00
Isis Lovecruft
c5611782a7
Modify logic for creating path to secret keyring.
2013-04-02 09:31:16 +00:00
Isis Lovecruft
931792cd9b
Fix error where unpermitted variables would remain on a heap.
2013-04-02 08:58:03 +00:00
Isis Lovecruft
d8351e52e9
Change assert to check for bytearray stream rather than file handle.
2013-04-02 05:38:32 +00:00
Isis Lovecruft
5b38b64c97
Rewrote more unittests. All basic tests now pass.
2013-03-19 07:18:56 +00:00
Isis Lovecruft
4a00a56456
Rearrange the assignment of self.gpghome to go before self.gpgbinary.
2013-03-19 07:14:48 +00:00
Isis Lovecruft
be303125d1
Fix test_gpg_binary_version_str() to detect correct output from 'gpg --version'.
2013-03-18 19:36:30 +00:00
Isis Lovecruft
0b6b4ed2ff
Add new unittests and remove now irrelevant old ones.
2013-03-18 19:36:30 +00:00
Isis Lovecruft
ca880901eb
Fix keyring location names in test_gnupg.py.
2013-03-18 19:36:30 +00:00
Isis Lovecruft
34bbf47e60
Add io.StringIO subclass for writing gpg process results to a string.
...
* These .write()s need to be forced to unicode for StringIO to handle them
correctly.
2013-03-18 19:36:30 +00:00
Isis Lovecruft
629d13c27c
Reorder checks in gnupg.GPG.__init__() in a more sensible way.
2013-03-18 19:36:30 +00:00
Isis Lovecruft
3c6376a598
Add function _sanitise_list() for sanitising lists of options.
2013-03-18 19:36:30 +00:00
Isis Lovecruft
915a74022a
Fix an error where a list filo would raise an IndexError.
2013-03-18 19:36:30 +00:00
Isis Lovecruft
eaeda9d9a8
Update debugging logging strings.
2013-03-18 19:36:30 +00:00
Isis Lovecruft
618567b1d8
Fix a bug where sometimes sanitised options values were not being added.
2013-03-18 19:36:30 +00:00
Isis Lovecruft
b5f687060c
Deduplicate code assertion checks in GPG.__init__().
2013-03-18 19:36:30 +00:00
Isis Lovecruft
225c05bf58
Add additional allowed options --fingerprint and --with-colons.
2013-03-18 19:36:30 +00:00
Isis Lovecruft
617eb53e57
Apply patch 0001: Make _open_subprocess argument more explicit in _handle_io().
2013-03-18 19:36:30 +00:00
Isis Lovecruft
695c4875d3
Add quilt patches/ directory, series file, and first external patch.
2013-03-18 19:36:30 +00:00
Isis Lovecruft
311ee4b83b
Add unittest for discovery of keyring files.
2013-03-18 19:36:30 +00:00
Isis Lovecruft
d8264a619b
Update test_gnupg.py unittests to reflect changes in the code.
2013-03-18 19:36:30 +00:00
Isis Lovecruft
b776247176
Cleanup the docstring and code in gnupg.GPG.list_keys().
2013-03-18 19:36:30 +00:00
Isis Lovecruft
608efaf60a
Rewrite method gnupg.GPG.make_args() to use lists for _sanitise().
2013-03-18 19:36:30 +00:00
Isis Lovecruft
a7940e3c84
Rewrite checks in gnupg.GPG.__init__().
2013-03-18 19:36:30 +00:00
Isis Lovecruft
852a0fae97
Rewrite function _sanitise().
2013-03-18 19:36:29 +00:00
Isis Lovecruft
7ac7af9bcb
Update list of allowed gpg options.
2013-03-18 19:36:29 +00:00
Isis Lovecruft
b35309e73f
Update docstrings in several functions.
...
* Including updates to:
_underscore()
_hyphenate()
_is_allowed()
2013-03-18 19:36:29 +00:00
Isis Lovecruft
058c6f6ca8
Change _is_file to return booleans and never raise anything.
2013-03-18 19:36:29 +00:00
Isis Lovecruft
babff61ec2
Shorten assertion string in gnupg.GPG.__init__().
2013-03-18 19:36:29 +00:00
Isis Lovecruft
0c5e8f9110
Update test_gnupy.py to use the same standard key generation params.
...
* Test method now matches the batch key generation parameters in gnupg.py.
* Fix trailing whitespace in test_gnupg.py.
2013-03-18 19:36:29 +00:00
Isis Lovecruft
2720b68b8c
Update test_gnupg.py logger settings.
...
* The logfile is now appended to, rather than rewritten, so that we can
still see past test results.
2013-03-18 19:36:29 +00:00