Skip to content

Commit fbba9a5

Browse files
committed
Added python 3.11 support
1 parent 3ccd403 commit fbba9a5

File tree

8 files changed

+29
-22
lines changed

8 files changed

+29
-22
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
strategy:
2121
matrix:
2222
os: [ubuntu-20.04, macos-12]
23-
python-version: ["3.6.15", "3.7", "3.8", "3.9", "3.10"]
23+
python-version: ["3.6.15", "3.7", "3.8", "3.9", "3.10", "3.11"]
2424

2525
steps:
2626
- uses: actions/checkout@v2

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Set up Python ${{ matrix.python }}
1717
uses: actions/setup-python@v1
1818
with:
19-
python-version: 3.6
19+
python-version: "3.10"
2020
architecture: x64
2121

2222
- name: Check formatting and linting
@@ -30,7 +30,7 @@ jobs:
3030
strategy:
3131
matrix:
3232
os: [ubuntu-20.04, macos-12]
33-
python: ["3.6.15", "3.7", "3.8", "3.9", "3.10"]
33+
python: ["3.6.15", "3.7", "3.8", "3.9", "3.10", "3.11"]
3434

3535
steps:
3636
- uses: actions/checkout@v2

CHANGELOG.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Added
1111

12-
- `Archive.media_count`
12+
* `Archive.media_count`
13+
* Python 3.11 Support
1314

1415
### Changed
1516

16-
- Using libzim 8.1.0
17-
- Exceptions in getIndexData dont crash interpreter (#153)
17+
* Using libzim 8.1.0
18+
* Exceptions in getIndexData dont crash interpreter (#153)
1819

1920
## [2.0.0] - 2022-09-06
2021

2122
### Removed
2223

23-
- Removed `lzma` compression option (#150)
24+
* Removed `lzma` compression option (#150)
2425

2526
### Changed
2627

27-
- Using libzim 8.0.0
28+
* Using libzim 8.0.0
2829

2930
## [1.1.1] – 2022-06-17
3031

MANIFEST.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ include pyproject.toml
55
include setup.cfg
66
include requirements-dev.txt
77
include tasks.py
8-
include lib/libzim.7.dylib
9-
include lib/libzim.so.7
8+
include lib/libzim.8.dylib
9+
include lib/libzim.so.8
1010
include libzim/*.cxx
1111
include libzim/*.h
1212
include libzim/*.py

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[build-system]
2-
requires = [ "setuptools >= 35.0.2", "wheel >= 0.29.0", "twine", "cython >= 0.29.30,<3.0" ]
2+
requires = [ "setuptools >= 35.0.2", "wheel >= 0.29.0", "twine", "cython >= 0.29.32,<3.0" ]
33
build-backend = "setuptools.build_meta"
44

55
[tool.black]
6-
target-version = ['py36', 'py37', 'py38', 'py39', 'py310']
6+
target-version = ['py36', 'py37', 'py38', 'py39', 'py310', 'py311']
77

88

99
[tool.pytest.ini_options]

requirements-dev.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
isort>=5.9,<6.0
2-
black>=21.9b0,<22.0
3-
flake8>=3.9,<4.0
4-
invoke>=1.5,<2.0
5-
coverage>=5.0,<7.0
6-
pytest>=6.2,<7.0
7-
pytest-cov>=2.10,<4.0
8-
Cython>=0.29.30
1+
isort>=5.10.1,<6.0
2+
black>=22.10.0,<23.0
3+
flake8>=6.0.0,<7.0
4+
invoke>=1.7.3,<2.0
5+
coverage>=6.5.0,<7.0
6+
pytest>=7.2,<8.0
7+
pytest-cov>=4.0.0,<5.0
8+
Cython>=0.29.32

setup.cfg

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ classifiers =
2929
Programming Language :: Python :: 3.8
3030
Programming Language :: Python :: 3.9
3131
Programming Language :: Python :: 3.10
32+
Programming Language :: Python :: 3.11
3233
Typing :: Stubs Only
3334
License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
3435
Operating System :: MacOS
@@ -40,9 +41,9 @@ zim_safe = False
4041
packages =
4142
libzim
4243
python_requires =
43-
>=3.6,<3.11
44+
>=3.6,<3.12
4445
setup_requires =
45-
cython >= 0.29.30,<0.30
46+
cython >= 0.29.32,<0.30
4647
test_requires =
4748
pytest
4849

tasks.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,16 @@
55
A description file for invoke (https://www.pyinvoke.org/)
66
"""
77

8+
import inspect
89
import pathlib
910
import platform
1011
import re
1112
import urllib.request
1213

14+
# temp local fix for https://github.com/pyinvoke/invoke/issues/891
15+
if not hasattr(inspect, "getargspec"):
16+
inspect.getargspec = inspect.getfullargspec
17+
1318
from invoke import task
1419

1520

0 commit comments

Comments
 (0)