Last active
December 17, 2015 00:28
Revisions
-
Steve Peak revised this gist
May 5, 2013 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -22,4 +22,7 @@ - upload `python setup.py sdist upload` ### Install - `pip install __packagename__` ### Upgrade - `pip install __packagename__ --upgrade` -
Steve Peak revised this gist
May 5, 2013 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -19,4 +19,7 @@ ### New versions - chanage version number in `setup.py` - upload `python setup.py sdist upload` ### Install - easy `pip install __packagename__` -
Steve Peak revised this gist
May 5, 2013 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ ## pip 1. [register with pip](https://pypi.python.org/pypi?%3Aaction=register_form) - setup `.pypirc` file, see `.pypirc` example - put file in `$HOME` - osx `touch ~/.pypirc` 2. install PasteScript @@ -11,7 +11,7 @@ - `paster create __name__` - **add package folder** add to setup dict arguments `packages = ['__folder__']` - *optional* remove content in `setup.cfg` via `$ echo "[egg_info]" > setup.cfg` 5. git ignore to ignore package stuff, see `.gitignore` example 6. register package - `python setup.py register` 7. upload -
Steve Peak revised this gist
May 5, 2013 . 4 changed files with 48 additions and 13 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ *.pyc .DS_Store # Packages *.egg *.egg-info dist build eggs parts bin var sdist develop-eggs .installed.cfg lib lib64 __pycache__ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ # This one is needed when you want to release a package to PyPI [distutils] index-servers = pypi [pypi] username:USERNAME password:PASSWORD This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ ## pip 1. [register with pip](https://pypi.python.org/pypi?%3Aaction=register_form) - setup `.pypirc` file, see `.pypirc` in gist below for example - put file in `$HOME` - osx `touch ~/.pypirc` 2. install PasteScript - `sudo easy_install PasteScript` 3. search for package, find a project name - `pip search __name__` 4. create project - `paster create __name__` - **add package folder** add to setup dict arguments `packages = ['__folder__']` - *optional* remove content in `setup.cfg` via `$ echo "[egg_info]" > setup.cfg` 5. git ignore to ignore package stuff, see `.gitignore` example below 6. register package - `python setup.py register` 7. upload - `python setup.py sdist upload` ### New versions - chanage version number in `setup.py` - upload `python setup.py sdist upload` This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,13 +0,0 @@ -
Steve Peak created this gist
May 5, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ ## pip - **install PasteScript** `sudo easy_install PasteScript` - **create project** `paster create __name__` - **add package folder** add to setup dict arguments `packages = ['__folder__']` - remove content in `setup.cfg` via `$ echo "[egg_info]" > setup.cfg` - **register package** `python setup.py register` - **search for package** `pip search __name__` - **upload** `python setup.py sdist upload` - **git ignore** to ignore package stuff ## git tags - **create** `git tag -a v1.4 -m 'comment'` - **push** `git push origin v1.4`