Skip to content

Commit 5874ff6

Browse files
hugovksethmlarson
andauthored
Support Python 3.10 and 3.11
Co-authored-by: Seth Michael Larson <[email protected]>
1 parent f7f85a5 commit 5874ff6

File tree

3 files changed

+28
-22
lines changed

3 files changed

+28
-22
lines changed

.github/workflows/ci.yml

+24-22
Original file line numberDiff line numberDiff line change
@@ -8,49 +8,49 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Checkout Repository
11-
uses: actions/checkout@v1
12-
- name: Set up Python 3.8
13-
uses: actions/setup-python@v1
11+
uses: actions/checkout@v3
12+
- name: Set up Python
13+
uses: actions/setup-python@v4
1414
with:
15-
python-version: 3.8
15+
python-version: "3.11"
1616
- name: Install dependencies
1717
run: |
18-
python3.8 -m pip install setuptools wheel twine
18+
python3 -m pip install setuptools wheel twine
1919
- name: Build packages
2020
run: |
21-
python3.8 utils/build-dists.py
21+
python3 utils/build-dists.py
2222
- name: Check packages
2323
run: |
2424
set -exo pipefail;
25-
if [ $(python3.8 -m twine check dist/* | grep -c 'warning') != 0 ]; then exit 1; fi
25+
if [ $(python3 -m twine check dist/* | grep -c 'warning') != 0 ]; then exit 1; fi
2626
2727
lint:
2828
runs-on: ubuntu-latest
2929
steps:
3030
- name: Checkout Repository
31-
uses: actions/checkout@v1
32-
- name: Set up Python 3.8
33-
uses: actions/setup-python@v1
31+
uses: actions/checkout@v3
32+
- name: Set up Python
33+
uses: actions/setup-python@v4
3434
with:
35-
python-version: 3.8
35+
python-version: "3.11"
3636
- name: Install dependencies
3737
run: |
38-
python3.8 -m pip install nox
38+
python3 -m pip install nox
3939
- name: Lint the code
4040
run: nox -s lint
4141

4242
docs:
4343
runs-on: ubuntu-latest
4444
steps:
4545
- name: Checkout Repository
46-
uses: actions/checkout@v2
47-
- name: Set up Python 3.8
48-
uses: actions/setup-python@v2
46+
uses: actions/checkout@v3
47+
- name: Set up Python
48+
uses: actions/setup-python@v4
4949
with:
50-
python-version: 3.8
50+
python-version: "3.11"
5151
- name: Install dependencies
5252
run: |
53-
python3.8 -m pip install nox
53+
python3 -m pip install nox
5454
- name: Build the docs
5555
run: nox -s docs
5656

@@ -65,24 +65,26 @@ jobs:
6565
"3.7",
6666
"3.8",
6767
"3.9",
68+
"3.10",
69+
"3.11",
6870
]
6971
es-version: [7.0.0, 7.10.0]
7072

7173
steps:
7274
- name: Checkout Repository
73-
uses: actions/checkout@v2
75+
uses: actions/checkout@v3
7476
- name: Setup Elasticsearch
7577
run: |
7678
mkdir /tmp/elasticsearch
7779
wget -O - https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${{ matrix.es-version }}-linux-x86_64.tar.gz | tar xz --directory=/tmp/elasticsearch --strip-components=1
7880
/tmp/elasticsearch/bin/elasticsearch -d
7981
- name: Setup Python - ${{ matrix.python-version }}
80-
uses: actions/setup-python@v2
82+
uses: actions/setup-python@v4
8183
with:
8284
python-version: ${{ matrix.python-version }}
83-
- name: Set up Python 3.8 for Nox
84-
if: matrix.python-version != '3.8'
85-
uses: actions/setup-python@v2
85+
- name: Set up Python for Nox
86+
if: matrix.python-version != '3.11'
87+
uses: actions/setup-python@v4
8688
with:
8789
python-version: 3
8890
- name: Install dependencies

noxfile.py

+2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
"3.7",
3535
"3.8",
3636
"3.9",
37+
"3.10",
38+
"3.11",
3739
]
3840
)
3941
def test(session):

setup.py

+2
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@
6868
"Programming Language :: Python :: 3.7",
6969
"Programming Language :: Python :: 3.8",
7070
"Programming Language :: Python :: 3.9",
71+
"Programming Language :: Python :: 3.10",
72+
"Programming Language :: Python :: 3.11",
7173
"Programming Language :: Python :: Implementation :: CPython",
7274
"Programming Language :: Python :: Implementation :: PyPy",
7375
],

0 commit comments

Comments
 (0)