Isis Lovecruft
525ebf71ef
Merge branch 'fix/update-packaging' into develop
2013-04-10 17:52:05 +00:00
Isis Lovecruft
a54fa33ff5
Bump because minor version because we've rewritten large chunks of the codebase.
2013-04-10 17:51:06 +00:00
Isis Lovecruft
dbdcc848a5
Update .gitignore.
2013-04-10 17:51:06 +00:00
Isis Lovecruft
f385b3938f
Fix distutils, PyPI, and pip packaging configuration files.
...
* Remove/replace old classifiers in PyPI configuration PKG-INFO.
* Add pip requirements.txt file for documentation builds on readthedocs.org.
* Fix package build variables in distutils setup.py.
2013-04-10 17:51:06 +00:00
Isis Lovecruft
9e0e0a0d4e
Add Makefile command for creating a virtualenv with virtualenvwrapper.
2013-04-10 17:51:06 +00:00
Isis Lovecruft
3be6c67bb9
Merge branch 'fix/2162-stream-check' into develop
2013-04-10 17:49:11 +00:00
Isis Lovecruft
0c5fda7da4
GnuPG wants pubring for its option '--keyring'. Fuck GnuPG.
2013-04-10 17:22:59 +00:00
Isis Lovecruft
af7e952b42
Factor out some unnecessary string parsing code.
2013-04-10 17:22:09 +00:00
Isis Lovecruft
5fd040c793
Remove extraneous logger statement.
2013-04-10 17:21:11 +00:00
Isis Lovecruft
e978f34712
Add '--secret-keyring' as an allowed option.
2013-04-10 17:20:47 +00:00
Isis Lovecruft
a97040a06f
Add unittest cmdline argparse to hook into unittest.TestProgram's parser.
2013-04-10 17:19:25 +00:00
Isis Lovecruft
20284e0741
Revise logger and suite ordering, and override parts of unittest module.
...
* Rearrange sets of testsuites to provide logical execution order.
* Remove unused suite() function.
* Create dynamic module loader through a unittest.TestProgram.createTest
override to take an instance of unittest.TestLoader which is created later.
2013-04-10 17:14:06 +00:00
Isis Lovecruft
43a69e9fcd
Update test assertions for key generation and batch parameters after import.
...
* In unittest test_key_generation_import_list_with_colons().
2013-04-10 17:08:21 +00:00
Isis Lovecruft
c19fd30545
Add assertions to check that key have been created in test_gen_key_*().
2013-04-10 17:05:35 +00:00
Isis Lovecruft
f0ee442bab
Pep8ify some more docstrings.
2013-04-10 17:04:57 +00:00
Isis Lovecruft
1d34b04d82
Remove unused function expire_today().
2013-04-10 17:03:21 +00:00
Isis Lovecruft
b758239af8
Add implementation note on test_copy_data().
2013-04-10 17:02:13 +00:00
Isis Lovecruft
5f157c3c00
Don't hardcode paths.
2013-04-10 17:01:37 +00:00
Isis Lovecruft
fc71ede502
Cleanup assertion statement.
2013-04-10 17:00:52 +00:00
Isis Lovecruft
5e706d09d0
Pep8 the docstrings.
2013-04-10 17:00:11 +00:00
Isis Lovecruft
5cd2eb2b94
Also get the logger from gnupg so that we can debug events in unittests.
2013-04-10 16:58:59 +00:00
Isis Lovecruft
c72aa1eb96
Update unittest temporary file directory location and gnupghome.
2013-04-10 16:55:29 +00:00
Isis Lovecruft
c5d2e6fc9d
Keep module metadata in one place.
2013-04-10 16:54:39 +00:00
Isis Lovecruft
4ee62ea400
Patch Python2.6 and earlier to use future-patched unittest module.
2013-04-10 16:52:48 +00:00
Isis Lovecruft
1cac3df2ca
Add the missing crunchbang in test_gnupg.py.
2013-04-10 16:43:42 +00:00
Isis Lovecruft
e9d223f701
Fix typos, remove extra whitespace line.
2013-04-09 17:47:31 +00:00
Isis Lovecruft
9af49dbce5
Add missing option `--batch` to _allowed options set.
...
* Rearranged the other options because their order was nolens volens.
2013-04-09 17:35:10 +00:00
Isis Lovecruft
09481d27ae
Split key material related unittests into separate test suites by functionality.
2013-04-09 17:34:18 +00:00
Isis Lovecruft
24881a2e9e
Add better unittests for gnupg.GPG.gen_key() and gen_key_input().
...
* Add unittest suite for genkey tests.
2013-04-09 17:32:09 +00:00
Isis Lovecruft
3e58b08d90
Merge branch 'feature/docs' into develop
2013-04-06 00:45:59 +00:00
Isis Lovecruft
f9bd8e928e
Updated documentation and .rst files for Sphinx.
2013-04-06 00:35:40 +00:00
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