Skip to content

Commit

Permalink
Update build script to build python 3 wheel instead of python 2 and 3…
Browse files Browse the repository at this point in the history
… wheel
  • Loading branch information
workhorsy committed Sep 5, 2022
1 parent f707547 commit 07eab4d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ clean-dist-files:
rm -f -rf py-cpuinfo-$(VERSION)
rm -f -rf py-cpuinfo-$(VERSION).tar.gz
rm -f -rf py-cpuinfo-$(VERSION).zip
rm -f -rf py_cpuinfo-$(VERSION)-py2.py3-none-any.whl
rm -f -rf py_cpuinfo-$(VERSION)-py3-none-any.whl

.PHONY: clean
clean: clean-temp-files clean-dist-files
Expand All @@ -41,7 +41,7 @@ build: clean _actual_build move_built
move_built:
mv dist/py-cpuinfo-$(VERSION).tar.gz py-cpuinfo-$(VERSION).tar.gz
mv dist/py-cpuinfo-$(VERSION).zip py-cpuinfo-$(VERSION).zip
mv dist/py_cpuinfo-$(VERSION)-py2.py3-none-any.whl py_cpuinfo-$(VERSION)-py2.py3-none-any.whl
mv dist/py_cpuinfo-$(VERSION)-py3-none-any.whl py_cpuinfo-$(VERSION)-py3-none-any.whl

.PHONY: release
release:
Expand All @@ -56,7 +56,7 @@ release:
.PHONY: upload
upload: clean _actual_build
twine upload dist/py-cpuinfo-$(VERSION).tar.gz
twine upload dist/py_cpuinfo-$(VERSION)-py2.py3-none-any.whl
twine upload dist/py_cpuinfo-$(VERSION)-py3-none-any.whl

install: remove
tar xzf py-cpuinfo-$(VERSION).tar.gz
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[build-system]
requires = [
"setuptools == 44.1.1",
"setuptools_scm == 2.1.0",
"setuptools",
"wheel",
]
build-backend = "setuptools.build_meta"
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[bdist_wheel]
universal = 1
universal = 0

0 comments on commit 07eab4d

Please sign in to comment.