Skip to content

Commit becab7c

Browse files
authored
Merge pull request #109 from kevinconway/py2-last-release
Deprecate Python 2 support
2 parents b12f6c0 + 0366490 commit becab7c

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ target/
5555
# IntelliJ / PyCharm
5656
*.iml
5757
.idea/
58+
.vscode/
5859

5960
# Vim
6061
*.swp

README.rst

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ rpmvenv
2222

2323
- `Additional Options <#additional-options>`_
2424

25+
- `NOTE: python 2 support <#note-python-2-support>`_
26+
2527
- `NOTE: manylinux <#note-manylinux>`_
2628

2729
- `NOTE: unicode <#note-unicode>`_
@@ -313,6 +315,31 @@ available as CLI flags:
313315
there is an exception. Adding this flag enables the real-time output from
314316
the rpmbuild command.
315317

318+
NOTE: python 2 support
319+
======================
320+
321+
Python 2, itself, was discontinued on 2020-01-01. Since then, libraries that
322+
`rpmvenv` depends on have started breaking compatibility with Python 2 or even
323+
adding code that prevents the use of that library in Python 2 regardless of
324+
compatibility. It has also become increasingly difficult to support code that
325+
works from Python 2.6 to the most recent versions of Python 3.
326+
327+
The last releases that support Python 2 are version `0.27.0` and `1.0.0`. These
328+
are both the same release. There will be no more releases in the `0.x` or `1.x`
329+
ranges.
330+
331+
If you are using Python 2 then here is an example `requirements.txt` that has
332+
dependencies pinned to the last known versions that support Python 2:
333+
334+
::
335+
336+
jinja2==2.11.3
337+
venvctrl>=0.5.0,<2.0.0
338+
argparse>=1.4.0,<2.0.0
339+
confpy>=0.11.0,<2.0.0
340+
ordereddict>=1.1.0,<2.0.0
341+
semver>=2.9.1,<3.0.0
342+
316343
NOTE: manylinux
317344
===============
318345

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setup(
1212
name="rpmvenv",
13-
version="0.26.0",
13+
version="0.27.0",
1414
url="https://github.com/kevinconway/rpmvenv",
1515
description="RPM packager for Python virtualenv.",
1616
author="Kevin Conway",

0 commit comments

Comments
 (0)