diff options
author | Hugo van Kemenade <hugovk@users.noreply.github.com> | 2019-11-17 11:36:40 +0200 |
---|---|---|
committer | Ilya Etingof <etingof@gmail.com> | 2019-11-17 10:36:40 +0100 |
commit | 238ef5e74c1cb3181e0c9345378111cf5354d3a0 (patch) | |
tree | 60ca91a042814aa73d1cc4cd1cb2b8349d980eb2 | |
parent | 315103fa626183af0e0c38ab5c24b8adebcceb19 (diff) | |
download | pyasn1-modules-238ef5e74c1cb3181e0c9345378111cf5354d3a0.tar.gz |
Drop support for EOL Python 2.4-2.6 and 3.2-3.3 (#18)
* Drop support for EOL Python
* Add python_requires to help pip
-rw-r--r-- | setup.py | 1 | ||||
-rw-r--r-- | tests/__main__.py | 6 |
2 files changed, 2 insertions, 5 deletions
@@ -92,6 +92,7 @@ params.update( 'author_email': 'etingof@gmail.com', 'url': 'https://github.com/etingof/pyasn1-modules', 'platforms': ['any'], + 'python_requires': '>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', 'classifiers': [x for x in classifiers.split('\n') if x], 'license': 'BSD-2-Clause', 'packages': ['pyasn1_modules'], diff --git a/tests/__main__.py b/tests/__main__.py index dd0bc32..6f41808 100644 --- a/tests/__main__.py +++ b/tests/__main__.py @@ -4,11 +4,7 @@ # Copyright (c) 2005-2019, Ilya Etingof <etingof@gmail.com> # License: http://snmplabs.com/pyasn1/license.html # -try: - import unittest2 as unittest - -except ImportError: - import unittest +import unittest suite = unittest.TestLoader().loadTestsFromNames( ['tests.test_pem.suite', |