Warning

This document hasn't been checked for compatibility with current versions of Plone. Use at your own risk.

Using aliases

by Tarek Ziade last modified Mar 15, 2009 01:14 PM
explains how to use the setuptools alias command to simplify the work

 

When you are working with Plone Add-on products the best practice is to upload your releases to PyPI and Plone.org. 

Since all Plone packages are based on Setuptools, you can create two aliases to make commands shorter :

$ python setup.py alias plone_release mregister sdist mupload -r plone.org
$ python setup.py alias pypi_release mregister sdist mupload

Setuptools will create in setup.cfg two aliases, and you will be able to register and upload your package with plone_release and pypi_release, wich is shorter;

$ python setup.py plone_release 
$ python setup.py pypi_release

 


Contribute

Something wrong or out of date? Anybody can edit or create a new article in the knowledge base. Simply create an account on this site, log in, and click the Edit button to contribute.