Skip to content

Commit 6805bcb

Browse files
authored
Merge pull request #553 from gstarovo/ci-python-version-updates
Ci python version updates
2 parents 31229ea + b3a6ce3 commit 6805bcb

File tree

3 files changed

+16
-48
lines changed

3 files changed

+16
-48
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,8 @@ jobs:
1717
include:
1818
# first test on vanilla environments
1919
- name: py2.7
20-
os: ubuntu-20.04
20+
os: ubuntu-22.04
2121
python-version: 2.7
22-
- name: py3.6
23-
os: ubuntu-20.04
24-
python-version: 3.6
2522
- name: py3.7
2623
os: ubuntu-22.04
2724
python-version: 3.7
@@ -48,18 +45,10 @@ jobs:
4845
container: centos:6
4946
python-version: 2.6
5047
# then test with the different optional dependencies installed
51-
- name: py3.6 with tackpy
52-
os: ubuntu-20.04
53-
python-version: 3.6
54-
opt-deps: ['tackpy']
5548
- name: py2.7 with m2crypto
56-
os: ubuntu-20.04
49+
os: ubuntu-22.04
5750
python-version: 2.7
5851
opt-deps: ['m2crypto']
59-
- name: py3.6 with m2crypto
60-
os: ubuntu-20.04
61-
python-version: 3.6
62-
opt-deps: ['m2crypto']
6352
- name: py3.7 with m2crypto
6453
os: ubuntu-22.04
6554
python-version: 3.7
@@ -81,28 +70,19 @@ jobs:
8170
python-version: '3.11'
8271
opt-deps: ['m2crypto']
8372
- name: py2.7 with pycrypto
84-
os: ubuntu-20.04
73+
os: ubuntu-22.04
8574
python-version: 2.7
8675
opt-deps: ['pycrypto']
87-
- name: py3.6 with pycrypto
88-
os: ubuntu-20.04
89-
# note: 3.6 is the last version where pycrypto is installable
90-
python-version: 3.6
91-
opt-deps: ['pycrypto']
9276
- name: py3.10 with pycryptodome
9377
os: ubuntu-latest
9478
python-version: '3.10'
9579
# we don't support pycryptodome, just test that when it's installed
9680
# it doesn't break pycrypto code
9781
opt-deps: ['pycryptodome']
9882
- name: py2.7 with gmpy
99-
os: ubuntu-20.04
83+
os: ubuntu-22.04
10084
python-version: 2.7
10185
opt-deps: ['gmpy']
102-
- name: py3.6 with gmpy
103-
os: ubuntu-20.04
104-
python-version: 3.6
105-
opt-deps: ['gmpy']
10686
- name: py3.7 with gmpy
10787
os: ubuntu-22.04
10888
python-version: 3.7
@@ -121,13 +101,9 @@ jobs:
121101
python-version: '3.10'
122102
opt-deps: ['gmpy']
123103
- name: py2.7 with gmpy2
124-
os: ubuntu-20.04
104+
os: ubuntu-22.04
125105
python-version: 2.7
126106
opt-deps: ['gmpy2']
127-
- name: py3.6 with gmpy2
128-
os: ubuntu-20.04
129-
python-version: 3.6
130-
opt-deps: ['gmpy2']
131107
- name: py3.7 with gmpy2
132108
os: ubuntu-22.04
133109
python-version: 3.7
@@ -157,15 +133,10 @@ jobs:
157133
python-version: '3.13'
158134
opt-deps: ['gmpy2']
159135
- name: py2.7 with brotli
160-
os: ubuntu-20.04
136+
os: ubuntu-22.04
161137
python-version: 2.7
162138
# zstandard is available for py3.8 and above
163139
opt-deps: ['brotli']
164-
- name: py3.6 with brotli
165-
os: ubuntu-20.04
166-
python-version: 3.6
167-
# zstandard is available for py3.8 and above
168-
opt-deps: ['brotli']
169140
- name: py3.7 with brotli
170141
os: ubuntu-22.04
171142
python-version: 3.7
@@ -217,13 +188,9 @@ jobs:
217188
opt-deps: ["kyber_py"]
218189
# finally test with multiple dependencies installed at the same time
219190
- name: py2.7 with m2crypto, pycrypto, gmpy, gmpy2, and brotli
220-
os: ubuntu-20.04
191+
os: ubuntu-22.04
221192
python-version: 2.7
222193
opt-deps: ['m2crypto', 'pycrypto', 'gmpy', 'gmpy2', 'brotli']
223-
- name: py3.6 with m2crypto, pycrypto, gmpy, gmpy2, and brotli
224-
os: ubuntu-20.04
225-
python-version: 3.6
226-
opt-deps: ['m2crypto', 'pycrypto', 'gmpy', 'gmpy2', 'brotli']
227194
- name: py3.7 with m2crypto, gmpy, gmpy2, and brotli
228195
os: ubuntu-22.04
229196
python-version: 3.7
@@ -308,15 +275,17 @@ jobs:
308275
uses: actions/setup-python@v2
309276
with:
310277
python-version: ${{ matrix.python-version }}
311-
- name: Ensure python 2.7
278+
- name: Ensure working pip on python 2.7
312279
if: matrix.python-version == '2.7'
313280
run: |
314281
sudo apt-get update
282+
sudo add-apt-repository universe
315283
sudo apt-get install -y \
316-
python2.7 python2.7-dev python-pip-whl
284+
python2.7 python2.7-dev
285+
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
317286
sudo ln -sf python2.7 /usr/bin/python
318-
export PYTHONPATH=`echo /usr/share/python-wheels/pip-*py2*.whl`
319-
sudo --preserve-env=PYTHONPATH python -m pip install --upgrade pip setuptools wheel
287+
sudo python get-pip.py
288+
sudo pip install setuptools wheel
320289
sudo chown -R $USER /usr/local/lib/python2.7
321290
- name: Display Python version
322291
run: python -c "import sys; print(sys.version)"
@@ -345,7 +314,7 @@ jobs:
345314
pip install setuptools-28.8.0-py2.py3-none-any.whl wheel-0.30.0a0-py2.py3-none-any.whl
346315
- name: Install M2Crypto for python 2.7
347316
if: ${{ contains(matrix.opt-deps, 'm2crypto') && matrix.python-version == '2.7' }}
348-
run: pip install M2Crypto==0.37.1
317+
run: pip install M2Crypto==0.38.0
349318
- name: Install M2Crypto for python
350319
if: ${{ contains(matrix.opt-deps, 'm2crypto') && matrix.python-version != '2.7' }}
351320
run: pip install --pre M2Crypto

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Currently it is distributed under Gnu LGPLv2 license.
9595
Requirements:
9696

9797
* Python 2.6 or higher is required.
98-
* Python 3.6 or higher is supported.
98+
* Python 3.7 or higher is supported.
9999
* python ecdsa >= 0.13.3 library
100100
([GitHub](https://github.com/warner/python-ecdsa),
101101
[PyPI](https://pypi.python.org/pypi/ecdsa))

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
'package1': ['LICENSE', 'README.md']},
2525
install_requires=['ecdsa>=0.18.0b1'],
2626
obsoletes=["tlslite"],
27-
python_requires=">=2.6, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*",
27+
python_requires=">=2.6, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, !=3.6.*",
2828
classifiers=[
2929
'Development Status :: 5 - Production/Stable',
3030
'Intended Audience :: Developers',
@@ -35,7 +35,6 @@
3535
'Programming Language :: Python :: 2.6',
3636
'Programming Language :: Python :: 2.7',
3737
'Programming Language :: Python :: 3',
38-
'Programming Language :: Python :: 3.6',
3938
'Programming Language :: Python :: 3.7',
4039
'Programming Language :: Python :: 3.8',
4140
'Programming Language :: Python :: 3.9',

0 commit comments

Comments
 (0)