From 6f8670a2841e6074cbba8bc0142db3683f3482ef Mon Sep 17 00:00:00 2001 From: Tekktrik Date: Tue, 9 May 2023 22:01:24 -0400 Subject: [PATCH] Updated how stubs are built --- .github/workflows/build.yml | 2 +- Makefile | 2 +- requirements-doc.txt | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1b504d34c7..730f03a15d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -209,7 +209,7 @@ jobs: TWINE_USERNAME: ${{ secrets.pypi_username }} TWINE_PASSWORD: ${{ secrets.pypi_password }} run: | - # setup.py sdist was run by 'make stubs' + # python -m build was run by 'make stubs' [ -z "$TWINE_USERNAME" ] || echo "Uploading dev release to PyPi" [ -z "$TWINE_USERNAME" ] || twine upload circuitpython-stubs/dist/* diff --git a/Makefile b/Makefile index d611dff49d..05d3618658 100644 --- a/Makefile +++ b/Makefile @@ -266,7 +266,7 @@ stubs: @cp setup.py-stubs circuitpython-stubs/setup.py @cp README.rst-stubs circuitpython-stubs/README.rst @cp MANIFEST.in-stubs circuitpython-stubs/MANIFEST.in - @(cd circuitpython-stubs && $(PYTHON) setup.py -q sdist) + @$(PYTHON) -m build circuitpython-stubs .PHONY: check-stubs check-stubs: stubs diff --git a/requirements-doc.txt b/requirements-doc.txt index 0489dc0b9f..15df3b1378 100644 --- a/requirements-doc.txt +++ b/requirements-doc.txt @@ -3,6 +3,7 @@ mypy black isort twine +build wheel astroid setuptools>=45