Skip to content

Commit

Permalink
feat: supporting python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
lumina37 committed Nov 3, 2023
1 parent 64d30b5 commit a60d0d5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

strategy:
matrix:
python-version: ["3.8", "3.11"]
python-version: ["3.8", "3.12"]

steps:
- name: Checkout develop
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_BUILD: "cp38-* cp39-* cp310-* cp311-* pp38-* pp39-* pp310-*"
CIBW_BUILD: "cp38-* cp39-* cp310-* cp311-* cp312-* pp38-* pp39-* pp310-*"
CIBW_SKIP: "*-win32 *_i686 *_s390x *_ppc64le"

- uses: actions/upload-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion aiotieba/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "3.7.3"
__version__ = "3.7.4a0"
20 changes: 12 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Internet :: WWW/HTTP :: Session",
]
requires-python = ">=3.8"
dependencies = [
"aiohttp<3.9,>=3.8.4;python_version=='3.8'",
"aiohttp<3.10,>=3.8.4;python_version=='3.8'",
"aiohttp<4,>=3.8.4;python_version>='3.9'", # See https://github.com/aio-libs/aiohttp/pull/6638
"beautifulsoup4<4.13,>=4.4.1;python_version=='3.8'",
"beautifulsoup4<5,>=4.5.2;python_version=='3.9'",
Expand All @@ -41,8 +42,8 @@ dynamic = ["version"]

[project.optional-dependencies]
img = [
"opencv-contrib-python-headless<4.9,>=4.6.0.66;sys_platform=='linux'",
"opencv-contrib-python<4.9,>=4.6.0.66;sys_platform!='linux'",
"opencv-contrib-python-headless<4.10,>=4.6.0.66;sys_platform=='linux'",
"opencv-contrib-python<4.10,>=4.6.0.66;sys_platform!='linux'",
]
speedup = [
"aiodns<4,>=3.0.0",
Expand All @@ -54,10 +55,10 @@ speedup = [
"pysimdjson<6,>=3.1.1;python_version=='3.9'",
"pysimdjson<6,>=4.0.3;python_version=='3.10'",
"pysimdjson<6,>=5.0.1;python_version>='3.11'",
"uvloop<0.20,>=0.14.0;python_version=='3.8' and sys_platform!='win32'",
"uvloop<0.20,>=0.15.0;python_version=='3.9' and sys_platform!='win32'",
"uvloop<0.20,>=0.16.0;python_version=='3.10' and sys_platform!='win32'",
"uvloop<0.20,>=0.17.0;python_version>='3.11' and sys_platform!='win32'",
"uvloop<0.20.0,>=0.14.0;python_version=='3.8' and sys_platform!='win32'",
"uvloop<1.0,>=0.15.0;python_version=='3.9' and sys_platform!='win32'",
"uvloop<1.0,>=0.16.0;python_version=='3.10' and sys_platform!='win32'",
"uvloop<1.0,>=0.17.0;python_version>='3.11' and sys_platform!='win32'",
]

[tool.setuptools.packages.find]
Expand All @@ -69,6 +70,9 @@ version = { attr = "aiotieba.__version__.__version__" }
[tool.setuptools.package-data]
"*" = ["*.pyi"]

[tool.pdm]
allow_prereleases = true

[tool.pdm.dev-dependencies]
lint = ["ruff", "black"]
test = ["aiotieba[speedup]", "pytest", "pytest-asyncio", "pytest-rerunfailures"]
Expand All @@ -77,7 +81,7 @@ doc = ["mkdocs-material", "mkdocstrings[python]"]
[tool.black]
line-length = 120
skip-string-normalization = true
target-version = ["py38", "py39", "py310", "py311"]
target-version = ["py38", "py39", "py310", "py311", "py312"]

[tool.ruff]
line-length = 120
Expand Down

0 comments on commit a60d0d5

Please sign in to comment.