Skip to content

Commit 08874af

Browse files
authored
Merge pull request #7957 from tekktrik/dev/stubs-building
Updated how stubs are built
2 parents 7e734df + 57cd451 commit 08874af

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ jobs:
209209
TWINE_USERNAME: ${{ secrets.pypi_username }}
210210
TWINE_PASSWORD: ${{ secrets.pypi_password }}
211211
run: |
212-
# setup.py sdist was run by 'make stubs'
212+
# python -m build was run by 'make stubs'
213213
[ -z "$TWINE_USERNAME" ] || echo "Uploading dev release to PyPi"
214214
[ -z "$TWINE_USERNAME" ] || twine upload circuitpython-stubs/dist/*
215215

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ stubs:
266266
@cp setup.py-stubs circuitpython-stubs/setup.py
267267
@cp README.rst-stubs circuitpython-stubs/README.rst
268268
@cp MANIFEST.in-stubs circuitpython-stubs/MANIFEST.in
269-
@(cd circuitpython-stubs && $(PYTHON) setup.py -q sdist)
269+
@$(PYTHON) -m build circuitpython-stubs
270270

271271
.PHONY: check-stubs
272272
check-stubs: stubs

requirements-doc.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ mypy
33
black
44
isort
55
twine
6+
build
67
wheel
78
astroid
89
setuptools>=45

tools/test-stubs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
rm -rf test-stubs
33
python3 -m venv test-stubs
44
. test-stubs/bin/activate
5-
pip install mypy isort black adafruit-circuitpython-typing wheel
5+
pip install mypy isort black adafruit-circuitpython-typing wheel build
66
rm -rf circuitpython-stubs .mypy_cache
77
make stubs
88
pip install --force-reinstall circuitpython-stubs/dist/circuitpython-stubs-*.tar.gz

0 commit comments

Comments
 (0)