Queer European MD passionate about IT

update_package.sh 490 B

123456789101112131415
  1. #!/bin/bash
  2. # Python virtual environment directory: packenv variable in my_config.sh
  3. source my_config.sh;
  4. # Ensure the success of importing procedure
  5. if [ -z ${packenv} ];
  6. then
  7. printf "Please set in ""my_config.sh"" the path to bot python virtual environment\n\nExample:\npackenv=""path/to/virtual/env""\n";
  8. exit;
  9. fi
  10. # Merge, push, build and publish package to pypi.org
  11. bash merge_and_push.sh;
  12. $packenv/python setup.py sdist bdist_wheel;
  13. $packenv/twine upload --skip-existing dist/*;