lists.arthurdejong.org
RSS feed

python-pskc branch master updated. 0.5-40-g44b1353

[Date Prev][Date Next] [Thread Prev][Thread Next]

python-pskc branch master updated. 0.5-40-g44b1353



This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "python-pskc".

The branch, master has been updated
       via  44b13539993a2de5183a1dcf49b5efd6c471b727 (commit)
       via  42be53be484c11c8b942281b73c21721c832eab8 (commit)
       via  660ed653a0d0448887ff57649c4f0df731538af0 (commit)
       via  9cd97c963f7ddb1d01349cfe2b85df2a34e36a73 (commit)
      from  20bf9c5b0ad9f05f763e88231b3aa7c47d34e1d5 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://arthurdejong.org/git/python-pskc/commit/?id=44b13539993a2de5183a1dcf49b5efd6c471b727

commit 44b13539993a2de5183a1dcf49b5efd6c471b727
Author: Arthur de Jong <arthur@arthurdejong.org>
Date:   Fri Dec 29 14:01:43 2017 +0100

    Add Sphinx documentation checks
    
    This also slightly tunes the way Sphinx documentation is built.

diff --git a/docs/conf.py b/docs/conf.py
index 41c53f7..4ddee2b 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -28,8 +28,7 @@ import pskc
 # Add any Sphinx extension module names here, as strings. They can be 
extensions
 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
 extensions = [
-     'sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.todo',
-     'sphinx.ext.coverage', 'sphinx.ext.autosummary',
+     'sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.coverage',
      'sphinx.ext.intersphinx',
 ]
 
diff --git a/setup.cfg b/setup.cfg
index 9f47e8f..bdb061f 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -17,7 +17,7 @@ cover-min-percentage=100
 
 [build_sphinx]
 all_files = 1
-builder = html,man
+builder = html man
 
 [flake8]
 ignore = D101,D102,D105,D107,D202,D205,D209,D400,N806
diff --git a/tox.ini b/tox.ini
index be49e42..b33a31c 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
 [tox]
-envlist = 
py{27,34,35,36,37,py}-signxml,py{27,34,35,36,37,py}{-legacy,-lxml}{,-defusedxml},flake8
+envlist = 
py{27,34,35,36,37,py}-signxml,py{27,34,35,36,37,py}{-legacy,-lxml}{,-defusedxml},flake8,docs
 skip_missing_interpreters = True
 
 [testenv]
@@ -32,3 +32,8 @@ deps = flake8
        flake8-tuple
        pep8-naming
 commands = flake8 pskc *.py
+
+[testenv:docs]
+basepython = python
+deps = sphinx
+commands = python setup.py build_sphinx --build-dir {envtmpdir} -W

https://arthurdejong.org/git/python-pskc/commit/?id=42be53be484c11c8b942281b73c21721c832eab8

commit 42be53be484c11c8b942281b73c21721c832eab8
Author: Arthur de Jong <arthur@arthurdejong.org>
Date:   Fri Dec 15 22:20:29 2017 +0100

    Add support for PyPy

diff --git a/pskc2csv.py b/pskc2csv.py
index 66008c9..6bff0e4 100755
--- a/pskc2csv.py
+++ b/pskc2csv.py
@@ -146,6 +146,8 @@ def main():
             for column in args.columns])
     if args.output:
         output.close()
+    else:
+        output.flush()
 
 
 if __name__ == '__main__':  # pragma: no cover
diff --git a/tox.ini b/tox.ini
index 001d833..be49e42 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
 [tox]
-envlist = 
py{27,34,35,36,37}-signxml,py{27,34,35,36,37}{-legacy,-lxml}{,-defusedxml},flake8
+envlist = 
py{27,34,35,36,37,py}-signxml,py{27,34,35,36,37,py}{-legacy,-lxml}{,-defusedxml},flake8
 skip_missing_interpreters = True
 
 [testenv]

https://arthurdejong.org/git/python-pskc/commit/?id=660ed653a0d0448887ff57649c4f0df731538af0

commit 660ed653a0d0448887ff57649c4f0df731538af0
Author: Arthur de Jong <arthur@arthurdejong.org>
Date:   Fri Dec 15 22:08:09 2017 +0100

    Add support for Python 3.7

