summaryrefslogtreecommitdiff
path: root/HACKING.txt
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2013-08-17 11:27:21 +0200
committerChris McDonough <chrism@plope.com>2013-08-17 11:27:21 +0200
commit45d8ef43ec723cacf79c1d6232e652ccee4d2dc9 (patch)
treec7e014b5ee474c9bb5ded035875148491128405e /HACKING.txt
parent18d39328082dce27c9ce48364e3d6baa4d76ec79 (diff)
parentf6ea2275f927e88d43fb2d105bce33d0ece0df16 (diff)
downloadpyramid-45d8ef43ec723cacf79c1d6232e652ccee4d2dc9.tar.gz
pyramid-45d8ef43ec723cacf79c1d6232e652ccee4d2dc9.tar.bz2
pyramid-45d8ef43ec723cacf79c1d6232e652ccee4d2dc9.zip
Merge branch 'master' of github.com:Pylons/pyramid
Diffstat (limited to 'HACKING.txt')
-rw-r--r--HACKING.txt29
1 files changed, 27 insertions, 2 deletions
diff --git a/HACKING.txt b/HACKING.txt
index 5b5dcc458..5d33aa0ab 100644
--- a/HACKING.txt
+++ b/HACKING.txt
@@ -16,13 +16,31 @@ checkout.
- Check out a read-only copy of the Pyramid source::
- $ git clone git://github.com/Pylons/pyramid.git
+ $ git clone git://github.com/Pylons/pyramid.git .
(alternately, create a writeable fork on GitHub and check that out).
+Since pyramid is a framework and not an application, it can be
+convenient to work against a sample application, preferably in its
+own virtualenv. A quick way to achieve this is to (ab-)use ``tox``
+with a custom configuration file that's part of the checkout::
+
+ tox -c hacking-tox.ini
+
+This will create a python-2.7 based virtualenv named ``env27`` (pyramid's
+``.gitconfig` ignores all top-level folders that start with ``env`` specifically
+for this use case) and inside that a simple pyramid application named
+``hacking`` that you can then fire up like so::
+
+ cd env27/hacking
+ ../bin/pserve development.ini
+
+Alternatively, if you don't want to install ``tox`` at this point,
+you an achieve the same manually by following these steps:
+
- Create a virtualenv in which to install Pyramid::
- $ virtualenv2.6 --no-site-packages env
+ $ virtualenv env
- Install ``setuptools-git`` into the virtualenv (for good measure, as we're
using git to do version control)::
@@ -110,6 +128,13 @@ Running Tests
$ cd ~/hack-on-pyramid/pyramid
$ /usr/bin/tox
+- The tests can also be run usign ``pytest`` (http://pytest.org/). This is
+ intended as a convenience for people who are more used or fond of ``pytest``.
+ Run the tests like so::
+
+ $ $VENV/bin/easy_install pytest
+ $ py.test --strict pyramid/
+
Test Coverage
-------------