Skip to content

Commit

Permalink
add some development information, add redis so you can even run (paci…
Browse files Browse the repository at this point in the history
…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
karcaw authored and Evan Felix committed Dec 11, 2019
1 parent 80e4c98 commit 727536b
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,6 @@ target/
db.sqlite3

.vscode

#pyenv file
.python-version
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,4 @@ jobs:
tags: true
install:
- pip install -r requirements-dev.txt
- python setup.py egg_info
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ documentation.

* [Installation](docs/installation.md) documentation.
* [Configuration](docs/configuration.md) documentation.
* [Development](docs/development.md) documentation.
* [Examples](docs/exampleusage.md) documentation.
20 changes: 20 additions & 0 deletions docs/development.md
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
```
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ jsonschema
peewee>2
psutil
pymysql
redis
requests
setuptools
tqdm

0 comments on commit 727536b

Please sign in to comment.