-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
74 lines (63 loc) · 1.68 KB
/
Copy pathpyproject.toml
File metadata and controls
74 lines (63 loc) · 1.68 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
[project]
name = "exa-ma-tools"
version = "1.0.0"
description = "Tools for Exa-MA project: harvesting publications, deliverables, and software metadata"
readme = "README.md"
requires-python = ">=3.10"
license = { text = "MIT" }
authors = [
{ name = "Exa-MA Team", email = "christophe.prudhomme@cemosis.fr" }
]
keywords = ["exama", "numpex", "hal", "github", "publications", "deliverables", "software"]
dependencies = [
"pyyaml>=6.0",
"pydantic>=2.0",
"pandas>=2.0",
"openpyxl>=3.1",
"jinja2>=3.0",
]
[project.optional-dependencies]
dev = [
"ruff>=0.1.0",
"mypy>=1.0.0",
"pytest>=7.0",
"pytest-cov>=4.0",
]
[project.scripts]
# Unified CLI (preferred)
exa-ma-harvest = "harvest.cli:main"
# Individual commands (backward compatible)
exa-ma-harvest-hal = "harvest.hal:main"
exa-ma-harvest-releases = "harvest.releases:main"
exa-ma-harvest-news = "harvest.news:main"
exa-ma-harvest-training = "harvest.training:main"
exa-ma-harvest-highlights = "harvest.highlights:main"
exa-ma-harvest-software = "harvest.software.cli:main"
exa-ma-harvest-all = "harvest.cli:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["harvest"]
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "I", "W"]
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_functions = ["test_*"]
addopts = "-v --tb=short"
[tool.coverage.run]
source = ["harvest"]
omit = ["tests/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.:",
]