[1/4] TESTING: Step for installing the Python package

Message ID 20200229000038.GA1596596@tsubame.mg0.fr
State New
Headers show
Series [1/4] TESTING: Step for installing the Python package | expand

Commit Message

Frédéric Mangano-Tarumi Feb. 29, 2020, midnight UTC
---
 TESTING | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

Patch

diff --git a/TESTING b/TESTING
index 4a1e6f4c..7476bc97 100644
--- a/TESTING
+++ b/TESTING
@@ -22,7 +22,16 @@  INSTALL.
    Be sure to change backend to sqlite and name to the file location of your
    created test database.
 
-4) Prepare the testing database:
+4) Install the aurweb Python package:
+
+    $ cd /path/to/aurweb/
+      # Optionally create a virtualenv and activate it.
+    $ pip install -e .
+
+   Note that the with -e option, you don’t need to rerun pip install when the
+   code changes. When working without a virtualenv, you may need --user.
+
+5) Prepare the testing database:
 
     $ cd /path/to/aurweb/
     $ python -m aurweb.initdb
@@ -31,6 +40,6 @@  INSTALL.
     $ ./gendummydata.py out.sql
     $ sqlite3 path/to/aurweb.sqlite3 < out.sql
 
-5) Run the PHP built-in web server:
+6) Run the PHP built-in web server:
 
    $ AUR_CONFIG='/path/to/aurweb/conf/config' php -S localhost:8080 -t /path/to/aurweb/web/html