Skip to content

Commit 905ff62

Browse files
authored
Add 'make package' target for building source and binary distributions (#982)
1 parent afe9293 commit 905ff62

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/publish-to-pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
4848
- name: Build source and wheel distributions
4949
run: |
50-
python setup.py sdist bdist_wheel
50+
make package
5151
echo ""
5252
echo "Generated files:"
5353
ls -lh dist/

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ help:
1515
@echo "Commands:"
1616
@echo ""
1717
@echo " install install in editable mode"
18+
@echo " package build source and wheel distributions"
1819
@echo " test run the test suite (including doctests) and report coverage"
1920
@echo " format run black, blackdoc, docformatter and isort to automatically format the code"
2021
@echo " check run code style and quality checks (black, blackdoc, docformatter, flake8 and isort)"
@@ -26,6 +27,9 @@ help:
2627
install:
2728
pip install --no-deps -e .
2829

30+
package:
31+
python setup.py sdist bdist_wheel
32+
2933
test:
3034
# Run a tmp folder to make sure the tests are run on the installed version
3135
mkdir -p $(TESTDIR)

0 commit comments

Comments
 (0)