diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 8aee9e31..59e06b6b 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -27,7 +27,7 @@ jobs: strategy: matrix: - python-version: ["3.8", "3.11"] + python-version: ["3.8", "3.12"] steps: - name: Checkout develop diff --git a/.github/workflows/Publish.yml b/.github/workflows/Publish.yml index 4d3b79d9..a7a93453 100644 --- a/.github/workflows/Publish.yml +++ b/.github/workflows/Publish.yml @@ -20,7 +20,7 @@ jobs: - name: Build wheels uses: pypa/cibuildwheel@v2.15.0 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 diff --git a/aiotieba/__version__.py b/aiotieba/__version__.py index 221485ae..cad40118 100644 --- a/aiotieba/__version__.py +++ b/aiotieba/__version__.py @@ -1 +1 @@ -__version__ = "3.7.3" +__version__ = "3.7.4a0" diff --git a/pyproject.toml b/pyproject.toml index ad9d9e2d..2825eb1a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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'", @@ -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", @@ -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] @@ -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"] @@ -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