Skip to content

Commit 164fa44

Browse files
committed
Add support for Python 3.10
1 parent ff94f67 commit 164fa44

File tree

5 files changed

+16
-15
lines changed

5 files changed

+16
-15
lines changed

.github/workflows/pythonapp.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- uses: actions/checkout@v3
2020
- 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
@@ -38,14 +38,14 @@ 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"]
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:
5151
- uses: actions/checkout@v3
@@ -74,7 +74,7 @@ jobs:
7474
steps:
7575
- uses: actions/setup-python@v3
7676
with:
77-
python-version: "3.9"
77+
python-version: "3.10"
7878
- uses: actions/download-artifact@v3
7979
with:
8080
name: 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

0 commit comments

Comments
 (0)