mirror of https://github.com/MagicStack/uvloop.git
Python 3.10 support (#432)
This commit is contained in:
parent
6cb2ed0f3d
commit
2519e2df62
2
.flake8
2
.flake8
|
@ -1,5 +1,5 @@
|
||||||
[flake8]
|
[flake8]
|
||||||
filename = *.py,*.pyx,*.pxd,*.pxi,*.pyi
|
filename = *.py,*.pyi
|
||||||
ignore = E402,E731,D100,D101,D102,D103,D104,D105,W503,W504,E252
|
ignore = E402,E731,D100,D101,D102,D103,D104,D105,W503,W504,E252
|
||||||
exclude = .git,__pycache__,build,dist,.eggs,postgres,vendor
|
exclude = .git,__pycache__,build,dist,.eggs,postgres,vendor
|
||||||
|
|
||||||
|
|
|
@ -14,27 +14,27 @@ jobs:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [3.7, 3.8, 3.9]
|
python-version: [3.7, 3.8, 3.9, 3.10.0-rc.1]
|
||||||
os: [ubuntu-latest, macos-latest]
|
os: [ubuntu-latest, macos-latest]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 50
|
fetch-depth: 50
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
- name: Check if release PR.
|
- name: Check if release PR.
|
||||||
uses: edgedb/action-release/validate-pr@master
|
uses: edgedb/action-release/validate-pr@master
|
||||||
continue-on-error: true
|
|
||||||
id: release
|
id: release
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}
|
github_token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}
|
||||||
|
missing_version_ok: yes
|
||||||
version_file: uvloop/_version.py
|
version_file: uvloop/_version.py
|
||||||
version_line_pattern: |
|
version_line_pattern: |
|
||||||
__version__\s*=\s*(?:['"])([[:PEP440:]])(?:['"])
|
__version__\s*=\s*(?:['"])([[:PEP440:]])(?:['"])
|
||||||
|
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v1
|
uses: actions/setup-python@v2
|
||||||
if: steps.release.outputs.version == 0
|
if: steps.release.outputs.version == 0
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
|
@ -60,7 +60,7 @@ jobs:
|
||||||
regression-tests:
|
regression-tests:
|
||||||
name: "Regression Tests"
|
name: "Regression Tests"
|
||||||
needs: [test]
|
needs: [test]
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- run: echo OK
|
- run: echo OK
|
||||||
|
|
19
docs/conf.py
19
docs/conf.py
|
@ -2,17 +2,22 @@
|
||||||
|
|
||||||
import alabaster
|
import alabaster
|
||||||
import os
|
import os
|
||||||
import re
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
sys.path.insert(0, os.path.abspath('..'))
|
sys.path.insert(0, os.path.abspath('..'))
|
||||||
|
|
||||||
with open(os.path.abspath('../setup.py'), 'rt') as f:
|
version_file = os.path.join(os.path.dirname(os.path.dirname(__file__)),
|
||||||
_m = re.search(r'''VERSION\s*=\s*(?P<q>'|")(?P<ver>[\d\.]+)(?P=q)''',
|
'uvloop', '_version.py')
|
||||||
f.read())
|
|
||||||
if not _m:
|
with open(version_file, 'r') as f:
|
||||||
raise RuntimeError('unable to read the version from setup.py')
|
for line in f:
|
||||||
version = _m.group('ver')
|
if line.startswith('__version__ ='):
|
||||||
|
_, _, version = line.partition('=')
|
||||||
|
version = version.strip(" \n'\"")
|
||||||
|
break
|
||||||
|
else:
|
||||||
|
raise RuntimeError(
|
||||||
|
'unable to read the version from uvloop/_version.py')
|
||||||
|
|
||||||
|
|
||||||
# -- General configuration ------------------------------------------------
|
# -- General configuration ------------------------------------------------
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
[pytest]
|
[pytest]
|
||||||
addopts = --capture=no --assert=plain --strict --tb native
|
addopts = --capture=no --assert=plain --strict-markers --tb native
|
||||||
testpaths = tests
|
testpaths = tests
|
||||||
filterwarnings = default
|
filterwarnings = default
|
||||||
|
|
11
setup.py
11
setup.py
|
@ -29,18 +29,18 @@ TEST_DEPENDENCIES = [
|
||||||
# their combination breaks too often
|
# their combination breaks too often
|
||||||
# (example breakage: https://gitlab.com/pycqa/flake8/issues/427)
|
# (example breakage: https://gitlab.com/pycqa/flake8/issues/427)
|
||||||
'aiohttp',
|
'aiohttp',
|
||||||
'flake8~=3.8.4',
|
'flake8~=3.9.2',
|
||||||
'psutil',
|
'psutil',
|
||||||
'pycodestyle~=2.6.0',
|
'pycodestyle~=2.7.0',
|
||||||
'pyOpenSSL~=19.0.0',
|
'pyOpenSSL~=19.0.0',
|
||||||
'mypy>=0.800',
|
'mypy>=0.800',
|
||||||
]
|
]
|
||||||
|
|
||||||
# Dependencies required to build documentation.
|
# Dependencies required to build documentation.
|
||||||
DOC_DEPENDENCIES = [
|
DOC_DEPENDENCIES = [
|
||||||
'Sphinx~=1.7.3',
|
'Sphinx~=4.1.2',
|
||||||
'sphinxcontrib-asyncio~=0.2.0',
|
'sphinxcontrib-asyncio~=0.3.0',
|
||||||
'sphinx_rtd_theme~=0.2.4',
|
'sphinx_rtd_theme~=0.5.2',
|
||||||
]
|
]
|
||||||
|
|
||||||
EXTRA_DEPENDENCIES = {
|
EXTRA_DEPENDENCIES = {
|
||||||
|
@ -311,6 +311,7 @@ setup(
|
||||||
'Programming Language :: Python :: 3.7',
|
'Programming Language :: Python :: 3.7',
|
||||||
'Programming Language :: Python :: 3.8',
|
'Programming Language :: Python :: 3.8',
|
||||||
'Programming Language :: Python :: 3.9',
|
'Programming Language :: Python :: 3.9',
|
||||||
|
'Programming Language :: Python :: 3.10',
|
||||||
'License :: OSI Approved :: Apache Software License',
|
'License :: OSI Approved :: Apache Software License',
|
||||||
'License :: OSI Approved :: MIT License',
|
'License :: OSI Approved :: MIT License',
|
||||||
'Intended Audience :: Developers',
|
'Intended Audience :: Developers',
|
||||||
|
|
Loading…
Reference in New Issue