PyProject provides a basic skeleton for new python projects including distutils, sphinx documentation, unittest and coverage using the BSD license.
you need the following packages installed:
- python-sphinx
- python-coverage
- python-nose
- gettext
We recommend using virtualenv to use the latest versions of these packages without interfering with the locally installed packages.
you can install this package with easy_install using:
easy_install PyProject-0.2.0.tar.gz
or without easy_install:
tar xzf PyProject-0.2.0.tar.gz cd PyProject-0.2.0 python setup.py install
create documentation:
make html open doc/gen/html/index.html
create translations:
use _ from the pyproject.i18n module for the strings
create a pot file for translations (make pot)
create a new translation language:
cd i18n ./create_translations.sh detranslate the strings within de.po
add and commit de.po
update translations:
create a new pot file for translations (make pot)
update all translations files:
cd i18n ./update_translations.shupdate the missing translation strings within the *.po files.
run tests with coverage:
nosetests --with-coverage
create distribution (source dist):
create documentation (see above)
create translations (see above)
run build:
./setup.py buildrun sdist:
./setup.py sdist
test translations:
setup.py build creates the mo files for the translation. Now it is possible to run the application with the translation files. Just set the LANG environment variable:
LANG=de ./bin/pyproject