export VENV=~/env
python3 -m venv $VENV
$VENV/bin/pip install "pyramid==1.9.1"
brew install cookiecutter
cookiecutter gh:Pylons/pyramid-cookiecutter-starter --checkout 1.9-branch
-
Change directory into your newly created project.
cd tz_pyramid
-
Create a Python virtual environment.
python3 -m venv env
-
Upgrade packaging tools.
pip3 install --upgrade pip setuptools
-
Install the project in editable mode with its testing requirements.
pip3 install -e ".[testing]"
-
Run your project's tests.
env/bin/pytest
-
Run your project.
env/bin/pserve development.ini
-
in Eclipse
add /tz_pyramid/env/lib/python3.4/site-packages in PYTHONPATH
run /tz_pyramid/env/bin/pserve /Users/dhong/Documents/workspace/python/tz_pyramid/development.ini
- Test
http://localhost:6543
http://localhost:6543/home2
http://localhost:6543/rest
* PyTest env.
vi ~/tz_pyramid/ui/tests/README.md