Skip to content

Commit 2c4fbe3

Browse files
committed
Use pep517/518 build system for modern build isolation
- Remove pvlib/_version.py (versioneer) - Use importlib.metadata to retrieve version from PKG-INFO - Add importlib-metadata backport for python < 3.8 - Create pyproject.toml with setuptools build backend - Update workflow to use pypa/build module to build sdist & wheel
1 parent f2d14ce commit 2c4fbe3

File tree

10 files changed

+42
-2306
lines changed

10 files changed

+42
-2306
lines changed

.coveragerc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[run]
2-
omit = pvlib/_version.py
2+
omit = pvlib/version.py

.gitattributes

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
pvlib/version.py export-subst
2-
31
# reduce the number of merge conflicts
42
docs/sphinx/source/whatsnew/* merge=union

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ jobs:
2525
- name: Install build tools
2626
run: |
2727
python -m pip install --upgrade pip
28-
python -m pip install --upgrade setuptools wheel
28+
python -m pip install build
2929
3030
- name: Build packages
31-
run: python setup.py sdist bdist_wheel
31+
run: python -m build
3232

3333
# only publish distribution to PyPI for tagged commits
3434
- name: Publish distribution to PyPI

docs/sphinx/source/whatsnew/v0.9.2.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Enhancements
1111
* Add :py:func:`pvlib.tracking.calc_surface_orientation` for calculating
1212
single-axis tracker ``surface_tilt`` and ``surface_azimuth`` from
1313
rotation angles. (:issue:`1471`, :pull:`1480`)
14+
* Add support for `PEP517 <https://peps.python.org/pep-0517/>`_ & `PEP518 <https://peps.python.org/pep-0518/>`_
15+
with setuptools build backend.
1416

1517
Bug fixes
1618
~~~~~~~~~

0 commit comments

Comments
 (0)