Skip to content

Commit

Permalink
🔧 config(hatch): add build targets
Browse files Browse the repository at this point in the history
  • Loading branch information
ljnsn committed Oct 16, 2024
1 parent 925ab95 commit dc225bd
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.build.targets.wheel]
packages = ["src/coinapi"]

[tool.hatch.build.targets.sdist]
include = ["src", "pyproject.toml", "README.md"]

[project]
name = "coinapi-rest"
version = "0.0.5"
Expand Down Expand Up @@ -215,10 +221,3 @@ addopts = """--color=yes --doctest-modules --exitfirst --failed-first \
filterwarnings = ["ignore::DeprecationWarning", "ignore::ResourceWarning"]
testpaths = ["src", "tests"]
markers = ["network: mark a test as needing a network connection"]

[tool.pdm.scripts]
lint = "pre-commit run --all-files --color always"
test = "coverage run -m pytest -m 'not network'"
test-network = "coverage run -m pytest -m network"
# this will run after the `test` command
post_test = { composite = ["coverage report", "coverage xml"] }

0 comments on commit dc225bd

Please sign in to comment.