1
0
mirror of https://github.com/TREX-CoE/trexio.git synced 2024-12-22 12:23:54 +01:00

release script for TestPyPI

This commit is contained in:
q-posev 2021-07-28 16:25:54 +02:00
parent e0162d4570
commit 621f4bc8b1
2 changed files with 24 additions and 3 deletions

View File

@ -40,9 +40,9 @@ setup(name = 'pytrexio',
packages = find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: C"
"License :: OSI Approved :: BSD",
"Operating System :: POSIX :: Linux",
"Programming Language :: C",
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX :: Linux"
],
install_requires = ['h5py']
)

21
test-pypi-release-pytrexio.sh Executable file
View File

@ -0,0 +1,21 @@
#!/bin/bash
set -x
set -e
#source version.py
python3 -m pip install --upgrade setuptools wheel twine
python3 -s setup.py --no-user-cfg build
python3 setup.py sdist bdist_wheel
python3 -m pip install dist/pytrexio-0.1-cp38-cp38-linux_x86_64.whl
#python3 -m twine upload dist/pytrexio-0.1.tar.gz
# NOTE:I get an error:
# Binary wheel 'pytrexio-0.1-cp38-cp38-linux_x86_64.whl' has an unsupported platform tag 'linux_x86_64'.
# when uploading the wheel instead of the tar.gz file to testpypi
# This is a well-known issue, see https://stackoverflow.com/questions/59451069/binary-wheel-cant-be-uploaded-on-pypi-using-twine
python3 -m twine upload --repository testpypi dist/pytrexio-0.1.tar.gz
rm -rf build dist pytrexio.egg-info