Commit 5d36c24e authored by Patrick Kimber's avatar Patrick Kimber

python3 on Ubuntu 14.04 LTS

parent c3ddb364
source venv-booking/bin/activate
export DJANGO_SETTINGS_MODULE=example.dev_patrick
......@@ -26,6 +26,7 @@ pip-log.txt
.coverage
.tox
nosetests.xml
venv-*
# Translations
*.mo
......
dev_booking
......@@ -9,43 +9,21 @@ Install
Virtual Environment
-------------------
Note: replace ``patrick`` with your name (checking in the ``example`` folder
to make sure a file has been created for you)::
mkvirtualenv dev_booking
pip install -r requirements/local.txt
echo "export DJANGO_SETTINGS_MODULE=example.dev_patrick" >> $VIRTUAL_ENV/bin/postactivate
echo "unset DJANGO_SETTINGS_MODULE" >> $VIRTUAL_ENV/bin/postdeactivate
add2virtualenv ../base
add2virtualenv ../login
add2virtualenv .
deactivate
To check the order of the imports::
workon dev_booking
cdsitepackages
cat _virtualenv_path_extensions.pth
::
Check the imports are in the correct order e.g::
pyvenv-3.4 --without-pip venv-booking
source venv-booking/bin/activate
wget https://raw.githubusercontent.com/pypa/pip/master/contrib/get-pip.py
python get-pip.py
/home/patrick/repo/dev/app/booking
/home/patrick/repo/dev/app/login
/home/patrick/repo/dev/app/base
pip install -r requirements/local.txt
Testing
=======
Using ``pytest-django``::
::
workon dev_booking
find . -name '*.pyc' -delete
py.test
To stop on first failure::
py.test -x
Usage
......@@ -53,8 +31,6 @@ Usage
::
workon dev_booking
py.test -x && \
touch temp.db && rm temp.db && \
django-admin.py syncdb --noinput && \
......@@ -66,4 +42,4 @@ Usage
Release
=======
https://github.com/pkimber/docs
https://django-dev-and-deploy-using-salt.readthedocs.org/
bleach==1.4
django-braces==1.3.1
django-braces==1.4.0
django-reversion==1.8.0
django-sendfile
Django==1.6.3
python-dateutil
Django==1.6.4
git+https://github.com/pkimber/django-sendfile#egg=sendfile
python-dateutil==2.2
pytz==2014.2
South==0.8.4
-r base.txt
-e .
-e ../base
-e ../login
beautifulsoup4
fabric
gitpython
ipdb
hgapi
......
[pytest]
norecursedirs = .git venv-*
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment