-
Notifications
You must be signed in to change notification settings - Fork 42
/
pyproject.toml
68 lines (59 loc) · 1.88 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
[tool.pytest.ini_options]
minversion = "6.0"
# opts:
# `--dist=loadscope ` - run tests within classes in series
# `--strict-markers` - Raise error on unexpected pytest markers being used (add new markers to `markers` config)
# `-nauto` - parallelise over as many threads as possible (uses pytest-xdist). If debugging (`--pdb`), this will default to one thread.
# `--cov-report=xml --cov-config=pyproject.toml` - coverage report config for when running in tests (uses pytest-cov; call `--cov` in CLI to switch coverage on; `--cov-config` include to avoid bug)
addopts = "-rav --dist=loadscope --strict-markers -nauto --cov-report=xml --cov-config=pyproject.toml"
testpaths = ["tests"]
[tool.black]
line-length = 88
target-version = ['py37', 'py38']
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.github
| \.mypy_cache
| \.pytest_cache
| \.vscode
| _build
| build
| dist
| .*\.egg-info
# directories without python source files
| docs
)/
'''
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["src"]
include = ["gsee*"]
[tool.setuptools]
license-files = ["LICENSE"]
[project]
name = "gsee"
authors = [
{ name = "Stefan Pfenninger", email = "[email protected]" },
]
description="GSEE: Global Solar Energy Estimator"
readme = "README.md"
license = { text = "MIT" }
classifiers = [
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
]
dynamic = ["version", "dependencies"]
[tool.setuptools.dynamic]
dependencies = { file = ["requirements.txt"] }
version = { attr = "gsee._version.__version__" }
[project.urls]
repository = "https://github.com/renewables-ninja/gsee"
changelog = "https://github.com/renewables-ninja/gsee/blob/master/CHANGELOG.md"