forked from marcofornari/AFLOWpi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker_build.sh
executable file
·34 lines (22 loc) · 1002 Bytes
/
docker_build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
#######################################################
## YOU NEED TO HAVE DOCKER INSTALLED AND RUN AS ROOT ##
#######################################################
rm -rf ./wheelhouse/*
export PLAT=manylinux2014_x86_64
export DOCKER_IMAGE=quay.io/pypa/$PLAT
docker pull $DOCKER_IMAGE
docker run --rm -e PLAT=$PLAT -v `pwd`:/io $DOCKER_IMAGE $PRE_CMD /io/build-wheels.sh
export PLAT=manylinux_2_24_x86_64
export DOCKER_IMAGE=quay.io/pypa/$PLAT
docker pull $DOCKER_IMAGE
docker run --rm -e PLAT=$PLAT -v `pwd`:/io $DOCKER_IMAGE $PRE_CMD /io/build-wheels.sh
#######################################################
## YOU NEED PYPI USERNAME AND PASSWORD FOR AFLOWPI!! ##
#######################################################
pip install twine
twine upload --repository-url https://test.pypi.org/legacy/ wheelhouse/*manylinux*.whl
###################################
## TO UPLOAD TO THE REAL PYPI ##
## REMOVE THE "TEST." IN THE URL ##
###################################