Skip to content

Instantly share code, notes, and snippets.

@stevepeak
Last active December 17, 2015 00:28

Revisions

  1. Steve Peak revised this gist May 5, 2013. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -22,4 +22,7 @@
    - upload `python setup.py sdist upload`

    ### Install
    - easy `pip install __packagename__`
    - `pip install __packagename__`

    ### Upgrade
    - `pip install __packagename__ --upgrade`
  2. Steve Peak revised this gist May 5, 2013. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion README.md
    Original 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`
    - upload `python setup.py sdist upload`

    ### Install
    - easy `pip install __packagename__`
  3. Steve Peak revised this gist May 5, 2013. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions README.md
    Original 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` in gist below for example
    - 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 below
    5. git ignore to ignore package stuff, see `.gitignore` example
    6. register package
    - `python setup.py register`
    7. upload
  4. Steve Peak revised this gist May 5, 2013. 4 changed files with 48 additions and 13 deletions.
    18 changes: 18 additions & 0 deletions .gitignore
    Original 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__
    8 changes: 8 additions & 0 deletions .pypirc
    Original 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
    22 changes: 22 additions & 0 deletions README.md
    Original 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`
    13 changes: 0 additions & 13 deletions notes.md
    Original file line number Diff line number Diff line change
    @@ -1,13 +0,0 @@
    ## 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`
  5. Steve Peak created this gist May 5, 2013.
    13 changes: 13 additions & 0 deletions notes.md
    Original 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`