Skip to content

Commit 2519e2d

Browse files
authoredAug 7, 2021
Python 3.10 support (#432)
1 parent 6cb2ed0 commit 2519e2d

File tree

5 files changed

+25
-19
lines changed

5 files changed

+25
-19
lines changed
 

Diff for: ‎.flake8

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[flake8]
2-
filename = *.py,*.pyx,*.pxd,*.pxi,*.pyi
2+
filename = *.py,*.pyi
33
ignore = E402,E731,D100,D101,D102,D103,D104,D105,W503,W504,E252
44
exclude = .git,__pycache__,build,dist,.eggs,postgres,vendor
55

Diff for: ‎.github/workflows/tests.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,27 @@ jobs:
1414
runs-on: ${{ matrix.os }}
1515
strategy:
1616
matrix:
17-
python-version: [3.7, 3.8, 3.9]
17+
python-version: [3.7, 3.8, 3.9, 3.10.0-rc.1]
1818
os: [ubuntu-latest, macos-latest]
1919

2020
steps:
21-
- uses: actions/checkout@v1
21+
- uses: actions/checkout@v2
2222
with:
2323
fetch-depth: 50
2424
submodules: true
2525

2626
- name: Check if release PR.
2727
uses: edgedb/action-release/validate-pr@master
28-
continue-on-error: true
2928
id: release
3029
with:
3130
github_token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}
31+
missing_version_ok: yes
3232
version_file: uvloop/_version.py
3333
version_line_pattern: |
3434
__version__\s*=\s*(?:['"])([[:PEP440:]])(?:['"])
3535
3636
- name: Set up Python ${{ matrix.python-version }}
37-
uses: actions/setup-python@v1
37+
uses: actions/setup-python@v2
3838
if: steps.release.outputs.version == 0
3939
with:
4040
python-version: ${{ matrix.python-version }}
@@ -60,7 +60,7 @@ jobs:
6060
regression-tests:
6161
name: "Regression Tests"
6262
needs: [test]
63-
runs-on: ubuntu-20.04
63+
runs-on: ubuntu-latest
6464

6565
steps:
6666
- run: echo OK

Diff for: ‎docs/conf.py

+12-7
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,22 @@
22

33
import alabaster
44
import os
5-
import re
65
import sys
76

87
sys.path.insert(0, os.path.abspath('..'))
98

10-
with open(os.path.abspath('../setup.py'), 'rt') as f:
11-
_m = re.search(r'''VERSION\s*=\s*(?P<q>'|")(?P<ver>[\d\.]+)(?P=q)''',
12-
f.read())
13-
if not _m:
14-
raise RuntimeError('unable to read the version from setup.py')
15-
version = _m.group('ver')
9+
version_file = os.path.join(os.path.dirname(os.path.dirname(__file__)),
10+
'uvloop', '_version.py')
11+
12+
with open(version_file, 'r') as f:
13+
for line in f:
14+
if line.startswith('__version__ ='):
15+
_, _, version = line.partition('=')
16+
version = version.strip(" \n'\"")
17+
break
18+
else:
19+
raise RuntimeError(
20+
'unable to read the version from uvloop/_version.py')
1621

1722

1823
# -- General configuration ------------------------------------------------

Diff for: ‎pytest.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[pytest]
2-
addopts = --capture=no --assert=plain --strict --tb native
2+
addopts = --capture=no --assert=plain --strict-markers --tb native
33
testpaths = tests
44
filterwarnings = default

Diff for: ‎setup.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,18 @@
2929
# their combination breaks too often
3030
# (example breakage: https://gitlab.com/pycqa/flake8/issues/427)
3131
'aiohttp',
32-
'flake8~=3.8.4',
32+
'flake8~=3.9.2',
3333
'psutil',
34-
'pycodestyle~=2.6.0',
34+
'pycodestyle~=2.7.0',
3535
'pyOpenSSL~=19.0.0',
3636
'mypy>=0.800',
3737
]
3838

3939
# Dependencies required to build documentation.
4040
DOC_DEPENDENCIES = [
41-
'Sphinx~=1.7.3',
42-
'sphinxcontrib-asyncio~=0.2.0',
43-
'sphinx_rtd_theme~=0.2.4',
41+
'Sphinx~=4.1.2',
42+
'sphinxcontrib-asyncio~=0.3.0',
43+
'sphinx_rtd_theme~=0.5.2',
4444
]
4545

4646
EXTRA_DEPENDENCIES = {
@@ -311,6 +311,7 @@ def build_extensions(self):
311311
'Programming Language :: Python :: 3.7',
312312
'Programming Language :: Python :: 3.8',
313313
'Programming Language :: Python :: 3.9',
314+
'Programming Language :: Python :: 3.10',
314315
'License :: OSI Approved :: Apache Software License',
315316
'License :: OSI Approved :: MIT License',
316317
'Intended Audience :: Developers',

0 commit comments

Comments
 (0)
Please sign in to comment.