Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove setup.cfg in favor of pyproject.toml #58

Merged
merged 7 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 59 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,63 @@
[build-system]
requires = [
"setuptools>=42",
"wheel"
"setuptools>61", # start of support for pyproject.toml/PEP 621. https://setuptools.pypa.io/en/stable/history.html#v61-0-0
"setuptools-scm",
]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm] # set version dynamically

[tool.setuptools.packages.find]
exclude = [
"tests*",
"data*",
]
Copy link
Member

@kandersolar kandersolar Dec 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[tool.setuptools.packages.find]
exclude = [
"tests*",
"data*",
]
[tool.setuptools]
include-package-data = false
[tool.setuptools.packages.find]
exclude = [
"twoaxistracking.tests*",
"twoaxistracking.data*",
"docs*",
]

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops, exclude data* as well


[project]
name = "twoaxistracking"
authors = [
{name = "Adam R. Jensen"},
{name = "Kevin S. Anderson"},
{email = "adam-r-j@hotmail.com"},
]
description = "twoaxistracking is a python package for simulating two-axis tracking solar collectors, particularly self-shading."
readme = "README.md"
requires-python = ">=3.9"
keywords = ["solar energy", "photovoltaics", "solar collector", "shading"]
license = {file = "LICENSE"}
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering",
"Intended Audience :: Science/Research",
]
dependencies = [
"numpy",
"matplotlib",
"shapely",
"pandas",
]
dynamic = ["version"]

[project.optional-dependencies]
test = ["pytest", "pytest-cov", "packaging"]
doc = [
"sphinx==8.1.1",
"myst-nb==1.1.2",
"sphinx-book-theme==1.1.3",
"pvlib==0.11.1",
"pandas==2.2.3",
]

[project.urls]
Documentation = "https://twoaxistracking.readthedocs.io"
Issues = "https://github.com/pvlib/twoaxistracking/issues"
Repository = "https://github.com/pvlib/twoaxistracking.git"

[tool.pytest.ini_options]
addopts = "--cov=twoaxistracking --cov-fail-under=100 --cov-report=term-missing"

[tool.coverage.run]
# Do not count the test files themselves toward coverage
omit = ["twoaxistracking/tests/*"]
46 changes: 0 additions & 46 deletions setup.cfg

This file was deleted.

Loading