diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d9efbab..b612167 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -131,7 +131,7 @@ jobs: pipenv install --dev - name: Create the distribution - run: pipenv run python setup.py build sdist + run: pipenv run python -m build - name: Publish the distribution uses: pypa/gh-action-pypi-publish@release/v1 @@ -147,4 +147,3 @@ jobs: with: tag_name: ${{ github.ref }} release_name: Release ${{ github.ref }} - diff --git a/Makefile b/Makefile index 8a49761..bcacd8b 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ VERSION := $(shell ./setup.py --version) .PHONY: build build: - python setup.py build sdist + python -m build .PHONY: clean clean: @@ -18,4 +18,3 @@ release: build $(eval RELEASE_TAG := v$(VERSION)) git tag -sm "Version $(VERSION)" $(RELEASE_TAG) git push --tags - diff --git a/Pipfile b/Pipfile index b72340d..169ec7b 100644 --- a/Pipfile +++ b/Pipfile @@ -14,6 +14,7 @@ graphviz = "*" coverage = "*" ipython = "*" setuptools = "*" +build = "*" [scripts] tests = 'sh -c "PYTHONPATH=$(pwd)/lib python -m unittest -v tests"'