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:
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 }}
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
Original file line number Diff line number Diff line change 22
33import alabaster
44import os
5- import re
65import sys
76
87sys .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 ------------------------------------------------
Original file line number Diff line number Diff line change 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.
4040DOC_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
4646EXTRA_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' ,
You can’t perform that action at this time.
0 commit comments