Guest User

Untitled

a guest
Mar 27th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. ## Cutting a new pypi release: The case of django-councilmatic
  2.  
  3. Have you and your friends been making lots of changes to django-councilmatic? are you ready to cut a new release in pypi?
  4. Take these steps.
  5.  
  6. * Summarize your changes in `RELEASENOTES.md`.
  7.  
  8. * On a branch, visit `setup.py` and adjust the version of django-councilmatic, e.g. version='0.6.9' becomes version='0.6.10'
  9.  
  10. * Push changes to GitHub and merge.
  11.  
  12. * Locally, return to master, and pull changes down.
  13.  
  14. * Run `python setup.py sdist`- it will create a new distribution in a `dist` directory.
  15.  
  16. * You should be in a virtualenv that has twine installed. In not, then install it: `pip install twine`.
  17.  
  18. * Then, upload this release to pypi:
  19.  
  20. ```
  21. twine upload dist/<name dist file>
  22. ```
  23.  
  24. You can see your new version on pypi.python.org!
  25.  
  26. ***
  27.  
  28. N.B. For all this to work, you need a .pypirc file in your home directory (`/Users/<username>`). Add the following:
  29.  
  30. ```
  31. [distutils]
  32. index-servers =
  33. pypi
  34.  
  35. [pypi]
  36. username:<username>
  37. password:<your password>
  38. ```
Add Comment
Please, Sign In to add comment