Skip to content

Commit

Permalink
Use setuptools
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin-b committed Feb 21, 2024
1 parent 313013a commit 498147d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
36 changes: 17 additions & 19 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 = "[email protected]" },
]
Expand Down Expand Up @@ -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__"}

0 comments on commit 498147d

Please sign in to comment.