-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
111 lines (100 loc) · 2.47 KB
/
pyproject.toml
File metadata and controls
111 lines (100 loc) · 2.47 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
[project]
name = "ISPyPSA"
version = "0.1.3beta1"
description = "An open-source capacity expansion model based on the methodology and datasets used by the Australian Energy Market Operator (AEMO) in their Integrated System Plan (ISP)."
authors = [
{ name = "prakaa", email = "abiprakash007@gmail.com" },
{ name = "nick-gorman", email = "n.gorman305@gmail.com" },
{ name = "dylanjmcconnell", email = "dylan.mcconnell@unsw.edu.au" }
]
dependencies = [
"pandas>=2.2.2,<3.0.0",
"pypsa>=1.0.0,<2.0.0",
"pyyaml>=6.0.2",
"doit>=0.36.0",
"xmltodict>=0.13.0",
"thefuzz>=0.22.1",
"pyarrow>=18.0.0",
"isp-trace-parser>=2.0.3",
"isp-workbook-parser>=2.6.0",
"requests>=2.32.3",
"tqdm>=4.67.1",
"pygal>=3.0.5",
"plotly>=6.5.0",
"mkdocs>=1.6.1",
"mkdocs-material>=9.6.18",
"numpy>=2.0.0",
"shapely>=2.1.0",
]
readme = "README.md"
requires-python = ">=3.11,<3.15"
[project.scripts]
ispypsa = "ispypsa.cli.cli:main"
[project.optional-dependencies]
solvers = [
"linopy>=0.4.4",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.uv]
managed = true
dev-dependencies = [
"pytest>=8.3.2",
"pytest-cov>=5.0.0",
"pytest-mock>=3.14.0",
"requests-mock>=1.12.1",
"ipython>=8.0",
"ipdb>=0.13.13",
"pre-commit>=3.8.0",
"sphinx>=6.0",
"myst-parser>=3.0.1",
"myst-nb>=1.1.1",
"sphinx-copybutton>=0.5.2",
"sphinx-book-theme>=1.1.3",
"sphinx-togglebutton>=0.3.2",
"sphinx-autobuild>=2024.9.3",
"mkdocs-material>=9.6.9",
"mkdocs>=1.6.1",
"mkdocstrings[python]>=0.29.0",
]
[tool.hatch.metadata]
allow-direct-references = true
[tool.pytest.ini_options]
# path to tests for pytest
testpaths = ["src", "tests"]
# addopts = add options
# --cov points pytest-cov to the src/ dir
# --cov-branch runs branch coverage
addopts = "-ra --cov=src/ --cov-branch --cov-report xml:tests/coverage.xml --cov-report html:tests/htmlcov"
[tool.coverage.run]
omit = [
"src/ispypsa/cli/*",
]
[tool.ruff.lint]
select = [
# isort
"I",
]
[tool.hatch.build]
include = [
"src/ispypsa/**/*.py",
"src/ispypsa/data_fetch/manifests/**/*.txt",
"src/ispypsa/templater/manually_extracted_template_tables/**/*.csv",
]
[tool.hatch.build.targets.wheel]
packages = ["src/ispypsa"]
exclude = [
"tests/",
"docs/",
"**/__pycache__",
"*.pyc",
]
[tool.hatch.build.targets.sdist]
exclude = [
"tests/",
"docs/",
".github/",
"**/__pycache__",
"*.pyc",
]