Skip to content

Commit eee16f8

Browse files
authored
Remove setup.cfg in favor of pyproject.toml (#58)
* Remove setup.cfg in favor of pyproject.toml * Convert [tool.coverage.run]omit to a list * Add [tool.setuptools_scm] * Address reviewer comments * Fix excluding folders * Move data folder to root * include-package-data = false
1 parent 8733a5e commit eee16f8

File tree

4 files changed

+63
-49
lines changed

4 files changed

+63
-49
lines changed

twoaxistracking/data/barstow_1976_irradiance_data_quality_controlled.csv renamed to data/barstow_1976_irradiance_data_quality_controlled.csv

File renamed without changes.

docs/source/notebooks/validation.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@
229229
}
230230
],
231231
"source": [
232-
"filename = '../../../twoaxistracking/data/barstow_1976_irradiance_data_quality_controlled.csv'\n",
232+
"filename = '../../../data/barstow_1976_irradiance_data_quality_controlled.csv'\n",
233233
"df = pd.read_csv(filename, index_col=0, parse_dates=[0])\n",
234234
"\n",
235235
"df.head() # print the first five rows of the dataframe"

pyproject.toml

Lines changed: 62 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,66 @@
11
[build-system]
22
requires = [
3-
"setuptools>=42",
4-
"wheel"
3+
"setuptools>61", # start of support for pyproject.toml/PEP 621. https://setuptools.pypa.io/en/stable/history.html#v61-0-0
4+
"setuptools-scm",
55
]
66
build-backend = "setuptools.build_meta"
7+
8+
[tool.setuptools_scm] # set version dynamically
9+
10+
[tool.setuptools]
11+
include-package-data = false # necessary for exclude to work
12+
13+
[tool.setuptools.packages.find]
14+
exclude = [
15+
"twoaxistracking.tests*",
16+
"docs*",
17+
]
18+
19+
[project]
20+
name = "twoaxistracking"
21+
authors = [
22+
{name = "Adam R. Jensen"},
23+
{name = "Kevin S. Anderson"},
24+
{email = "adam-r-j@hotmail.com"},
25+
]
26+
description = "twoaxistracking is a python package for simulating two-axis tracking solar collectors, particularly self-shading."
27+
readme = "README.md"
28+
requires-python = ">=3.9"
29+
keywords = ["solar energy", "photovoltaics", "solar collector", "shading"]
30+
license = {file = "LICENSE"}
31+
classifiers = [
32+
"Programming Language :: Python :: 3",
33+
"License :: OSI Approved :: BSD License",
34+
"Operating System :: OS Independent",
35+
"Topic :: Scientific/Engineering",
36+
"Intended Audience :: Science/Research",
37+
]
38+
dependencies = [
39+
"numpy",
40+
"matplotlib",
41+
"shapely",
42+
"pandas",
43+
]
44+
dynamic = ["version"]
45+
46+
[project.optional-dependencies]
47+
test = ["pytest", "pytest-cov", "packaging"]
48+
doc = [
49+
"sphinx==8.1.1",
50+
"myst-nb==1.1.2",
51+
"sphinx-book-theme==1.1.3",
52+
"pvlib==0.11.1",
53+
"pandas==2.2.3",
54+
]
55+
56+
[project.urls]
57+
Documentation = "https://twoaxistracking.readthedocs.io"
58+
Issues = "https://github.com/pvlib/twoaxistracking/issues"
59+
Repository = "https://github.com/pvlib/twoaxistracking.git"
60+
61+
[tool.pytest.ini_options]
62+
addopts = "--cov=twoaxistracking --cov-fail-under=100 --cov-report=term-missing"
63+
64+
[tool.coverage.run]
65+
# Do not count the test files themselves toward coverage
66+
omit = ["twoaxistracking/tests/*"]

setup.cfg

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

0 commit comments

Comments
 (0)