forked from pacifica/pacifica-cartd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add some development information, add redis so you can even run (paci…
…fica#82) * add some development information, add redis so you can even run * add link to development doc to readme * add pre-commit polishing * Try a travis fix from: pypa/pip#6275
- Loading branch information
Showing
5 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,3 +60,6 @@ target/ | |
db.sqlite3 | ||
|
||
.vscode | ||
|
||
#pyenv file | ||
.python-version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,3 +72,4 @@ jobs: | |
tags: true | ||
install: | ||
- pip install -r requirements-dev.txt | ||
- python setup.py egg_info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
|
||
# Development Pre-requisites | ||
* create a virtual environment and loat the python packages with pip | ||
``` | ||
pip install -r requirements-dev.txt | ||
``` | ||
* start a docker archive interface: | ||
``` | ||
docker run --rm -p 8080:8080 pacifica/archiveinterface | ||
``` | ||
* start a redis interface(check this) | ||
``` | ||
docker run --rm -p 6379:6379 redis | ||
``` | ||
|
||
# Run the tests | ||
``` | ||
coverage run --include 'pacifica/cartd/*' -m pytest -xsv tests/test tests/e2e | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ jsonschema | |
peewee>2 | ||
psutil | ||
pymysql | ||
redis | ||
requests | ||
setuptools | ||
tqdm |