Skip to content

Commit

Permalink
[META] Adds official support for Python 3.10 (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
HorlogeSkynet authored Dec 15, 2020
1 parent 51cdfa9 commit b534323
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.5, 3.6, 3.7, 3.8, 3.9, pypy3]
python-version:
- '3.5'
- '3.6'
- '3.7'
- '3.8'
- '3.9'
- '3.10-dev'
- 'pypy3'

steps:
- uses: actions/checkout@v2
Expand All @@ -34,10 +41,10 @@ jobs:
time archey
time python -m archey
# Currently disabled against Python 3.9.
# Currently disabled against Python >= 3.9.
# See PyCQA/pylint#3882 & PyCQA/pylint#3890.
- name: Lint source code against Pylint
if: ${{ matrix.python-version != '3.9' }}
if: ${{ matrix.python-version != '3.9' && matrix.python-version != '3.10-dev' }}
run: pylint archey/

# Disabled against Pypy (see python/typed_ast#111).
Expand All @@ -64,8 +71,9 @@ jobs:
rm dist/archey
# Disabled against PyPy (see <https://stackoverflow.com/a/22245203>).
# Currently disabled against Python 3.10.
- name: Standalone building (with PyInstaller)
if: ${{ matrix.python-version != 'pypy3' }}
if: ${{ matrix.python-version != 'pypy3' && matrix.python-version != '3.10-dev' }}
run: |
pyinstaller \
--distpath dist \
Expand Down
2 changes: 1 addition & 1 deletion packaging/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ NAME="$(python3 setup.py --name)"
VERSION="$(python3 setup.py --version)"
AUTHOR="$(python3 setup.py --author)"
AUTHOR_EMAIL="$(python3 setup.py --author-email)"
SUPPORTED_PYTHON_VERSIONS="$(python3 setup.py --classifiers | grep 'Programming Language' | grep -Po '\d\.\d')"
SUPPORTED_PYTHON_VERSIONS="$(python3 setup.py --classifiers | grep 'Programming Language' | grep -Po '\d+\.\d+')"


# DRY.
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Topic :: System'
]
)

0 comments on commit b534323

Please sign in to comment.