Just a few examples to get you an idea of how easy PyScaffold is to use:
- The simplest way of using PyScaffold. A directory
my_little_projectis created with a Python package named exactly the same. The MIT license will be used.
putup skynet -l gpl3 -d "Finally, the ultimate AI!" -u http://sky.net
- This will create a project and package named skynet licensed under the GPL3.
The description inside
setup.cfgis directly set to “Finally, the ultimate AI!” and the homepage to http://sky.net.
putup Scikit-Gravity -p skgravity -l new-bsd
- This will create a project named Scikit-Gravity but the package will be named skgravity with license new-BSD.
putup youtub --django --pre-commit -d "Ultimate video site for hot tub fans"
- This will create a web project and package named youtub that also includes
the files created by Django’s
django-admin. The description in
setup.cfgwill be set and a file
.pre-commit-config.yamlis created with a default setup for pre-commit.
putup thoroughly_tested --tox --travis
- This will create a project and package thoroughly_tested with files
.travis.ymlfor Tox and Travis.
putup my_zope_subpackage --namespace zope -l gpl3
- This will create a project and subpackage named my_zope_subpackage in the namespace zope. To be honest, there is really only the Zope project that comes to my mind which is using this exotic feature of Python’s packaging system. Chances are high, that you will never ever need a namespace package in your life.