Skip to content

Commit a1f221b

Browse files
committed
Add python_requires stanza to setup.py
This is part of a fix for sybrenstuvel#152
1 parent 368a31f commit a1f221b

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

CHANGELOG.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
Python-RSA changelog
22
========================================
33

4+
Version 4.3 - released 2020-06-12
5+
----------------------------------------
6+
7+
Version 4.3 is a re-tagged release of version 4.0. It is the last to support
8+
Python 2.7. This is now made explicit in the `python_requires` argument in
9+
`setup.py`.
10+
11+
There are no functional differences.
12+
13+
414
Version 4.0 - released 2018-09-16
515
----------------------------------------
616

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ or download it from the [Python Package Index](https://pypi.org/project/rsa/).
2323
The source code is maintained at [GitHub](https://github.com/sybrenstuvel/python-rsa/) and is
2424
licensed under the [Apache License, version 2.0](https://www.apache.org/licenses/LICENSE-2.0)
2525

26+
Changes in 4.1-4.4
27+
------------------
28+
29+
Version 4.1 dropped support for Python 2.7, and soon after that version 4.2 was released. Neither of the two made it explicit in `setup.cfg` that Python 3.5 or newer is required. This caused issues on Python 2.7, as Pip happily upgraded to the new version.
30+
31+
Version 4.3 is a re-tagged release of version 4.0. It is the last to support Python 2.7.
32+
33+
Version 4.4 will be a re-tagged release of version 4.2, and explicitly require Python 3.5 or newer.
34+
2635

2736
Major changes in 4.0
2837
--------------------

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
'Programming Language :: Python :: Implementation :: PyPy',
5252
'Topic :: Security :: Cryptography',
5353
],
54+
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4',
5455
install_requires=[
5556
'pyasn1 >= 0.1.3',
5657
],

0 commit comments

Comments
 (0)