File tree Expand file tree Collapse file tree 3 files changed +23
-17
lines changed Expand file tree Collapse file tree 3 files changed +23
-17
lines changed Original file line number Diff line number Diff line change @@ -14,27 +14,27 @@ jobs:
14
14
runs-on : ${{ matrix.os }}
15
15
strategy :
16
16
matrix :
17
- python-version : [3.7, 3.8, 3.9]
17
+ python-version : [3.7, 3.8, 3.9, 3.10.0-rc.1 ]
18
18
os : [ubuntu-latest, macos-latest]
19
19
20
20
steps :
21
- - uses : actions/checkout@v1
21
+ - uses : actions/checkout@v2
22
22
with :
23
23
fetch-depth : 50
24
24
submodules : true
25
25
26
26
- name : Check if release PR.
27
27
uses : edgedb/action-release/validate-pr@master
28
- continue-on-error : true
29
28
id : release
30
29
with :
31
30
github_token : ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}
31
+ missing_version_ok : yes
32
32
version_file : uvloop/_version.py
33
33
version_line_pattern : |
34
34
__version__\s*=\s*(?:['"])([[:PEP440:]])(?:['"])
35
35
36
36
- name : Set up Python ${{ matrix.python-version }}
37
- uses : actions/setup-python@v1
37
+ uses : actions/setup-python@v2
38
38
if : steps.release.outputs.version == 0
39
39
with :
40
40
python-version : ${{ matrix.python-version }}
60
60
regression-tests :
61
61
name : " Regression Tests"
62
62
needs : [test]
63
- runs-on : ubuntu-20.04
63
+ runs-on : ubuntu-latest
64
64
65
65
steps :
66
66
- run : echo OK
Original file line number Diff line number Diff line change 2
2
3
3
import alabaster
4
4
import os
5
- import re
6
5
import sys
7
6
8
7
sys .path .insert (0 , os .path .abspath ('..' ))
9
8
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' )
16
21
17
22
18
23
# -- General configuration ------------------------------------------------
Original file line number Diff line number Diff line change 29
29
# their combination breaks too often
30
30
# (example breakage: https://gitlab.com/pycqa/flake8/issues/427)
31
31
'aiohttp' ,
32
- 'flake8~=3.8.4 ' ,
32
+ 'flake8~=3.9.2 ' ,
33
33
'psutil' ,
34
- 'pycodestyle~=2.6 .0' ,
34
+ 'pycodestyle~=2.7 .0' ,
35
35
'pyOpenSSL~=19.0.0' ,
36
36
'mypy>=0.800' ,
37
37
]
38
38
39
39
# Dependencies required to build documentation.
40
40
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 ' ,
44
44
]
45
45
46
46
EXTRA_DEPENDENCIES = {
@@ -311,6 +311,7 @@ def build_extensions(self):
311
311
'Programming Language :: Python :: 3.7' ,
312
312
'Programming Language :: Python :: 3.8' ,
313
313
'Programming Language :: Python :: 3.9' ,
314
+ 'Programming Language :: Python :: 3.10' ,
314
315
'License :: OSI Approved :: Apache Software License' ,
315
316
'License :: OSI Approved :: MIT License' ,
316
317
'Intended Audience :: Developers' ,
You can’t perform that action at this time.
0 commit comments