Skip to content

Commit 0b21b4b

Browse files
author
drobotun
committed
Added check python version and apdate version 1.2.3
1 parent 8597634 commit 0b21b4b

File tree

4 files changed

+20
-5
lines changed

4 files changed

+20
-5
lines changed

HISTORY.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Release History
22
"""""""""""""""
33

4+
.. rubric:: 1.2.3 (23.05.2020)
5+
6+
- Added Python version checking (use version 3.6 or higher)
7+
48
.. rubric:: 1.2.2 (15.05.2020)
59

610
- 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))
@@ -40,4 +44,4 @@ Release History
4044

4145
.. rubric:: 1.0.0 (08.04.2020)
4246

43-
- First release of **'gostcrypto'**
47+
- First release of **'gostcrypto'**

docs/source/intro.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,10 @@ Package source code: https://github.com/drobotun/gostcrypto
372372
Release History
373373
~~~~~~~~~~~~~~~
374374

375+
.. rubric:: 1.2.3 (23.05.2020)
376+
377+
- Added Python version checking (use version 3.6 or higher)
378+
375379
.. rubric:: 1.2.2 (15.05.2020)
376380

377381
- 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))
@@ -410,4 +414,4 @@ Release History
410414

411415
.. rubric:: 1.0.0 (08.04.2020)
412416

413-
- First release of **'gostcrypto'**
417+
- First release of **'gostcrypto'**

gostcrypto/__init__.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,15 @@
3131
https://github.com/drobotun/gostcrypto.
3232
"""
3333

34+
from sys import version_info
35+
from sys import exit as sys_exit
36+
37+
if version_info.major < 3 or version_info.minor < 6:
38+
print('Use python version 3.6 or higher')
39+
sys_exit()
40+
3441
__title__ = 'gostcrypto'
35-
__version__ = '1.2.2'
42+
__version__ = '1.2.3'
3643
__author__ = 'Evgeny Drobotun'
3744
__author_email__ = '[email protected]'
3845
__license__ = 'MIT'

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
'Development Status :: 4 - Beta',
2626
'Intended Audience :: Developers',
2727
'License :: OSI Approved :: MIT License',
28-
'Programming Language :: Python :: 3.4',
29-
'Programming Language :: Python :: 3.7',
28+
'Programming Language :: Python :: 3.6',
29+
'Programming Language :: Python :: 3.8',
3030
],
3131
test_suite="tests",
3232
packages=find_packages()

0 commit comments

Comments
 (0)