Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ec44ed5

Browse files
committed
chore: change to ubuntu-22 since u-20 is deprecated
-ensure working pip on python2.7 -adjust python 3.6 to run on centos:8, since ubuntu22 image does not support python3.6 -git version on centos:6 was too old and was not working properly, changing it to manually download and build newer git version
1 parent 2a6593d commit ec44ed5

File tree

2 files changed

+65
-17
lines changed

2 files changed

+65
-17
lines changed

‎.github/workflows/ci.yml‎

Lines changed: 64 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,31 +24,32 @@ jobs:
2424
python-version: "3.10"
2525
tox-env: py310
2626
- name: py2.7
27-
os: ubuntu-20.04
27+
os: ubuntu-22.04
2828
python-version: 2.7
2929
tox-env: py27
3030
- name: py2.7 with old gmpy
31-
os: ubuntu-20.04
31+
os: ubuntu-22.04
3232
python-version: 2.7
3333
tox-env: py27_old_gmpy
3434
- name: py2.7 with old gmpy2
35-
os: ubuntu-20.04
35+
os: ubuntu-22.04
3636
python-version: 2.7
3737
tox-env: py27_old_gmpy2
3838
- name: py2.7 with old six
39-
os: ubuntu-20.04
39+
os: ubuntu-22.04
4040
python-version: 2.7
4141
tox-env: py27_old_six
4242
- name: py2.7 with gmpy
43-
os: ubuntu-20.04
43+
os: ubuntu-22.04
4444
python-version: 2.7
4545
tox-env: gmpypy27
4646
- name: py2.7 with gmpy2
47-
os: ubuntu-20.04
47+
os: ubuntu-22.04
4848
python-version: 2.7
4949
tox-env: gmpy2py27
5050
- name: py3.6
51-
os: ubuntu-20.04
51+
os: ubuntu-latest
52+
container: centos:8
5253
python-version: 3.6
5354
tox-env: py36
5455
- name: py3.7
@@ -97,7 +98,7 @@ jobs:
9798
tox-env: pypy3
9899
# special configurations
99100
- name: py2.7 with instrumental
100-
os: ubuntu-20.04
101+
os: ubuntu-22.04
101102
python-version: 2.7
102103
opt-deps: ['instrumental']
103104
- name: code checks
@@ -118,7 +119,7 @@ jobs:
118119
if: ${{ matrix.container }}
119120
with:
120121
fetch-depth: 50
121-
- name: Ensure dependencies on CentOS
122+
- name: Ensure dependencies on CentOS:6
122123
if: ${{ matrix.container == 'centos:6' }}
123124
run: |
124125
ls /etc/yum.repos.d/
@@ -147,13 +148,55 @@ jobs:
147148
echo installing
148149
yum clean all
149150
yum repolist all
150-
yum install -y git make python curl gcc libffi-devel python-devel glibc-devel openssl-devel wget
151+
yum install -y make python curl gcc libffi-devel python-devel glibc-devel openssl-devel wget curl-config curl-devel expat-devel gettext-devel zlib-devel perl-ExtUtils-MakeMaker
152+
cd /usr/src
153+
wget https://www.kernel.org/pub/software/scm/git/git-2.31.0.tar.gz
154+
tar xzf git-2.31.0.tar.gz
155+
cd git-2.31.0
156+
make prefix=/usr/local/git all
157+
make prefix=/usr/local/git install
158+
ln -fs /usr/local/git/bin/git /usr/bin/git
159+
- name: Ensere dependenceis on CentOS:8
160+
if: ${{ matrix.container == 'centos:8' }}
161+
run: |
162+
ls /etc/yum.repos.d/
163+
cat /etc/yum.repos.d/CentOS-Linux-BaseOS.repo
164+
cat /etc/yum.repos.d/CentOS-Linux-AppStream.repo
165+
cat /etc/yum.repos.d/CentOS-Linux-Extras.repo
166+
rm /etc/yum.repos.d/CentOS-Linux-BaseOS.repo
167+
rm /etc/yum.repos.d/CentOS-Linux-AppStream.repo
168+
rm /etc/yum.repos.d/CentOS-Linux-Extras.repo
169+
cat > /etc/yum.repos.d/CentOS-Linux-BaseOS.repo <<EOF
170+
[BaseOS]
171+
name=CentOS Linux $releasever - BaseOS
172+
baseurl=https://vault.centos.org/8.5.2111/BaseOS/x86_64/os/
173+
gpgcheck=0
174+
metadata_expire=-1
175+
EOF
176+
cat > /etc/yum.repos.d/CentOS-Linux-AppStream.repo <<EOF
177+
[AppStream]
178+
name=CentOS Linux $releasever - AppStream
179+
baseurl=https://vault.centos.org/8.5.2111/AppStream/x86_64/os/
180+
gpgcheck=0
181+
metadata_expire=-1
182+
EOF
183+
cat > /etc/yum.repos.d/CentOS-Linux-Extras.repo <<EOF
184+
[Extras]
185+
name=CentOS Linux $releasever - Extras
186+
baseurl=https://vault.centos.org/8.5.2111/extras/x86_64/os/
187+
gpgcheck=0
188+
metadata_expire=-1
189+
EOF
190+
echo installing
191+
yum clean all
192+
yum repolist all
193+
yum install -y git make python36 curl gcc libffi-devel python36-devel glibc-devel openssl-devel wget
194+
ln -fs /usr/bin/python3.6 /usr/bin/python
151195
- name: Ensure dependencies on Ubuntu 22.04
152196
if: ${{ matrix.container == 'ubuntu:22.04' }}
153197
run: |
154198
apt-get update
155199
apt-get install -y git make python-is-python3 python3 curl wget python3-distutils python3-pip
156-
157200
- name: Dependencies for mutation testing
158201
if: ${{ matrix.mutation == 'true' }}
159202
run: |
@@ -178,10 +221,11 @@ jobs:
178221
run: |
179222
sudo apt-get update
180223
sudo apt-get install -y \
181-
python2.7 python2.7-dev python-pip-whl
224+
python2.7 python2.7-dev
225+
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
182226
sudo ln -sf python2.7 /usr/bin/python
183-
export PYTHONPATH=`echo /usr/share/python-wheels/pip-*py2*.whl`
184-
sudo --preserve-env=PYTHONPATH python -m pip install --upgrade pip setuptools wheel
227+
sudo python get-pip.py
228+
sudo pip install --upgrade setuptools wheel
185229
sudo chown -R $USER /usr/local/lib/python2.7
186230
- name: Display Python version
187231
run: python -c "import sys; print(sys.version)"
@@ -208,6 +252,11 @@ jobs:
208252
wget https://files.pythonhosted.org/packages/3b/7e/293d19ccd106119e35db4bf3e111b1895098f618b455b758aa636496cf03/setuptools-28.8.0-py2.py3-none-any.whl
209253
wget https://files.pythonhosted.org/packages/83/53/e120833aa2350db333df89a40dea3b310dd9dabf6f29eaa18934a597dc79/wheel-0.30.0a0-py2.py3-none-any.whl
210254
pip install setuptools-28.8.0-py2.py3-none-any.whl wheel-0.30.0a0-py2.py3-none-any.whl
255+
- name: ensure working pip on 3.6
256+
if: ${{ matrix.python-version == '3.6' }}
257+
run: |
258+
curl -o get-pip.py https://bootstrap.pypa.io/pip/3.6/get-pip.py
259+
python get-pip.py
211260
- name: Install instrumental
212261
if: ${{ contains(matrix.opt-deps, 'instrumental') }}
213262
run: pip install instrumental
@@ -225,7 +274,7 @@ jobs:
225274
run: |
226275
wget https://files.pythonhosted.org/packages/1d/4e/20c679f8c5948f7c48591fde33d442e716af66a31a88f5791850a75041eb/tox-2.9.1-py2.py3-none-any.whl
227276
wget https://files.pythonhosted.org/packages/d9/9d/077582a4c6d771e3b742631e6c1d3688f48210626de488e032776242b3f2/inflect-0.3.0-py2.py3-none-any.whl
228-
wget https://files.pythonhosted.org/packages/79/db/7c0cfe4aa8341a5fab4638952520d8db6ab85ff84505e12c00ea311c3516/pyOpenSSL-17.5.0-py2.py3-none-any.whl
277+
wget https://files.pythonhosted.org/packages/79/db/7c0cfe4aa8341a5fab4638952520d8db6ab85ff84505e12c00ea311c3516/pyOpenSSL-17.5.0-py2.py3-none-any.whl
229278
wget https://files.pythonhosted.org/packages/2d/bf/960e5a422db3ac1a5e612cb35ca436c3fc985ed4b7ed13a1b4879006f450/cffi-1.13.2.tar.gz
230279
wget https://files.pythonhosted.org/packages/4b/2a/0276479a4b3caeb8a8c1af2f8e4355746a97fab05a372e4a2c6a6b876165/idna-2.7-py2.py3-none-any.whl
231280
wget https://files.pythonhosted.org/packages/72/20/7f0f433060a962200b7272b8c12ba90ef5b903e218174301d0abfd523813/unittest2-1.1.0-py2.py3-none-any.whl
@@ -383,7 +432,6 @@ jobs:
383432
else
384433
coveralls
385434
fi
386-
387435
coveralls:
388436
name: Indicate completion to coveralls.io
389437
needs: test

‎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.6+. It also supports execution on alternative
48+
Python 2.7, and 3.7+. 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.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /