Makefile targets for PyPi
This commit is contained in:
parent
db7b4c0e74
commit
1f78c6d9ee
1 changed files with 20 additions and 0 deletions
20
Makefile
20
Makefile
|
|
@ -105,6 +105,26 @@ rpm: tarball
|
|||
test-rpm: tarball
|
||||
$(RPM_WITH_DIRS) $(DIST_DEFINES) --define "testbuild 1" -bb $(SPECFILE)
|
||||
|
||||
pypi:
|
||||
rm -rf dist
|
||||
python setup.py sdist
|
||||
# py2
|
||||
virtualenv build_py2
|
||||
build_py2/bin/pip install --upgrade pip setuptools wheel virtualenv
|
||||
build_py2/bin/python setup.py bdist_wheel
|
||||
rm -rf build_py2
|
||||
# py3
|
||||
python3 -m venv build_py3
|
||||
build_py3/bin/pip install --upgrade pip setuptools wheel virtualenv
|
||||
build_py3/bin/python setup.py bdist_wheel
|
||||
rm -rf build_py3
|
||||
|
||||
pypi-upload-test:
|
||||
twine upload -r https://test.pypi.org/legacy/ dist/*
|
||||
|
||||
pypi-upload:
|
||||
twine upload dist/*
|
||||
|
||||
tag::
|
||||
git tag -a $(TAG)
|
||||
@echo "Tagged with: $(TAG)"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue