Skip to content

Commit 0d0f8bf

Browse files
committed
build and publish wheel
1 parent 16e5377 commit 0d0f8bf

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

.github/workflows/ci.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ jobs:
131131
pipenv install --dev
132132
133133
- name: Create the distribution
134-
run: pipenv run python setup.py build sdist
134+
run: pipenv run python -m build
135135

136136
- name: Publish the distribution
137137
uses: pypa/gh-action-pypi-publish@release/v1
@@ -147,4 +147,3 @@ jobs:
147147
with:
148148
tag_name: ${{ github.ref }}
149149
release_name: Release ${{ github.ref }}
150-

Makefile

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ VERSION := $(shell ./setup.py --version)
22

33
.PHONY: build
44
build:
5-
python setup.py build sdist
5+
python -m build
66

77
.PHONY: clean
88
clean:
@@ -18,4 +18,3 @@ release: build
1818
$(eval RELEASE_TAG := v$(VERSION))
1919
git tag -sm "Version $(VERSION)" $(RELEASE_TAG)
2020
git push --tags
21-

Pipfile

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ graphviz = "*"
1414
coverage = "*"
1515
ipython = "*"
1616
setuptools = "*"
17+
build = "*"
1718

1819
[scripts]
1920
tests = 'sh -c "PYTHONPATH=$(pwd)/lib python -m unittest -v tests"'

0 commit comments

Comments
 (0)