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.1" ,
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 ]
@@ -29,27 +33,28 @@ Tracker = "https://github.com/pytask-dev/pytask-latex/issues"
29
33
[project .optional-dependencies ]
30
34
test = [" pytest" , " pytest-cov" , " pytest-xdist" ]
31
35
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" ]
40
-
41
36
[project .entry-points .pytask ]
42
37
pytask_latex = " pytask_latex.plugin"
43
38
44
- [tool .setuptools .package-dir ]
45
- "" = " src"
39
+ [tool .rye ]
40
+ managed = true
41
+
42
+ [tool .hatch .build .hooks .vcs ]
43
+ version-file = " src/pytask_latex/_version.py"
44
+
45
+ [tool .hatch .build .targets .sdist ]
46
+ exclude = [" tests" ]
47
+ only-packages = true
48
+
49
+ [tool .hatch .build .targets .wheel ]
50
+ exclude = [" tests" ]
51
+ only-packages = true
46
52
47
- [tool .setuptools .packages .find ]
48
- where = [ " src" ]
49
- namespaces = false
53
+ [tool .hatch .version ]
54
+ source = " vcs"
50
55
51
- [tool .setuptools_scm ]
52
- write_to = " src/pytask_latex/_version.py "
56
+ [tool .hatch . metadata ]
57
+ allow-direct-references = true
53
58
54
59
[tool .mypy ]
55
60
files = [" src" , " tests" ]
@@ -73,9 +78,9 @@ unsafe-fixes = true
73
78
74
79
[tool .ruff .lint ]
75
80
extend-ignore = [
76
- " ANN401" , # Allow typing.Any.
77
- " COM812" , # Comply with ruff-format
78
- " ISC001" , # Comply with ruff-format
81
+ " ANN401" , # Allow typing.Any.
82
+ " COM812" , # Comply with ruff-format
83
+ " ISC001" , # Comply with ruff-format
79
84
]
80
85
select = [" ALL" ]
81
86
@@ -89,7 +94,6 @@ force-single-line = true
89
94
convention = " numpy"
90
95
91
96
[tool .pytest .ini_options ]
92
- # Do not add src since it messes with the loading of pytask-parallel as a plugin.
93
97
testpaths = [" src" , " tests" ]
94
98
markers = [
95
99
" wip: Tests that are work-in-progress." ,
0 commit comments