changeset edb7adf17152 in /home/hg/repos/gajim-plugins author: Bahtiar `kalkin-` Gadimov <[email protected]> branches: details:gajim-plugins?cmd=changeset;node=edb7adf17152 description: Merge commit '1e9e608c0dfb1858d5466ed30f7cfa285b162a93' as 'omemo/lib/python-omemo'
diffstat: omemo/lib/python-omemo/.ackrc | 19 + omemo/lib/python-omemo/.bumpversion.cfg | 11 + omemo/lib/python-omemo/.cookiecutterrc | 47 + omemo/lib/python-omemo/.coveragerc | 12 + omemo/lib/python-omemo/.editorconfig | 13 + omemo/lib/python-omemo/.gitignore | 63 + omemo/lib/python-omemo/.travis.yml | 44 + omemo/lib/python-omemo/AUTHORS.rst | 7 + omemo/lib/python-omemo/CHANGELOG.rst | 8 + omemo/lib/python-omemo/CONTRIBUTING.rst | 280 ++++ omemo/lib/python-omemo/COPYING | 675 ++++++++++ omemo/lib/python-omemo/MANIFEST.in | 21 + omemo/lib/python-omemo/README.rst | 123 + omemo/lib/python-omemo/appveyor.yml | 110 + omemo/lib/python-omemo/ci/appveyor-bootstrap.py | 113 + omemo/lib/python-omemo/ci/appveyor-download.py | 107 + omemo/lib/python-omemo/ci/appveyor-with-compiler.cmd | 46 + omemo/lib/python-omemo/ci/bootstrap.py | 53 + omemo/lib/python-omemo/ci/templates/.travis.yml | 37 + omemo/lib/python-omemo/ci/templates/appveyor.yml | 53 + omemo/lib/python-omemo/docs/authors.rst | 1 + omemo/lib/python-omemo/docs/changelog.rst | 1 + omemo/lib/python-omemo/docs/conf.py | 54 + omemo/lib/python-omemo/docs/contributing.rst | 1 + omemo/lib/python-omemo/docs/index.rst | 22 + omemo/lib/python-omemo/docs/installation.rst | 7 + omemo/lib/python-omemo/docs/readme.rst | 1 + omemo/lib/python-omemo/docs/reference/index.rst | 7 + omemo/lib/python-omemo/docs/reference/omemo.rst | 8 + omemo/lib/python-omemo/docs/requirements.txt | 2 + omemo/lib/python-omemo/docs/spelling_wordlist.txt | 11 + omemo/lib/python-omemo/docs/usage.rst | 7 + omemo/lib/python-omemo/setup.cfg | 44 + omemo/lib/python-omemo/setup.py | 67 + omemo/lib/python-omemo/src/.gitignore | 2 + omemo/lib/python-omemo/src/.style.yapf | 4 + omemo/lib/python-omemo/src/COPYING | 674 +++++++++ omemo/lib/python-omemo/src/omemo.png | Bin omemo/lib/python-omemo/src/omemo/__init__.py | 1 + omemo/lib/python-omemo/src/omemo/aes_gcm.py | 160 ++ omemo/lib/python-omemo/src/omemo/db_helpers.py | 13 + omemo/lib/python-omemo/src/omemo/encryption.py | 95 + omemo/lib/python-omemo/src/omemo/liteaxolotlstore.py | 127 + omemo/lib/python-omemo/src/omemo/liteidentitykeystore.py | 76 + omemo/lib/python-omemo/src/omemo/liteprekeystore.py | 72 + omemo/lib/python-omemo/src/omemo/litesessionstore.py | 80 + omemo/lib/python-omemo/src/omemo/litesignedprekeystore.py | 77 + omemo/lib/python-omemo/src/omemo/state.py | 298 ++++ omemo/lib/python-omemo/tests/test_db_helpers.py | 19 + omemo/lib/python-omemo/tests/test_encryption_store.py | 31 + omemo/lib/python-omemo/tests/test_migrate_encryption_state.py | 47 + omemo/lib/python-omemo/tests/test_omemo.py | 6 + omemo/lib/python-omemo/tests/test_omemo_state.py | 107 + omemo/lib/python-omemo/tox.ini | 131 + 54 files changed, 4095 insertions(+), 0 deletions(-) diffs (truncated from 4309 to 300 lines): diff -r 75dbb2177af5 -r edb7adf17152 omemo/lib/python-omemo/.ackrc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/omemo/lib/python-omemo/.ackrc Tue Jan 26 14:54:59 2016 +0100 @@ -0,0 +1,19 @@ +--ignore-dir + .tox + +--ignore-dir + dist + +--ignore-dir + .venv + +--ignore-dir + .ropeproject + +--ignore-dir + src/omemo.egg-info/ + +--ignore-file +ext:pyc +--ignore-file +match:.coverage.python diff -r 75dbb2177af5 -r edb7adf17152 omemo/lib/python-omemo/.bumpversion.cfg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/omemo/lib/python-omemo/.bumpversion.cfg Tue Jan 26 14:54:59 2016 +0100 @@ -0,0 +1,11 @@ +[bumpversion] +current_version = 0.1.0 +commit = True +tag = True + +[bumpversion:file:setup.py] + +[bumpversion:file:docs/conf.py] + +[bumpversion:file:src/omemo/__init__.py] + diff -r 75dbb2177af5 -r edb7adf17152 omemo/lib/python-omemo/.cookiecutterrc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/omemo/lib/python-omemo/.cookiecutterrc Tue Jan 26 14:54:59 2016 +0100 @@ -0,0 +1,47 @@ +# This file exists so you can easily regenerate your project. +# +# `cookiepatcher` is a convenient shim around `cookiecutter` +# for regenerating projects (it will generate a .cookiecutterrc +# automatically for any template). To use it: +# +# pip install cookiepatcher +# cookiepatcher gh:ionelmc/cookiecutter-pylibrary project-path +# +# See: +# https://pypi.python.org/pypi/cookiecutter +# +# Alternatively, you can run: +# +# cookiecutter --overwrite-if-exists --config-file=project-path/.cookiecutterrc gh:ionelmc/cookiecutter-pylibrary + +default_context: + + appveyor: 'yes' + bin_name: 'omemo' + c_extension_cython: 'no' + c_extension_optional: 'no' + c_extension_support: 'no' + codacy: 'no' + codeclimate: 'no' + codecov: 'yes' + command_line_interface: 'no' + coveralls: 'no' + distribution_name: 'python-omemo' + email: '[email protected]' + full_name: 'Bahtiar `kalkin-` Gadimov' + github_username: 'kalkin' + landscape: 'no' + package_name: 'omemo' + project_name: 'Python OMEMO Library' + project_short_description: 'This is an implementation o*OMEMO Multi-End Message and Object Encryption** in Python.' + release_date: 'today' + repo_name: 'python-omemo' + requiresio: 'yes' + scrutinizer: 'no' + sphinx_theme: 'readthedocs' + test_matrix_configurator: 'no' + test_runner: 'pytest' + travis: 'yes' + version: '0.1.0' + website: 'https://github.com/omemo' + year: 'now' diff -r 75dbb2177af5 -r edb7adf17152 omemo/lib/python-omemo/.coveragerc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/omemo/lib/python-omemo/.coveragerc Tue Jan 26 14:54:59 2016 +0100 @@ -0,0 +1,12 @@ +[paths] +source = src + +[run] +branch = True +source = src +parallel = true + +[report] +show_missing = true +precision = 2 +omit = *migrations* diff -r 75dbb2177af5 -r edb7adf17152 omemo/lib/python-omemo/.editorconfig --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/omemo/lib/python-omemo/.editorconfig Tue Jan 26 14:54:59 2016 +0100 @@ -0,0 +1,13 @@ +# see http://editorconfig.org +root = true + +[*] +end_of_line = lf +trim_trailing_whitespace = true +insert_final_newline = true +indent_style = space +indent_size = 4 +charset = utf-8 + +[*.{bat,cmd,ps1}] +end_of_line = crlf diff -r 75dbb2177af5 -r edb7adf17152 omemo/lib/python-omemo/.gitignore --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/omemo/lib/python-omemo/.gitignore Tue Jan 26 14:54:59 2016 +0100 @@ -0,0 +1,63 @@ +*.py[cod] + +# C extensions +*.so + +# Packages +*.egg +*.egg-info +dist +build +eggs +.eggs +parts +bin +var +sdist +develop-eggs +.installed.cfg +lib +lib64 +venv*/ +pyvenv*/ + +# Installer logs +pip-log.txt + +# Unit test / coverage reports +.coverage +.tox +.coverage.* +nosetests.xml +coverage.xml +htmlcov + +# Translations +*.mo + +# Mr Developer +.mr.developer.cfg +.project +.pydevproject +.idea +*.iml +*.komodoproject + +# Complexity +output/*.html +output/*/index.html + +# Sphinx +docs/_build + +.DS_Store +*~ +.*.sw[po] +.build +.ve +.env +.cache +.pytest +.bootstrap +.appveyor.token +*.bak diff -r 75dbb2177af5 -r edb7adf17152 omemo/lib/python-omemo/.travis.yml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/omemo/lib/python-omemo/.travis.yml Tue Jan 26 14:54:59 2016 +0100 @@ -0,0 +1,44 @@ +language: python +python: '3.5' +sudo: false +env: + global: + - LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so + - SEGFAULT_SIGNALS=all + matrix: + - TOXENV=check + + - TOXENV=py27-cover,codecov + - TOXENV=py27-nocov + - TOXENV=py33-cover,codecov + - TOXENV=py33-nocov + - TOXENV=py34-cover,codecov + - TOXENV=py34-nocov + - TOXENV=py35-cover,codecov + - TOXENV=py35-nocov + - TOXENV=pypy-cover,codecov + - TOXENV=pypy-nocov +before_install: + - python --version + - uname -a + - lsb_release -a +install: + - pip install tox + - virtualenv --version + - easy_install --version + - pip --version + - tox --version +script: + - tox -v +after_failure: + - more .tox/log/* | cat + - more .tox/*/log/* | cat +before_cache: + - rm -rf $HOME/.cache/pip/log +cache: + directories: + - $HOME/.cache/pip +notifications: + email: + on_success: never + on_failure: always diff -r 75dbb2177af5 -r edb7adf17152 omemo/lib/python-omemo/AUTHORS.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/omemo/lib/python-omemo/AUTHORS.rst Tue Jan 26 14:54:59 2016 +0100 @@ -0,0 +1,7 @@ + +Authors +======= + +* Bahtiar `kalkin-` Gadimov - https://github.com/kalkin +* Daniel Gultsch - https://github.com/inputmice +* Tarek Galal - https://github.com/tgalal (original axolotl store implementation) diff -r 75dbb2177af5 -r edb7adf17152 omemo/lib/python-omemo/CHANGELOG.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/omemo/lib/python-omemo/CHANGELOG.rst Tue Jan 26 14:54:59 2016 +0100 @@ -0,0 +1,8 @@ + +Changelog +========= + +0.1.0 (2016-01-11) +----------------------------------------- + +* First release on PyPI. diff -r 75dbb2177af5 -r edb7adf17152 omemo/lib/python-omemo/CONTRIBUTING.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/omemo/lib/python-omemo/CONTRIBUTING.rst Tue Jan 26 14:54:59 2016 +0100 @@ -0,0 +1,280 @@ +.. _c4 +===================================== +Collective Code Construction Contract +===================================== + + +The **Collective Code Construction Contract (C4)** is an evolution of the +`github.com Fork + Pull Model +<https://help.github.com/articles/using-pull-requests/>`_, aimed at providing an +optimal collaboration model for free software projects. This is revision 1 of +the C4 specification. + +License +======= +Copyright (c) 2009-2015 Pieter Hintjens. + +This Specification is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the Free +Software Foundation; either version 3 of the License, or (at your option) any +later version. + +This Specification is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +details. + +You should have received a copy of the GNU General Public License along with +this program; if not, see <http://www.gnu.org/licenses>. + +Language +======== + +The key words "**MUST**", "**MUST NOT**", "**REQUIRED**", "**SHALL**", "**SHALL NOT**", "**SHOULD**", +"**SHOULD NOT**", "**RECOMMENDED**", "**MAY**", and "**OPTIONAL**" in this document are to be +interpreted as described in `RFC 2119 <https://tools.ietf.org/html/rfc2119>`_. + _______________________________________________ Commits mailing list [email protected] https://lists.gajim.org/cgi-bin/listinfo/commits
