Changes between Version 27 and Version 28 of DevGuide


Ignore:
Timestamp:
Mar 14, 2017, 5:10:12 PM (7 years ago)
Author:
Ryan J Ollos
Comment:

Use twine to register plugin.

Legend:

Unmodified
Added
Removed
Modified
  • DevGuide

    v27 v28  
    114114
    1151151. [https://pypi.python.org/pypi?%3Aaction=register_form Register] yourself an account on PyPI.
    116 1. Name your package appropriately. The package name is specified with the `name` argument in `setup.py`. It is recommend that  you prefix your package name with `Trac`, for easy identification and to lessen the likelihood of a package name collision with an existing PyPI package. For example, FullBlogPlugin is given the name `TracFullBlog`, and TagsPlugin is given the name `TracTags`.
    117 1. Update dependencies in your environment:
    118 {{{#!sh
    119 $ pip install -U pip setuptools wheel
    120 }}}
    121 1. From a checkout of your source code, run:
    122 {{{#!sh
    123 $ python setup.py sdist bdist_wheel
    124 }}}
    125 1. Register your package on PyPI.
    126 {{{#!sh
    127 $ python setup.py register dist/*.whl
    128 }}}
    1291161. Install twine and add your credentials to `.pypirc` in your home directory. Example:
    130117{{{#!ini
     
    143130username = myusername
    144131password = mypassword
     132}}}
     1331. Name your package appropriately. The package name is specified with the `name` argument in `setup.py`. It is recommend that  you prefix your package name with `Trac`, for easy identification and to lessen the likelihood of a package name collision with an existing PyPI package. For example, FullBlogPlugin is given the name `TracFullBlog`, and TagsPlugin is given the name `TracTags`.
     1341. Update dependencies in your environment:
     135{{{#!sh
     136$ pip install -U pip setuptools wheel
     137}}}
     1381. From a checkout of your source code, run:
     139{{{#!sh
     140$ python setup.py sdist bdist_wheel
     141}}}
     1421. Register your package on PyPI.
     143{{{#!sh
     144$ twine register dist/*.whl
    145145}}}
    1461461. Publish your packages.