Skip to content

Commit 867f36a

Browse files
committedJun 22, 2023
Fix build from sdist
PR backstage#24 deduplicated the requirements, but this makes the sdist on PyPi fail to build, because requirements.txt is not included. This fix includes requirements.txt using MANIFEST.in and changes the publication workflow to use build instead of calling setup.py directly. build always builds the wheel from the sdist, so this error is prevented in the future.
1 parent aa04c7c commit 867f36a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
 

‎.github/workflows/pypi-publish.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ jobs:
2626
- name: Build Python distribution
2727
working-directory: .
2828
run: |
29-
pip install wheel
29+
pip install build
3030
rm -rf dist
31-
python setup.py bdist_wheel sdist --formats gztar
31+
pyproject-build
3232
- name: Publish a Python distribution to PyPI
3333
uses: pypa/gh-action-pypi-publish@master
3434
with:

‎MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include requirements.txt

0 commit comments

Comments
 (0)
Please sign in to comment.