You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
876 B

  1. # Testing PyPi distribution before upload
  2. The 1.0.4 release was botched when uploading to PyPi as it pulled in the 1.0.3 artifacts sitting in my dev directory. This meant that the 1.0.4 version was now clobbered on PyPi and could no longer be used. More care is needed when deploying.
  3. ### How to test locally before uploading
  4. 1\. build the wheel
  5. ```
  6. python pip_build_wheel.py
  7. ```
  8. this will output the wheel to the `dist/` directory.
  9. 2/. Copy the file location.
  10. Copy the absolute path to the .gz output file. It will look something like this:
  11. ```
  12. dist/Gooey-1.0.4.tar.gz
  13. ```
  14. 3\. In a different virtual environment, install the local wheel
  15. ```
  16. cd ~/projects/GooeyExamples
  17. virtualenv venv
  18. source ./venv/Scripts/activate
  19. pip install /path/to/local/dist/Gooey-1.0.4.tar.gz
  20. ```
  21. If everything installs OK, you're good to upload.
  22. ```
  23. python pip_deploy.py
  24. ```