Skip to content

Commit daab563

Browse files
committed
replace setup.py with pyproject.toml. remove license from pyproject.toml Fixes #538
1 parent 988fb4f commit daab563

3 files changed

Lines changed: 95 additions & 171 deletions

File tree

pyproject.toml

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0", "setuptools-scm>=8.0"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "bifacial_radiance"
7+
dynamic = ["version"]
8+
description = "Tools to interface with Radiance for the PV researcher"
9+
readme = "README.md"
10+
requires-python = ">=3.8"
11+
authors = [
12+
{name = "Chris Deline", email = "chris.deline@nrel.gov"},
13+
{name = "Silvana Ovaitt", email = "silvana.ovaitt@nrel.gov"}
14+
]
15+
keywords = ["bifacial", "radiance", "photovoltaics", "pv", "ray tracing"]
16+
classifiers = [
17+
"Development Status :: 4 - Beta",
18+
"Intended Audience :: Science/Research",
19+
"License :: OSI Approved :: BSD-3-Clause",
20+
"Programming Language :: Python :: 3",
21+
"Programming Language :: Python :: 3.8",
22+
"Programming Language :: Python :: 3.9",
23+
"Programming Language :: Python :: 3.10",
24+
"Programming Language :: Python :: 3.11",
25+
"Programming Language :: Python :: 3.12",
26+
"Programming Language :: Python :: 3.13",
27+
]
28+
dependencies = [
29+
"configparser",
30+
"deprecated",
31+
"pandas",
32+
"pvlib >= 0.8.0",
33+
"pvmismatch",
34+
"pyradiance",
35+
"requests",
36+
"scipy > 1.6.0",
37+
"tqdm",
38+
]
39+
40+
[project.optional-dependencies]
41+
test = [
42+
"pytest",
43+
"pytest-cov",
44+
"pySMARTS",
45+
]
46+
doc = [
47+
"ipython",
48+
"sphinx >= 1.8.0",
49+
"sphinx-autoapi >= 1.1.0",
50+
"pydata-sphinx-theme >= 0.14.4",
51+
"nbsphinx >= 0.8.8",
52+
"sphinx-gallery >= 0.8.1",
53+
]
54+
all = [
55+
"bifacial_radiance[test,doc]",
56+
"jupyter",
57+
]
58+
59+
[project.urls]
60+
Homepage = "https://github.com/NREL/bifacial_radiance"
61+
Documentation = "https://bifacial-radiance.readthedocs.io"
62+
Repository = "https://github.com/NREL/bifacial_radiance"
63+
Issues = "https://github.com/NREL/bifacial_radiance/issues"
64+
65+
[tool.setuptools]
66+
packages = ["bifacial_radiance"]
67+
include-package-data = true
68+
69+
[tool.setuptools.package-data]
70+
bifacial_radiance = [
71+
"data/ground.rad",
72+
"data/gencumulativesky.exe",
73+
"data/module.json",
74+
"data/default.ini",
75+
"images/*",
76+
]
77+
78+
[tool.setuptools_scm]
79+
fallback_version = "0.5.0"
80+
81+
[tool.pytest.ini_options]
82+
addopts = "--verbose"
83+
84+
[tool.coverage.run]
85+
source = ["bifacial_radiance"]
86+
87+
[tool.coverage.report]
88+
exclude_lines = [
89+
"pragma: no cover",
90+
"def __repr__",
91+
"raise AssertionError",
92+
"raise NotImplementedError",
93+
"if __name__ == .__main__.:",
94+
]

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ test = pytest
1515

1616
# OPTIONAL AFTER THIS:
1717
[metadata]
18-
description-file = README.md
18+
description_file = README.md
1919

2020
[bdist_wheel]
2121
universal = 1

setup.py

Lines changed: 0 additions & 170 deletions
This file was deleted.

0 commit comments

Comments
 (0)