1
1
[build-system ]
2
- requires = [" setuptools>=45 " , " wheel " , " setuptools_scm[toml]>=6.0 " ]
3
- build-backend = " setuptools.build_meta "
2
+ requires = [" hatchling " , " hatch-vcs " ]
3
+ build-backend = " hatchling.build "
4
4
5
5
[project ]
6
6
name = " pytask_latex"
@@ -10,13 +10,17 @@ classifiers = [
10
10
" License :: OSI Approved :: MIT License" ,
11
11
" Operating System :: OS Independent" ,
12
12
" Programming Language :: Python :: 3" ,
13
- " Programming Language :: Python :: 3 :: Only"
13
+ " Programming Language :: Python :: 3 :: Only" ,
14
14
]
15
15
requires-python = " >=3.8"
16
- dependencies = [ " latex-dependency-scanner>=0.1.1" , " pluggy>=1.0.0" , " pytask>=0.4.0" ]
17
- dynamic = [ " version" ]
18
- authors = [ {
name =
" Tobias Raabe" ,
email =
" [email protected] " } ]
19
- readme = { file = " README.md" , content-type = " text/markdown" }
16
+ dependencies = [
17
+ " latex-dependency-scanner>=0.1.3" ,
18
+ " pluggy>=1.0.0" ,
19
+ " pytask>=0.4.0" ,
20
+ ]
21
+ dynamic = [" version" ]
22
+ authors = [{
name =
" Tobias Raabe" ,
email =
" [email protected] " }]
23
+ readme = { file = " README.md" , content-type = " text/markdown" }
20
24
license = { text = " MIT" }
21
25
22
26
[project .urls ]
@@ -28,28 +32,32 @@ Tracker = "https://github.com/pytask-dev/pytask-latex/issues"
28
32
29
33
[project .optional-dependencies ]
30
34
test = [" pytest" , " pytest-cov" , " pytest-xdist" ]
31
-
32
- [tool .setuptools ]
33
- include-package-data = true
34
- zip-safe = false
35
- platforms = [ " any" ,]
36
- license-files = [ " LICENSE" ]
37
-
38
- [tool .check-manifest ]
39
- ignore = [" src/pytask_latex/_version.py" ]
35
+ typing = [
36
+ " mypy>=1.10.0" ,
37
+ ]
40
38
41
39
[project .entry-points .pytask ]
42
40
pytask_latex = " pytask_latex.plugin"
43
41
44
- [tool .setuptools .package-dir ]
45
- "" = " src"
42
+ [tool .rye ]
43
+ managed = true
44
+
45
+ [tool .hatch .build .hooks .vcs ]
46
+ version-file = " src/pytask_latex/_version.py"
47
+
48
+ [tool .hatch .build .targets .sdist ]
49
+ exclude = [" tests" ]
50
+ only-packages = true
51
+
52
+ [tool .hatch .build .targets .wheel ]
53
+ exclude = [" tests" ]
54
+ only-packages = true
46
55
47
- [tool .setuptools .packages .find ]
48
- where = [ " src" ]
49
- namespaces = false
56
+ [tool .hatch .version ]
57
+ source = " vcs"
50
58
51
- [tool .setuptools_scm ]
52
- write_to = " src/pytask_latex/_version.py "
59
+ [tool .hatch . metadata ]
60
+ allow-direct-references = true
53
61
54
62
[tool .mypy ]
55
63
files = [" src" , " tests" ]
@@ -73,9 +81,9 @@ unsafe-fixes = true
73
81
74
82
[tool .ruff .lint ]
75
83
extend-ignore = [
76
- " ANN401" , # Allow typing.Any.
77
- " COM812" , # Comply with ruff-format
78
- " ISC001" , # Comply with ruff-format
84
+ " ANN401" , # Allow typing.Any.
85
+ " COM812" , # Comply with ruff-format
86
+ " ISC001" , # Comply with ruff-format
79
87
]
80
88
select = [" ALL" ]
81
89
@@ -89,7 +97,6 @@ force-single-line = true
89
97
convention = " numpy"
90
98
91
99
[tool .pytest .ini_options ]
92
- # Do not add src since it messes with the loading of pytask-parallel as a plugin.
93
100
testpaths = [" src" , " tests" ]
94
101
markers = [
95
102
" wip: Tests that are work-in-progress." ,
0 commit comments