Skip to content

Commit

Permalink
Use pep517/518 build system for modern build isolation
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
jules-ch committed Jul 20, 2022
1 parent f2d14ce commit 2c4fbe3
Show file tree
Hide file tree
Showing 10 changed files with 42 additions and 2,306 deletions.
2 changes: 1 addition & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[run]
omit = pvlib/_version.py
omit = pvlib/version.py
2 changes: 0 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
pvlib/version.py export-subst

# reduce the number of merge conflicts
docs/sphinx/source/whatsnew/* merge=union
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
- name: Install build tools
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools wheel
python -m pip install build
- name: Build packages
run: python setup.py sdist bdist_wheel
run: python -m build

# only publish distribution to PyPI for tagged commits
- name: Publish distribution to PyPI
Expand Down
2 changes: 2 additions & 0 deletions docs/sphinx/source/whatsnew/v0.9.2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Enhancements
* Add :py:func:`pvlib.tracking.calc_surface_orientation` for calculating
single-axis tracker ``surface_tilt`` and ``surface_azimuth`` from
rotation angles. (:issue:`1471`, :pull:`1480`)
* Add support for `PEP517 <https://peps.python.org/pep-0517/>`_ & `PEP518 <https://peps.python.org/pep-0518/>`_
with setuptools build backend.

Bug fixes
~~~~~~~~~
Expand Down
Loading

0 comments on commit 2c4fbe3

Please sign in to comment.