From 241ca9db78af65f554941c9e73798886c32c14b9 Mon Sep 17 00:00:00 2001 From: abhishekram Date: Sun, 12 Apr 2020 19:27:46 +0530 Subject: [PATCH] set the requirement for dataclasses correctly --- CHANGELOG.md | 3 +++ pyas2lib/__init__.py | 2 +- setup.py | 7 ++----- tox.ini | 1 - 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f542b1d..c7384ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Release History +## 1.3.1 - 2020-04-12 +* Use correct format for setting dataclasses requirement for python 3.6 + ## 1.3.0 - 2020-04-05 * Fix and update the SMIME capabilities in the Signed attributes of a signature * Update the versions of crypto dependencies and related changes diff --git a/pyas2lib/__init__.py b/pyas2lib/__init__.py index aeaf064..ed525f2 100644 --- a/pyas2lib/__init__.py +++ b/pyas2lib/__init__.py @@ -9,7 +9,7 @@ from pyas2lib.as2 import Organization from pyas2lib.as2 import Partner -__version__ = "1.3.0" +__version__ = "1.3.1" __all__ = [ diff --git a/setup.py b/setup.py index 6accc71..5a79a02 100644 --- a/setup.py +++ b/setup.py @@ -1,15 +1,12 @@ -import sys from setuptools import setup, find_packages install_requires = [ "asn1crypto==1.3.0", "oscrypto==1.2.0", "pyOpenSSL==19.1.0", + "dataclasses==0.7;python_version=='3.6'", ] -if sys.version_info.minor == 6: - install_requires += ["dataclasses==0.7"] - tests_require = [ "pytest==5.4.1", "pytest-cov==2.8.1", @@ -26,7 +23,7 @@ long_description="Docs for this project are maintained at " "https://github.com/abhishek-ram/pyas2-lib/blob/" "master/README.md", - version="1.3.0", + version="1.3.1", author="Abhishek Ram", author_email="abhishek8816@gmail.com", packages=find_packages(where=".", exclude=("test*",)), diff --git a/tox.ini b/tox.ini index 3e6822f..49f0c46 100644 --- a/tox.ini +++ b/tox.ini @@ -9,4 +9,3 @@ envlist = py36, py37, py38 [testenv] commands = {envpython} setup.py test deps = -