diff --git a/setup.py b/setup.py
index 161397f..e2a93f4 100755
--- a/setup.py
+++ b/setup.py
@@ -61,6 +61,7 @@ setup(
         'Programming Language :: Python :: 3.4',
         'Programming Language :: Python :: 3.5',
         'Programming Language :: Python :: 3.6',
+        'Programming Language :: Python :: 3.7',
         'Topic :: Security :: Cryptography',
         'Topic :: Software Development :: Libraries :: Python Modules',
         'Topic :: System :: Systems Administration :: 
Authentication/Directory',
diff --git a/tox.ini b/tox.ini
index f16829a..001d833 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
 [tox]
-envlist = 
py{27,34,35,36}-signxml,py{27,34,35,36}{-legacy,-lxml}{,-defusedxml},flake8
+envlist = 
py{27,34,35,36,37}-signxml,py{27,34,35,36,37}{-legacy,-lxml}{,-defusedxml},flake8
 skip_missing_interpreters = True
 
 [testenv]
@@ -19,7 +19,7 @@ skip_install = true
 deps = flake8
        flake8-author
        flake8-blind-except
-       py{35,36}: flake8-bugbear
+       py{35,36,37}: flake8-bugbear
        flake8-class-newline
        flake8-commas
        flake8-deprecated

https://arthurdejong.org/git/python-pskc/commit/?id=9cd97c963f7ddb1d01349cfe2b85df2a34e36a73

commit 9cd97c963f7ddb1d01349cfe2b85df2a34e36a73
Author: Arthur de Jong <arthur@arthurdejong.org>
Date:   Fri Dec 15 22:06:28 2017 +0100

    Use README as package long description

diff --git a/README b/README
index 5f6b4d5..9384b1d 100644
--- a/README
+++ b/README
@@ -1,15 +1,17 @@
-Python PSKC module
-==================
+Python module for handling PSKC files
+=====================================
 
 A Python module to handle Portable Symmetric Key Container (PSKC) files as
 defined in `RFC 6030 <https://tools.ietf.org/html/rfc6030>`_. PSKC files are
 used to transport and provision symmetric keys and key meta data (seed files)
-to different types of crypto modules, commonly one-time password tokens or
+to different types of crypto modules, commonly one-time password systems or
 other authentication devices.
 
 This module can be used to extract keys from PSKC files for use in an OTP
 authentication system. The module can also be used for authoring PSKC files.
 
+This module should be able to handle most common PSKC files.
+
 https://arthurdejong.org/python-pskc/
 
 
@@ -25,7 +27,7 @@ Extracting key material from encrypted PSKC files is as 
simple as:
 >>> pskc = PSKC('tests/rfc6030/figure7.pskcxml')
 >>> pskc.encryption.derive_key('qwerty')
 >>> for key in pskc.keys:
-...     print key.serial, key.secret
+...     print('%s %s' % (key.serial, str(key.secret.decode())))
 987654321 12345678901234567890
 
 Writing am encrypted PSKC file is as simple as:
@@ -46,7 +48,7 @@ Security considerations
 
 This code handles private key material and is written in Python. No
 precautions have been taken to lock pages in memory to prevent swapping. Also
-no attempt is currently made to security dispose of memory that may have held
+no attempt is currently made to securely dispose of memory that may have held
 private key material.
 
 
@@ -69,12 +71,3 @@ You should have received a copy of the GNU Lesser General 
Public
 License along with this library; if not, write to the Free Software
 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 02110-1301 USA
-
-
-Development notes
------------------
-
-This package should use a mostly standard source code layout and support both
-Python 2 (2.6 but 2.7 is recommended) and Python 3 (most recent versions
-should work). The tests can be run with nosetests and the aim is to have
-maximum code coverage.
diff --git a/setup.py b/setup.py
index e066ef7..161397f 100755
--- a/setup.py
+++ b/setup.py
@@ -32,11 +32,16 @@ if 'sdist' in sys.argv:
     os.system('chmod -R a+rX .')
     os.umask(int('022', 8))
 
+base_dir = os.path.dirname(__file__)
+
+with open(os.path.join(base_dir, 'README'), 'r') as fp:
+    long_description = fp.read()
+
 setup(
     name='python-pskc',
     version=pskc.__version__,
     description='Python module for handling PSKC files',
-    long_description=pskc.__doc__,
+    long_description=long_description,
     author='Arthur de Jong',
     author_email='arthur@arthurdejong.org',
     keywords=['PSKC', 'RFC 6030', 'key container'],

-----------------------------------------------------------------------

Summary of changes:
 README       | 21 +++++++--------------
 docs/conf.py |  3 +--
 pskc2csv.py  |  2 ++
 setup.cfg    |  2 +-
 setup.py     |  8 +++++++-
 tox.ini      |  9 +++++++--
 6 files changed, 25 insertions(+), 20 deletions(-)


hooks/post-receive
-- 
python-pskc
-- 
To unsubscribe send an email to
python-pskc-commits-unsubscribe@lists.arthurdejong.org or see
https://lists.arthurdejong.org/python-pskc-commits/