Skip to content

Commit

Permalink
Added check python version and apdate version 1.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
drobotun committed May 23, 2020
1 parent 8597634 commit 0b21b4b
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 deletions.
6 changes: 5 additions & 1 deletion HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Release History
"""""""""""""""

.. rubric:: 1.2.3 (23.05.2020)

- Added Python version checking (use version 3.6 or higher)

.. rubric:: 1.2.2 (15.05.2020)

- Fixed a MAC calculation bug when using padding in the **gostcipher** module (in earlier versions (including 1.2.1), the MAC with padding was calculated incorrectly (the bug was in the 'msb' and 'update' functions))
Expand Down Expand Up @@ -40,4 +44,4 @@ Release History

.. rubric:: 1.0.0 (08.04.2020)

- First release of **'gostcrypto'**
- First release of **'gostcrypto'**
6 changes: 5 additions & 1 deletion docs/source/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,10 @@ Package source code: https://github.com/drobotun/gostcrypto
Release History
~~~~~~~~~~~~~~~

.. rubric:: 1.2.3 (23.05.2020)

- Added Python version checking (use version 3.6 or higher)

.. rubric:: 1.2.2 (15.05.2020)

- Fixed a MAC calculation bug when using padding in the **gostcipher** module (in earlier versions (including 1.2.1), the MAC with padding was calculated incorrectly (the bug was in the 'msb' and 'update' functions))
Expand Down Expand Up @@ -410,4 +414,4 @@ Release History

.. rubric:: 1.0.0 (08.04.2020)

- First release of **'gostcrypto'**
- First release of **'gostcrypto'**
9 changes: 8 additions & 1 deletion gostcrypto/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,15 @@
https://github.com/drobotun/gostcrypto.
"""

from sys import version_info
from sys import exit as sys_exit

if version_info.major < 3 or version_info.minor < 6:
print('Use python version 3.6 or higher')
sys_exit()

__title__ = 'gostcrypto'
__version__ = '1.2.2'
__version__ = '1.2.3'
__author__ = 'Evgeny Drobotun'
__author_email__ = 'drobotun@xakep.ru'
__license__ = 'MIT'
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.8',
],
test_suite="tests",
packages=find_packages()
Expand Down

0 comments on commit 0b21b4b

Please sign in to comment.