PyPI sdist setup

This commit is contained in:
Mario Fink
2021-03-03 17:59:31 +01:00
parent 0d94c7064a
commit 2ce5db0e85
9 changed files with 154 additions and 86 deletions

View File

@@ -89,7 +89,7 @@ cython-install : cython/setup.py cython/tdm_termite.pxd cython/py_tdm_termite.py
python3 $< install
cython-clean :
rm -vf cython/py_tdm_termite.cpp
rm -vf cython/py_tdm_termite.c* cython/tdm_termite.c*
rm -vf tdm_termite.cpython-*.so python/tdm_termite.cpython-*.so
rm -rf build
@@ -108,45 +108,7 @@ docker-clean:
docker image remove tdmtermite
# --------------------------------------------------------------------------- #
# pip
pip-setup:
apt-get install -y python3-setuptools \
python3-pip \
python3-venv
python3 -m pip install --upgrade build
python3 -m pip install twine wheel auditwheel cython
python3 -m pip install --user --upgrade twine
pip-build:
#python3 -m build
# python3 setup.py sdist bdist_wheel
python3 setup.py bdist_wheel
# actually it seems we have to use CentOS container
# docker run -i -t -v `pwd`:/io quay.io/pypa/manylinux1_x86_64 /bin/bash
# see https://github.com/neuronsimulator/nrn/issues/329 for setup of the container
pip-audit:
auditwheel repair $(shell find dist/ -name "*-cp38-cp38-linux_x86_64.whl")
# username: __token__
# password: API-token including "pypi-"
# !! RUN AS ROOT!!
pip-upload:
python3 -m twine upload --repository testpypi dist/*
pip-test-install:
python3 -m pip install --index-url https://test.pypi.org/simple --no-deps TDMtermite-RecordEvolution
# python3 -m pip install -i https://test.pypi.org/simple/ TDMtermite-RecordEvolution==0.5
pip-clean:
rm -rvf dist/
rm -rvf *.egg-info
rm -rvf build/ wheelhouse/
# --------------------------------------------------------------------------- #
clean : cpp-clean cython-clean pip-clean
clean : cpp-clean cython-clean
# --------------------------------------------------------------------------- #