Skip to content

Commit

Permalink
Remove support for EOL Python
Browse files Browse the repository at this point in the history
Remove Python 2.7, 3.7, and 3.8 as EOL.
Add 3.10 PyPy.
  • Loading branch information
droideck committed Aug 2, 2023
1 parent db2ff3b commit 8dd64ac
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 25 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,19 @@ permissions:
jobs:
tests:
name: "Python ${{ matrix.python-version }}"
# 20.04 because https://github.com/actions/python-versions
# does not have 2.7 and 3.6 binaries for 22.04.
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
strategy:
fail-fast: false
matrix:
python-version:
- "2.7"
- "3.6"
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12-dev"
- "pypy-2.7"
- "pypy-3.7"
- "pypy-3.8"
- "pypy-3.9"
- "pypy-3.10"
steps:
- uses: "actions/checkout@v3"
with:
Expand Down
6 changes: 6 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Revision 0.5.1, released xx-08-2023
---------------------------------------

- Removed support for EOL Python 2.7, 3.6, 3.7
- Added support for PyPy 3.10

Revision 0.5.0, released 19-04-2023
---------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Features
* Standards compliant BER/CER/DER codecs
* Can operate on streams of serialized data
* Dumps/loads ASN.1 structures from Python types
* 100% Python, works with Python 2.7 and 3.6+
* 100% Python, works with Python 3.8+
* MT-safe
* Contributed ASN.1 compiler [Asn1ate](https://github.com/kimgr/asn1ate)

Expand Down
2 changes: 1 addition & 1 deletion docs/source/download.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Download & Install
==================

The *pyasn1* library is a pure-Python package with no external
dependencies. It works with Python 2.7 and 3.4+.
dependencies. It works with Python 3.8+.

The best way to obtain PyASN1 is by running `pip`:

Expand Down
2 changes: 1 addition & 1 deletion docs/source/pyasn1/contents.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ implementation of pyasn1 classes from ASN.1 specification.

Both `pyasn1 <https://github.com/pyasn1/pyasn1>`_ and
`pyasn1-modules <https://github.com/pyasn1/pyasn1-modules>`_ libraries
can be used out-of-the-box with Python versions 2.7 and 3.4+.
can be used out-of-the-box with Python versions 3.8+.
No external dependencies required.

.. _pyasn1-types:
Expand Down
6 changes: 1 addition & 5 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,7 @@ classifiers =
License :: OSI Approved :: BSD License
Natural Language :: English
Operating System :: OS Independent
Programming Language :: Python :: 2
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Expand All @@ -43,7 +39,7 @@ classifiers =
Topic :: Software Development :: Libraries :: Python Modules

[options]
python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*
python_requires = >=3.8
zip_safe = True
setup_requires = setuptools
packages =
Expand Down
2 changes: 0 additions & 2 deletions tests/codec/ber/test_decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -1812,8 +1812,6 @@ def testGzip(self):
os.remove(path)

def testZipfile(self):
# File from ZIP archive is a good example of non-seekable stream in Python 2.7
# In Python 3.7, it is a seekable stream.
_, path = tempfile.mkstemp(suffix=".zip")
try:
with zipfile.ZipFile(path, "w") as myzip:
Expand Down
9 changes: 2 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tox]
minversion = 3.18.0
envlist =
py27, py36, py37, py38, py39, py310, py311, pypy27, pypy37, pypy38, pypy39
py27, py36, py37, py38, py39, py310, py311, pypy27, pypy37, pypy38, pypy39, pypy310,
cover, docs, bandit, build
isolated_build = true
skip_missing_interpreters = true
Expand Down Expand Up @@ -43,14 +43,9 @@ commands =

[gh-actions]
python =
2.7: py27
3.6: py36
3.7: py37
3.8: py38
3.9: py39, docs
3.10: py310, cover, build, bandit
3.11: py311
pypy-2.7: pypy27
pypy-3.7: pypy37
pypy-3.8: pypy38
pypy-3.9: pypy39
pypy-3.10: pypy310

0 comments on commit 8dd64ac

Please sign in to comment.