Skip to content

Commit b0d2f01

Browse files
Merge pull request #33 from hugovk/test-3.11
Add support for Python 3.10 and test 3.11-dev
2 parents 4322f61 + dcdb935 commit b0d2f01

File tree

7 files changed

+29
-28
lines changed

7 files changed

+29
-28
lines changed

.github/workflows/pre-commit.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ jobs:
99
pre-commit:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
13-
- uses: actions/setup-python@v2
14-
- uses: pre-commit/[email protected].0
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-python@v3
14+
- uses: pre-commit/[email protected].3

.github/workflows/pythonapp.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ jobs:
1616
runs-on: ubuntu-latest
1717
name: Python sdist/wheel
1818
steps:
19-
- uses: actions/checkout@v1
20-
- uses: actions/setup-python@v2
19+
- uses: actions/checkout@v3
20+
- uses: actions/setup-python@v3
2121
with:
22-
python-version: "3.9"
22+
python-version: "3.10"
2323
- name: Install dependencies
2424
run: |
2525
python -m pip install --upgrade pip
2626
pip install --upgrade wheel setuptools build
2727
2828
- name: Build package
2929
run: python -m build -o dist/
30-
- uses: actions/upload-artifact@v2
30+
- uses: actions/upload-artifact@v3
3131
with:
3232
name: dist
3333
path: dist
@@ -38,27 +38,27 @@ jobs:
3838
strategy:
3939
matrix:
4040
# todo: extract from source
41-
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9, "3.10-dev"]
41+
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9, "3.10", "3.11-dev"]
4242
install-from: ["dist/*.whl"]
4343
include:
44-
- python-version: 3.9
44+
- python-version: "3.10"
4545
install-from: "-e ."
46-
- python-version: 3.9
46+
- python-version: "3.10"
4747
install-from: "."
48-
- python-version: 3.9
48+
- python-version: "3.10"
4949
install-from: "dist/*.tar.gz"
5050
steps:
51-
- uses: actions/checkout@v1
51+
- uses: actions/checkout@v3
5252
- name: Set up Python ${{ matrix.python-version }}
53-
uses: actions/setup-python@v2
53+
uses: actions/setup-python@v3
5454
with:
5555
python-version: ${{ matrix.python-version }}
5656
- name: Install dependencies
5757
run: |
5858
python -m pip install --upgrade pip
5959
pip install -U setuptools setuptools_scm
6060
pip install pytest
61-
- uses: actions/download-artifact@v2
61+
- uses: actions/download-artifact@v3
6262
with:
6363
name: dist
6464
path: dist
@@ -72,10 +72,10 @@ jobs:
7272
runs-on: ubuntu-latest
7373
needs: [dist]
7474
steps:
75-
- uses: actions/setup-python@v2
75+
- uses: actions/setup-python@v3
7676
with:
77-
python-version: "3.9"
78-
- uses: actions/download-artifact@v2
77+
python-version: "3.10"
78+
- uses: actions/download-artifact@v3
7979
with:
8080
name: dist
8181
path: dist
@@ -87,7 +87,7 @@ jobs:
8787
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
8888
needs: [dist_check, test]
8989
steps:
90-
- uses: actions/download-artifact@v2
90+
- uses: actions/download-artifact@v3
9191
with:
9292
name: dist
9393
path: dist

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
repos:
22
- repo: https://github.com/psf/black
3-
rev: 20.8b1
3+
rev: 22.3.0
44
hooks:
55
- id: black
66
args: [--safe, --quiet]
77
- repo: https://github.com/pre-commit/pre-commit-hooks
8-
rev: v3.4.0
8+
rev: v4.2.0
99
hooks:
1010
- id: trailing-whitespace
1111
- id: end-of-file-fixer
@@ -15,23 +15,23 @@ repos:
1515
- id: debug-statements
1616
language_version: python3
1717
- repo: https://gitlab.com/pycqa/flake8
18-
rev: 3.8.4
18+
rev: 3.9.2
1919
hooks:
2020
- id: flake8
2121
language_version: python3
2222
additional_dependencies:
2323
- flake8-typing-imports==1.9.0
2424
- repo: https://github.com/asottile/reorder_python_imports
25-
rev: v2.3.6
25+
rev: v3.1.0
2626
hooks:
2727
- id: reorder-python-imports
2828
args: ['--application-directories=.:src']
2929
- repo: https://github.com/asottile/pyupgrade
30-
rev: v2.8.0
30+
rev: v2.32.1
3131
hooks:
3232
- id: pyupgrade
3333
- repo: https://github.com/asottile/setup-cfg-fmt
34-
rev: v1.16.0
34+
rev: v1.20.1
3535
hooks:
3636
- id: setup-cfg-fmt
3737
args: [--min-py3-version=3.4]

setup.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ classifiers =
3232
Programming Language :: Python :: 3.7
3333
Programming Language :: Python :: 3.8
3434
Programming Language :: Python :: 3.9
35+
Programming Language :: Python :: 3.10
3536
Programming Language :: Python :: Implementation :: CPython
3637
Topic :: Software Development :: Libraries
3738

@@ -41,7 +42,7 @@ python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
4142
package_dir = =src
4243
setup_requires =
4344
setuptools>=30.3.0
44-
setuptools_scm
45+
setuptools-scm
4546

4647
[options.packages.find]
4748
where = src

src/apipkg/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def distribution_version(name):
5959

6060

6161
def initpkg(pkgname, exportdefs, attr=None, eager=False):
62-
""" initialize given package from the export definitions. """
62+
"""initialize given package from the export definitions."""
6363
attr = attr or {}
6464
mod = sys.modules.get(pkgname)
6565

test_apipkg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ def error(*k):
742742

743743

744744
def test_aliasmodule_unicode():
745-
am = apipkg.AliasModule(u"mymod", "pprint")
745+
am = apipkg.AliasModule("mymod", "pprint")
746746
assert am
747747

748748

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist=py27,py34,py35,py36,py37,py38,py39
2+
envlist=py27,py34,py35,py36,py37,py38,py39,py310,py311
33

44
[testenv]
55
deps=pytest

0 commit comments

Comments
 (0)