File tree Expand file tree Collapse file tree 2 files changed +17
-6
lines changed
Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Original file line number Diff line number Diff line change 1818set -e
1919
2020function cleanup() {
21- rm -f dist/apache* libcloud* .*
21+ rm -rf dist/apache* libcloud* .*
22+ pip uninstall -y apache-libcloud || true
2223}
2324
2425cleanup
2526
2627trap cleanup EXIT
2728
28- # Verify library installs without any dependencies when using python setup.py
29- # install
29+ # Verify library installs without any dependencies when using source
30+ # tarball
3031echo " Running dist install checks"
3132python --version
3233
@@ -37,9 +38,14 @@ pip show typing && exit 1
3738pip show enum34 && exit 1
3839pip show apache-libcloud && exit 1
3940
40- # Install the library
41- pip install .
41+ # Build and install the library
42+ pip install build
43+ python -m build
44+ pip install dist/apache_libcloud-* .tar.gz
45+
46+ # Verify the library has been installed and perform basic sanity check
4247pip show apache-libcloud
48+ python -c " import libcloud; print(libcloud.__version__)"
4349
4450# Verify all dependencies were installed
4551pip show requests
Original file line number Diff line number Diff line change 2020set -e
2121
2222function cleanup() {
23- rm -f dist/apache* libcloud* .*
23+ rm -rf dist/apache* libcloud* .*
24+ pip uninstall -y apache-libcloud || true
2425}
2526
2627cleanup
@@ -42,6 +43,10 @@ pip install build
4243python -m build
4344pip install dist/apache_libcloud-* .whl
4445
46+ # Verify the library has been installed and perform basic sanity check
47+ pip show apache-libcloud
48+ python -c " import libcloud; print(libcloud.__version__)"
49+
4550# Verify all dependencies were installed
4651pip show requests
4752pip show typing && exit 1
You can’t perform that action at this time.
0 commit comments