-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathpyproject.toml
72 lines (59 loc) · 1.92 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "sunposition"
dynamic = ["version"]
description = "Compute the sun's observed position based on Reda & Adreas's 2004 paper \"Solar position algorithm for solar radiation applications\""
readme = "README.md"
license = "MIT"
requires-python = ">=3.8"
authors = [
{ name = "Samuel Powell", email = "[email protected]" },
]
keywords = [
"astronomy",
"solar",
"sun",
]
classifiers = [
"Environment :: Console",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"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 :: 3.13",
"Topic :: Scientific/Engineering :: Astronomy",
]
dependencies = ["numpy>=1.10"]
[project.optional-dependencies]
jit = ["numba>=0.22", "scipy"]
[project.scripts]
sunposition = "sunposition:main"
[project.urls]
Homepage = "https://github.com/s-bear/sun-position"
[tool.hatch.version]
path = "sunposition.py"
[tool.hatch.build.targets.sdist]
ignore-vcs = true
include = ["/sunposition.py"]
[tool.hatch.build.targets.wheel]
pure-python = true
[publish.index.repos.main]
url = "https://upload.pypi.org/legacy/"
[publish.index.repos.test]
url = "https://test.pypi.org/legacy/"
[tool.pytest.ini_options]
addopts = ["--import-mode=importlib"]
# Note that the hatch-test.matrix can't select features directly
# instead we add an arbitrary variable (here, select) and use the
# environment overrides to set the feature:
[tool.hatch.envs.hatch-test.overrides]
matrix.select.features = [{value="jit", if = ["jit"]}]
[[tool.hatch.envs.hatch-test.matrix]]
python = ["3.13","3.12","3.11","3.10","3.9","3.8"]
select = ["no-jit","jit"]