-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
79 lines (67 loc) · 1.89 KB
/
pyproject.toml
File metadata and controls
79 lines (67 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "rain"
dynamic = ["version"]
authors = [
{ name = "Ankur Gupta", email = "[email protected]" },
]
description = "A live example to illustrate python packaging, testing, building, & deploying"
readme = "README.md"
requires-python = ">=3.9"
license = { file = "LICENSE" }
keywords = ["template", "packaging", "testing", "building", "deploying"]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dependencies = [
"click>=8.0.3"
]
[project.urls]
Homepage = "https://github.com/ankur-gupta/rain"
Repository = "https://github.com/ankur-gupta/rain.git"
[project.scripts]
rain_maker = "rain.cli.rain_maker:make_it_rain"
[tool.hatch.version]
path = "src/rain/version.py"
[tool.hatch.envs.test]
dependencies = [
"coverage",
"codecov",
"pytest",
"pytest-cov",
"pytest-mock",
]
# Run using `hatch run test:with-coverage`, `hatch run test:no-coverage`, `hatch run test:not-slow`, ...
[tool.hatch.envs.test.scripts]
with-coverage = "pytest --cov-config=pyproject.toml --cov=rain --cov=tests"
no-coverage = "with-coverage --no-cov"
not-slow = "with-coverage -m \"not slow\""
not-random = "with-coverage -m \"not random\""
coverage-json = "coverage json"
coverage-xml = "coverage xml"
coverage-html = "coverage html"
[[tool.hatch.envs.test.matrix]]
python = ["3.9", "3.11"]
[tool.coverage.run]
omit = [
"src/rain/resources/",
"tests/*.py"
]
# From https://docs.pytest.org/en/latest/how-to/mark.html and PEP 621
[tool.pytest.ini_options]
markers = [
"slow: marks tests as slow", # deselect with `pytest -m "not sleepy" ...`
"random: tests using randomness; may not always pass"
]
[tool.hatch.build.targets.sdist]
include = [
"/src",
"/tests",
]
exclude = [
"/.github",
]