Skip to content

Commit 0edcc81

Browse files
committed
Drop support for python 3.3 and python 3.4
As Github actions is dropping support for Ubuntu-18.04 images and those are the only ones that support easy execution of python 3.3 and python 3.4 environments, support for py3.3 and 3.4 would be hard to ensure. For old systems python 2.6 and 2.7 support will remain.
1 parent 644412d commit 0edcc81

File tree

7 files changed

+10
-57
lines changed

7 files changed

+10
-57
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,6 @@ jobs:
4747
os: ubuntu-18.04
4848
python-version: 2.7
4949
tox-env: gmpy2py27
50-
- name: py3.3
51-
os: ubuntu-18.04
52-
python-version: 3.3
53-
tox-env: py33
54-
- name: py3.4
55-
os: ubuntu-18.04
56-
python-version: 3.4
57-
tox-env: py34
5850
- name: py3.5
5951
os: ubuntu-18.04
6052
python-version: 3.5

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ curves over prime fields.
4545
## Dependencies
4646

4747
This library uses only Python and the 'six' package. It is compatible with
48-
Python 2.6, 2.7, and 3.3+. It also supports execution on alternative
48+
Python 2.6, 2.7, and 3.5+. It also supports execution on alternative
4949
implementations like pypy and pypy3.
5050

5151
If `gmpy2` or `gmpy` is installed, they will be used for faster arithmetic.

build-requirements-3.3.txt

Lines changed: 0 additions & 9 deletions
This file was deleted.

build-requirements-3.4.txt

Lines changed: 0 additions & 7 deletions
This file was deleted.

setup.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,13 @@
2727
package_dir={"": "src"},
2828
license="MIT",
2929
cmdclass=commands,
30-
python_requires=">=2.6, !=3.0.*, !=3.1.*, !=3.2.*",
30+
python_requires=">=2.6, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*",
3131
classifiers=[
3232
"Programming Language :: Python",
3333
"Programming Language :: Python :: 2",
3434
"Programming Language :: Python :: 2.6",
3535
"Programming Language :: Python :: 2.7",
3636
"Programming Language :: Python :: 3",
37-
"Programming Language :: Python :: 3.3",
38-
"Programming Language :: Python :: 3.4",
3937
"Programming Language :: Python :: 3.5",
4038
"Programming Language :: Python :: 3.6",
4139
"Programming Language :: Python :: 3.7",

src/ecdsa/_compat.py

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -91,28 +91,13 @@ def int_to_bytes(val, length=None, byteorder="big"):
9191
raise ValueError("Only 'big' or 'little' endian supported")
9292

9393
else:
94-
if sys.version_info < (3, 4): # pragma: no branch
95-
# on python 3.3 hmac.hmac.update() accepts only bytes, on newer
96-
# versions it does accept memoryview() also
97-
def hmac_compat(data):
98-
if not isinstance(data, bytes): # pragma: no branch
99-
return bytes(data)
100-
return data
101-
102-
def normalise_bytes(buffer_object):
103-
"""Cast the input into array of bytes."""
104-
if not buffer_object:
105-
return b""
106-
return memoryview(buffer_object).cast("B")
10794

108-
else:
109-
110-
def hmac_compat(data):
111-
return data
95+
def hmac_compat(data):
96+
return data
11297

113-
def normalise_bytes(buffer_object):
114-
"""Cast the input into array of bytes."""
115-
return memoryview(buffer_object).cast("B")
98+
def normalise_bytes(buffer_object):
99+
"""Cast the input into array of bytes."""
100+
return memoryview(buffer_object).cast("B")
116101

117102
def compat26_str(val):
118103
return val

tox.ini

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11

22
[tox]
3-
envlist = py26, py27, py33, py34, py35, py36, py37, py38, py39, py310, py311, py, pypy, pypy3, gmpy2py27, gmpy2py39, gmpy2py310, gmpypy27, gmpypy39, gmpypy310, codechecks
3+
envlist = py26, py27, py35, py36, py37, py38, py39, py310, py311, py, pypy, pypy3, gmpy2py27, gmpy2py39, gmpy2py310, gmpypy27, gmpypy39, gmpypy310, codechecks
44

55
[testenv]
66
deps =
7-
py{33}: py<1.5
8-
py{33}: pytest<3.3
9-
py{33}: enum34
10-
py{33}: hypothesis<3.44
117
py{26}: unittest2
128
py{26}: hypothesis<3
13-
py{34}: attrs<21
14-
py{26,27,34,35,36,37,38,39,310,311,py,py3}: pytest
15-
py{27,34,35,36,37,38,39,310,311,py,py3}: hypothesis
9+
py{26,27,35,36,37,38,39,310,311,py,py3}: pytest
10+
py{27,35,36,37,38,39,310,311,py,py3}: hypothesis
1611
gmpy2py{27,39,310,311}: gmpy2
1712
gmpypy{27,39,310,311}: gmpy
1813
gmpy{2py27,2py39,2py310,2py311,py27,py39,py310,py311}: pytest
@@ -31,7 +26,6 @@ deps =
3126
py27_old_gmpy2: hypothesis
3227
py: pytest
3328
py: hypothesis
34-
py{33}: wheel<0.30
3529
coverage
3630
commands = coverage run --branch -m pytest {posargs:src/ecdsa}
3731

0 commit comments

Comments
 (0)