11[build-system ]
2- requires = [" setuptools>=61.0 " , " wheel " ]
3- build-backend = " setuptools.build_meta "
2+ requires = [" hatchling " , " hatch-vcs " ]
3+ build-backend = " hatchling.build "
44
55[project ]
66name = " pytribeam"
7- version = " 0.0.2"
7+ # version = "0.0.2"
8+ dynamic = [" version" ] # Removed static version, now determined by VCS
89description = " automated data collection on TriBeam tools"
9- readme = " README.md"
1010requires-python = " ==3.8.12"
11+ readme = " README.md"
1112authors = [
1213 { name =" Andrew Polonsky" , email =" apolon@sandia.gov" },
1314 { name =" Chad Hovey" , email =" chovey@sandia.gov" },
1415 { name =" James Lamb" , email =" jdlamb@sandia.gov" },
1516]
1617
1718dependencies = [
18- # "black", # now handled by ruff
19- " pytest==8.3.3" ,
20- " pytest-cov==5.0.0" ,
2119 " schema" ,
2220]
2321
@@ -31,23 +29,20 @@ dev = [
3129 # "nbsphinx",
3230 # "pdbp",
3331 # "pycodestyle", # now handled by ruff
34- # "pytest==8.3.3", # already in dependencies
35- # "pytest-cov==5.0.0", # already in dependencies
36- " h5py" ,
37- " numpy" ,
32+ # "h5py",
33+ # "numpy",
3834 " pdoc" ,
39- " ruff" ,
35+ " pytest==8.3.3" ,
36+ " pytest-cov==5.0.0" ,
4037]
4138
42- [docstr-coverage ]
43- ignore = [
44- " tests/" ,
45- " src/pytribeam/GUI/" ,
46- ]
47-
48- [project .urls ]
49- documentation = " https://sandialabs.github.io/pytribeam/docs/userguide/book/index.html"
50- repository = " https://github.com/sandialabs/pytribeam"
39+ # pdoc configuration
40+ # we only build pdoc on the source code, so we can ignore the tests and GUI for doc coverage
41+ # [docstr-coverage]
42+ # ignore = [
43+ # "tests/",
44+ # "src/pytribeam/GUI/",
45+ # ]
5146
5247# CLI Entry Points
5348# https://setuptools.pypa.io/en/latest/userguide/entry_point.html
@@ -57,13 +52,25 @@ pytribeam_info ="pytribeam.command_line:module_info"
5752pytribeam_gui =" pytribeam.command_line:launch_gui"
5853pytribeam_exp =" pytribeam.command_line:run_experiment"
5954
60- [tool .setuptools .packages .find ]
61- where = [" src" ]
55+ [project .urls ]
56+ documentation = " https://sandialabs.github.io/pytribeam/docs/userguide/book/index.html"
57+ repository = " https://github.com/sandialabs/pytribeam"
58+
59+ [tool .hatch .version ]
60+ source = " vcs"
61+
62+ [tool .hatch .version .raw-options ]
63+ local_scheme = " no-local-version" # Ensures clean versions like 0.0.9 instead of 0.0.9+g1234567
64+
65+ [tool .hatch .build .targets .wheel ]
66+ packages = [" src/pytribeam" ]
6267
63- [tool .ruff ]
64- line-length = 88
65- target-version = [" py38" ]
68+ # [tool.ruff]
69+ # line-length = 88
70+ # target-version = ["py38"]
6671
6772[tool .pytest .ini_options ]
73+ python_files = [" test_*.py" , " *_test.py" ]
6874testpaths = [" tests" ]
75+ pythonpath = [" src" ]
6976addopts = " --cov=src/pytribeam --cov-report=xml --cov-report=html"
0 commit comments