Skip to content

Commit 3dc804b

Browse files
authored
Merge pull request #115 from 10sr/fixbuild
Use build package to build package
2 parents 905ce45 + 13861ef commit 3dc804b

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

Makefile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
.PHONY: check test test-runflake8 test-pytest codecov \
2+
lint flake8 mypy \
3+
isortify blacken \
4+
build publish
5+
16
check: test lint
27

38
test: test-runflake8 test-pytest
@@ -33,12 +38,10 @@ mypy:
3338

3439

3540

36-
sdist:
37-
python setup.py sdist
38-
39-
wheel:
40-
python setup.py bdist_wheel
41+
build:
42+
python -m build
4143

44+
# https://test.pypi.org/project/flake8-no-implicit-concat
4245
publish_repository ?= testpypi # Set to pypi to publish as production
43-
publish: sdist wheel
46+
publish: build
4447
twine upload --skip-existing --verbose --repository $(publish_repository) dist/*

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ lint =
7676
mypy
7777
publish =
7878
twine
79-
wheel
79+
build
8080
setuptools
8181

8282

0 commit comments

Comments
 (0)