diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 46123f4..4142087 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v3 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8a5fafc..bf99e63 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ ci: # See https://pre-commit.com/hooks.html for info on hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: check-added-large-files - id: check-ast @@ -21,11 +21,11 @@ repos: - id: trailing-whitespace - repo: https://github.com/psf/black - rev: 23.7.0 + rev: 23.12.0 hooks: - id: black - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.0.287 + rev: v0.1.8 hooks: - id: ruff diff --git a/pyproject.toml b/pyproject.toml index 83c47ab..7a88bac 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,9 +19,11 @@ 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", "Topic :: Software Development :: Libraries :: Python Modules", ] + requires-python = ">=3.8.1,<4.0" dependencies = [ "pelican>=4.5", @@ -37,11 +39,13 @@ Funding = "https://donate.getpelican.com/" [project.optional-dependencies] markdown = ["markdown>=3.4"] +[tool.pdm] + [tool.pdm.dev-dependencies] lint = [ "black>=23.7.0", "invoke>=2.2.0", - "ruff>=0.0.280", + "ruff>=0.1.8", ] test = [ "markdown>=3.4", @@ -50,6 +54,14 @@ test = [ "pytest-sugar>=0.9.7", ] +[tool.pdm.build] +source-includes = [ + "CHANGELOG.md", + "CONTRIBUTING.md", +] +includes = ["pelican/"] +excludes = ["tasks.py"] + [tool.autopub] project-name = "Mau Reader" git-username = "botpub" @@ -91,8 +103,6 @@ ignore = [ "PLW2901", # `for` loop variable overwritten by assignment target ] -target-version = "py38" - [tool.ruff.per-file-ignores] "**/test_mau_reader.py" = ["D103", "E501"] @@ -102,11 +112,5 @@ force-sort-within-sections = true known-first-party = ["pelican"] [build-system] -requires = ["hatchling"] -build-backend = "hatchling.build" - -[tool.hatch.build.targets.sdist] -include = ["pelican/plugins/mau_reader/*.py"] - -[tool.hatch.build.targets.wheel] -include = ["pelican/plugins/mau_reader/*.py"] +requires = ["pdm-backend"] +build-backend = "pdm.backend"