[PATCH 1/4] TESTING: Step for installing the Python package
Frédéric Mangano-Tarumi
fmang at mg0.fr
Sat Feb 29 00:00:38 UTC 2020
---
TESTING | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
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
--
2.25.1
More information about the aur-dev
mailing list