Skip to content

Commit ed66abb

Browse files
authored
fix: remove Python 2 jobs (#175)
1 parent 9e8adfe commit ed66abb

File tree

2 files changed

+2
-56
lines changed

2 files changed

+2
-56
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
with:
3131
python-version: ${{ matrix.python }}
3232
- name: Install tox and any other packages
33-
run: pip install tox
33+
run: pip install 'tox<4.9'
3434
- name: Run tox
3535
run: tox -e ${{ matrix.toxenv }}
3636

@@ -52,47 +52,7 @@ jobs:
5252
- name: Install gdal
5353
run: sudo apt-get install -y libgdal-dev libsqlite3-mod-spatialite
5454
- name: Install tox and any other packages
55-
run: pip install tox
56-
- name: Run tox
57-
run: tox -e ${{ matrix.toxenv }} -- --test-spatial
58-
59-
test-Python2:
60-
runs-on: ubuntu-latest
61-
strategy:
62-
matrix:
63-
python: ["2.7"]
64-
toxenv: ["py27"]
65-
66-
steps:
67-
- uses: actions/checkout@v3
68-
- name: Setup Python
69-
uses: actions/setup-python@v4
70-
with:
71-
python-version: ${{ matrix.python }}
72-
- name: Install tox and any other packages
73-
run: pip install tox
74-
- name: Run tox
75-
run: tox -e ${{ matrix.toxenv }}
76-
77-
test-spatial-Python2:
78-
runs-on: ubuntu-latest
79-
strategy:
80-
matrix:
81-
python: ["2.7"]
82-
toxenv: ["py27"]
83-
84-
steps:
85-
- uses: actions/checkout@v3
86-
- name: Setup Python
87-
uses: actions/setup-python@v4
88-
with:
89-
python-version: ${{ matrix.python }}
90-
- name: Update apt
91-
run: sudo apt-get update
92-
- name: Install gdal
93-
run: sudo apt-get install -y libgdal-dev libsqlite3-mod-spatialite
94-
- name: Install tox and any other packages
95-
run: pip install tox
55+
run: pip install 'tox<4.9'
9656
- name: Run tox
9757
run: tox -e ${{ matrix.toxenv }} -- --test-spatial
9858

@@ -102,8 +62,6 @@ jobs:
10262
- pre-commit
10363
- test
10464
- test-spatial
105-
- test-Python2
106-
- test-spatial-Python2
10765
runs-on: ubuntu-latest
10866
steps:
10967
- uses: actions/checkout@v3

tox.ini

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,10 @@
11
[tox]
22
envlist =
3-
py27
43
py39-dj{22,32}
54
py310-dj{22,32}
65
py311-dj{22,32}
76
platform = linux
87

9-
[testenv:py27]
10-
commands =
11-
pip install --global-option=build_ext --global-option='-USQLITE_OMIT_LOAD_EXTENSION' pysqlite
12-
pytest {posargs}
13-
deps =
14-
pytest
15-
pytest-django
16-
pyquery<1.4
17-
six
18-
Django<2
19-
208
[testenv]
219
commands =
2210
pytest {posargs}

0 commit comments

Comments
 (0)