summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-08-25 15:59:08 +0200
committerMichał Górny <mgorny@gentoo.org>2020-08-25 15:59:08 +0200
commit3331847398b976068d5d5e4489acd23a78aacdbf (patch)
tree2941de735fdc6276838879acc31a98b512973045
parentf7cdc66ec10c072624c28384847f7f432bad5118 (diff)
downloadgemato-3331847398b976068d5d5e4489acd23a78aacdbf.tar.gz
Stop testing Python 2
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--README.rst28
-rw-r--r--setup.py2
-rw-r--r--tox.ini12
3 files changed, 6 insertions, 36 deletions
diff --git a/README.rst b/README.rst
index aa1a964..6b65f12 100644
--- a/README.rst
+++ b/README.rst
@@ -73,12 +73,8 @@ behavior. Those are:
Requirements
============
gemato is written in Python and compatible with implementations
-of Python 2.7 and Python 3.4+. However, the support for Python 2
-is considered 'best effort' and has some known limitations. For example,
-non-ASCII paths on command-line do not work.
-
-gemato is currently tested against CPython 2.7, CPython 3.4 through 3.7,
-PyPy and PyPy3.
+of Python 3.4+. gemato is currently tested against CPython 3.4
+through 3.7 and PyPy3.
gemato depends only on standard Python library modules and their
backports. The exact runtime dependencies depend on the standard library
@@ -91,12 +87,6 @@ Python 3.4, 3.5
- pyblake2 -- for BLAKE2 family of hashes [#pyblake2]_
- pysha3 -- for SHA3 (Keccak) family of hashes [#pysha3]_
-Python 2.7
- the above, plus:
-
- - bz2file -- for BZip2 compression support [#bz2file]_ [#bz2py2]_
- - backports.lzma -- for LZMA/XZ compressed file support [#lzma]_
-
Additionally, gemato calls the GnuPG executable to work with OpenPGP
signatures. Both GnuPG 1.4.21 and 2.2+ are tested.
@@ -113,17 +103,3 @@ References and footnotes
.. [#pysha3] SHA-3 (Keccak) for Python 2.7 - 3.5
(https://pypi.python.org/pypi/pysha3)
(https://github.com/tiran/pysha3)
-
-.. [#bz2file] Read and write bzip2-compressed files
- (https://pypi.python.org/pypi/bz2file)
- (https://github.com/nvawda/bz2file)
-
-.. [#bz2py2] Strictly speaking, Python 2.7 has a ``bz2`` module.
- However, this old module version does not support working on open
- files nor multiple streams inside a single file. For this reason,
- the external module is unconditionally required.
-
-.. [#lzma] Backport of Python 3.3's 'lzma' module for XZ/LZMA compressed
- files
- (https://pypi.python.org/pypi/backports.lzma)
- (https://github.com/peterjc/backports.lzma)
diff --git a/setup.py b/setup.py
index 17c39ec..3bea4b4 100644
--- a/setup.py
+++ b/setup.py
@@ -36,7 +36,7 @@ setup(
'Intended Audience :: System Administrators',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX',
- 'Programming Language :: Python',
+ 'Programming Language :: Python :: 3 :: Only',
'Topic :: Security :: Cryptography',
]
)
diff --git a/tox.ini b/tox.ini
index ffb23f3..74a77b5 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
[tox]
-envlist = qa,py27,py34,py35,py36,py37,py38,py39,pypy,pypy3,incompatible-lzma
+envlist = qa,py34,py35,py36,py37,py38,py39,pypy3
skip_missing_interpreters = True
# we operate on sources anyway
skipsdist = True
@@ -10,20 +10,14 @@ deps =
commands =
pyflakes {posargs:gemato tests}
-[testenv:incompatible-lzma]
-basepython = python2.7
-
[testenv]
deps =
coverage
pytest
pytest-cov
pytest-xdist
- py27,py34,py35,pypy,pypy3,incompatible-lzma: pyblake2
- py27,py34,py35,pypy: pysha3
- py27,pypy: backports.lzma!=0.0.9
- py27,pypy: bz2file
- incompatible-lzma: pyliblzma
+ py34,py35,pypy3: pyblake2
+ py34,py35: pysha3
commands =
pytest -vv --cov=gemato --cov-config=.coveragerc -n auto {posargs}