- Update HISTORY.rst
- Update version number in
my_project/__init__.py - Update version number in
setup.py - Install the package again for local development, but with the new version number:
python setup.py develop
- Run the tests:
python setup.py test
| apt-get install zlib1g-dev | |
| apt-get install g++ | |
| export VENV=$VIRTUAL_ENV | |
| mkdir $VENV/packages && cd $VENV/packages | |
| XAPIAN_VERSION=1.2.20 | |
| curl -O http://oligarchy.co.uk/xapian/$XAPIAN_VERSION/xapian-core-$XAPIAN_VERSION.tar.xz | |
| curl -O http://oligarchy.co.uk/xapian/$XAPIAN_VERSION/xapian-bindings-$XAPIAN_VERSION.tar.xz |
my_project/__init__.pysetup.pypython setup.py develop
python setup.py test
| def extract_and_add(file_upload, obj, workspace=None, token=None): | |
| """Extracts temporary attachments from storage and attaches them into `obj` | |
| Extract file data `from file_upload`, create file/image objects and add | |
| them as attachments to ``obj``. If workspace and token are given, reuse | |
| previously uploaded temporary attachments if they exist. | |
| """ | |
| Directive | Priority | Terminal | Creates new scope | Can be used as multiElement |
|---|---|---|---|---|
| ngSwitch | 1200 | X | ||
| ngNonBindable | 1000 | X | ||
| ngRepeat | 1000 | X | X | X |
| ngIf | 600 | X | X | X |
| ngController | 500 | X | ||
| ngInit | 450 | |||
| ngInclude | 400 | X | X | |
| ngView | 400 | X |
| import sys, os | |
| local_path = lambda path: os.path.join(os.path.dirname(__file__), path) | |
| os.environ['DJANGO_SETTINGS_MODULE'] = 'PROJECTNAME.settings' | |
| sys.path.append(local_path('..')) | |
| ... # Rest of conf.py goes here |