Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
runs-on: ubuntu-latest
- python-version: "3.11"
runs-on: ubuntu-latest
- python-version: "3.8"
- python-version: "3.9"
runs-on: ubuntu-latest
- python-version: "3.14t"
runs-on: ubuntu-latest
Expand Down
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ repos:
files: src|tests
args: []
additional_dependencies:
- importlib_resources
- pytest<9 # Python 3.10
- tomli

Expand Down
4 changes: 2 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,6 @@ encouraged to reuse or vendor.

### Compat

`_compat/tomllib.py` shims `tomllib`/`tomli` (<3.11). `requires-python >=3.8`;
keep code 3.8-compatible (note `from __future__ import annotations` is required
`_compat/tomllib.py` shims `tomllib`/`tomli` (<3.11). `requires-python >=3.9`;
keep code 3.9-compatible (note `from __future__ import annotations` is required
by ruff isort config in every module).
6 changes: 2 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ description = "This project is intended to document dynamic-metadata support."
readme = "README.md"
license = "Apache-2.0"
license-files = ["LICENSE"]
requires-python = ">=3.8"
requires-python = ">=3.9"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
Expand All @@ -21,7 +21,6 @@ classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
Expand All @@ -34,7 +33,6 @@ classifiers = [
]
dynamic = ["version"]
dependencies = [
"importlib_resources >=1.3; python_version<'3.9'",
"tomli >=1.1; python_version<'3.11'",
]

Expand Down Expand Up @@ -167,7 +165,7 @@ lint.isort.required-imports = ["from __future__ import annotations"]


[tool.pylint]
py-version = "3.8"
py-version = "3.9"
reports.output-format = "colorized"
similarities.ignore-imports = "yes"
messages_control.disable = [
Expand Down
7 changes: 1 addition & 6 deletions src/dynamic_metadata/schema.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
from __future__ import annotations

import json
import sys
from importlib import resources
from typing import Any

if sys.version_info < (3, 9):
import importlib_resources as resources
else:
from importlib import resources


def get_schema() -> dict[str, Any]:
with (
Expand Down
4 changes: 2 additions & 2 deletions tests/test_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def test_provider_sets_multiple_fields(tmp_path: Path) -> None:
plugin_dir.mkdir()
(plugin_dir / "multi_prov.py").write_text(
"def dynamic_metadata(settings, project):\n"
" return {'version': '1.2.3', 'requires-python': '>=3.8'}\n"
" return {'version': '1.2.3', 'requires-python': '>=3.9'}\n"
)

pyproject = dynamic_metadata.loader.process_dynamic_metadata(
Expand All @@ -220,7 +220,7 @@ def test_provider_sets_multiple_fields(tmp_path: Path) -> None:
)

assert pyproject["version"] == "1.2.3"
assert pyproject["requires-python"] == ">=3.8"
assert pyproject["requires-python"] == ">=3.9"
assert pyproject["dynamic"] == []


Expand Down
803 changes: 72 additions & 731 deletions uv.lock

Large diffs are not rendered by default.

Loading