-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
148 lines (123 loc) · 3.38 KB
/
pyproject.toml
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]
[project]
authors = [
{name = "Frank Hoffmann", email = "[email protected]"}
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy"
]
dependencies = [
]
description = 'PEP 690 like lazy imports for python'
keywords = []
license = "MIT"
name = "lazy-imports-lite"
readme = "README.md"
requires-python = ">=3.8"
version="0.1.1"
[project.scripts]
lazy-imports-lite = "lazy_imports_lite.__main__:main"
[project.urls]
Documentation = "https://github.com/15r10nk/lazy-imports-lite#readme"
Issues = "https://github.com/15r10nk/lazy-imports-lite/issues"
Source = "https://github.com/15r10nk/lazy-imports-lite"
[tool.black]
target-version = ["py38"]
[tool.commitizen]
changelog_incremental = true
major_version_zero = true
tag_format = "v$major.$minor.$patch$prerelease"
update_changelog_on_bump = true
version_files = [
"src/lazy_imports_lite/__init__.py:version"
]
version_provider = "pep621"
[tool.coverage.paths]
lazy_imports_lite = ["src/lazy_imports_lite", "*/lazy-imports-lite/src/lazy_imports_lite"]
tests = ["tests", "*/lazy-imports-lite/tests"]
[tool.coverage.report]
exclude_lines = ["pragma: no cover", "assert False", "raise NotImplemented", "\\.\\.\\."]
[tool.coverage.run]
branch = true
parallel = true
data_file = "$TOP/.coverage"
source_pkgs = ["lazy_imports_lite", "tests"]
source=["src"]
[tool.hatch.build.targets.wheel.hooks.autorun]
dependencies = ["hatch-autorun"]
code = """
from lazy_imports_lite._loader import setup
setup()
"""
[tool.hatch.envs.default]
scripts.test = "pytest {args:tests}"
dependencies = [
"pytest",
"inline-snapshot",
"astunparse"
]
# all
[tool.hatch.envs.all]
dependencies = [
"coverage[toml]>=6.5",
"coverage-enable-subprocess",
"pytest",
"inline-snapshot",
"astunparse",
"mypy",
]
env-vars.TOP = "{root}"
scripts.test-cov = "coverage run -m pytest {args:tests}"
scripts.test = "pytest {args:tests}"
scripts.test-mypy = "mypy src tests"
[[tool.hatch.envs.all.matrix]]
python = ["3.8", "3.9", "3.10", "3.11", "3.12"]
# coverage
[tool.hatch.envs.all-cov]
template="all"
extra-dependencies = [
"coverage[toml]>=6.5",
"coverage-enable-subprocess",
]
env-vars.TOP = "{root}"
scripts.test = "coverage run -m pytest {args:tests}"
[[tool.hatch.envs.all-cov.matrix]]
python = ["3.8", "3.9", "3.10", "3.11", "3.12"]
[tool.hatch.envs.cov]
dependencies = ["coverage[toml]>=6.5"]
detached = true
env-vars.TOP = "{root}"
env-vars.COVERAGE_PROCESS_START = "{root}/pyproject.toml"
scripts.all = [
"- coverage erase",
"hatch run all-cov:test -- {args}",
"coverage combine",
"coverage html",
"coverage report --fail-under 100 "
]
scripts.one = [
"- coverage erase",
"hatch run +py=3.12 all-cov:test -- {args}",
"coverage combine",
"coverage html",
"coverage report --fail-under 100 "
]
[tool.hatch.envs.docs]
dependencies = [
"mkdocs>=1.4.2",
"mkdocs-material[imaging]>=8.5.10",
"mkdocstrings>=0.19.0"
]
scripts.serve = ["mkdocs serve {args}"]
[tool.hatch.version]
path = "src/lazy_imports_lite/__init__.py"