diff --git a/CHANGELOG.md b/CHANGELOG.md index 22e9829..3037321 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,10 +5,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Fixed +- Switch from `setup.py` to `pyproject.toml` (many thanks to [`Felix Scherz`](https://github.com/felixscherz)). ## [0.29.0] - 2024-01-29 ### Added -- Add support for [`pytest`](https://docs.pytest.org)==8.\* ([`pytest`](https://docs.pytest.org)==7.\* is still supported for now). (many thanks to [`Yossi Rozantsev`](https://github.com/Apakottur)) +- Add support for [`pytest`](https://docs.pytest.org)==8.\* ([`pytest`](https://docs.pytest.org)==7.\* is still supported for now) (many thanks to [`Yossi Rozantsev`](https://github.com/Apakottur)). ## [0.28.0] - 2023-12-21 ### Changed @@ -97,7 +99,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [0.20.0] - 2022-02-05 ### Added -- Add support for [`pytest`](https://docs.pytest.org)==7.\* ([`pytest`](https://docs.pytest.org)==6.\* is still supported for now). (many thanks to [`Craig Blaszczyk`](https://github.com/jakul)) +- Add support for [`pytest`](https://docs.pytest.org)==7.\* ([`pytest`](https://docs.pytest.org)==6.\* is still supported for now) (many thanks to [`Craig Blaszczyk`](https://github.com/jakul)). ## [0.19.0] - 2022-01-26 ### Changed diff --git a/pyproject.toml b/pyproject.toml index 6fbae0a..742c6f0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,14 +1,13 @@ [build-system] -requires = ["hatchling"] -build-backend = "hatchling.build" +requires = ["setuptools", "setuptools_scm"] +build-backend = "setuptools.build_meta" [project] name = "pytest-httpx" -dynamic = ["version"] description = "Send responses to httpx." readme = "README.md" -license = "MIT" requires-python = ">=3.9" +license = {file = "LICENSE"} authors = [ { name = "Colin Bounouar", email = "colin.bounouar.dev@gmail.com" }, ] @@ -41,28 +40,27 @@ dependencies = [ "httpx==0.26.*", "pytest>=7,<9", ] +dynamic = ["version"] + +[project.urls] +documentation = "https://colin-b.github.io/pytest_httpx/" +repository = "https://github.com/Colin-b/pytest_httpx" +changelog = "https://github.com/Colin-b/pytest_httpx/blob/master/CHANGELOG.md" +issues = "https://github.com/Colin-b/pytest_httpx/issues" [project.optional-dependencies] testing = [ - "pytest-asyncio==0.23.*", + # Used to check coverage "pytest-cov==4.*", + # Used to run async tests + "pytest-asyncio==0.23.*", ] [project.entry-points.pytest11] pytest_httpx = "pytest_httpx" -[project.urls] -Changelog = "https://github.com/Colin-b/pytest_httpx/blob/master/CHANGELOG.md" -Download = "https://pypi.org/project/pytest-httpx/" -GitHub = "https://github.com/Colin-b/pytest_httpx" -Homepage = "https://colin-b.github.io/pytest_httpx/" -Issues = "https://github.com/Colin-b/pytest_httpx/issues" - -[tool.hatch.version] -path = "pytest_httpx/version.py" - -[tool.hatch.build.targets.sdist] -include = [ - "/pytest_httpx", -] +[tool.setuptools.packages.find] +exclude = ["tests*"] +[tool.setuptools.dynamic] +version = {attr = "pytest_httpx.version.__version__"}