-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
712 additions
and
3 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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.DS_Store | ||
.env | ||
*.pyc | ||
__pycache__/ | ||
ptenv/ | ||
|
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,12 @@ | ||
FROM calthorpeanalytics/python3-geo:3.6.3-1.0.0 | ||
|
||
RUN mkdir /code | ||
WORKDIR /code | ||
|
||
RUN pip install numpy==1.12.1 --src /usr/local/src | ||
|
||
COPY requirements.txt /code/ | ||
RUN pip install -r requirements.txt --src /usr/local/src --exists-action=w | ||
|
||
COPY requirements_dev.txt /code/ | ||
RUN pip install -r requirements_dev.txt --src /usr/local/src --exists-action=w |
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 |
---|---|---|
@@ -1,5 +1,10 @@ | ||
test: | ||
it test: | ||
PYTHONPATH=. MPLBACKEND="agg" coverage run --source peartree -m py.test --verbose | ||
|
||
performance: | ||
PYTHONPATH=. MPLBACKEND="agg" pytest profiler/test_graph_assembly.py -s | ||
PYTHONPATH=. MPLBACKEND="agg" pytest profiler/test_graph_assembly.py -s | ||
|
||
notebook: | ||
docker-compose build | ||
mkdir ./notebooks | ||
docker-compose up notebook |
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,16 @@ | ||
|
||
version: "3" | ||
|
||
services: | ||
|
||
# Jupyter Notebook | ||
notebook: | ||
build: | ||
context: . | ||
env_file: .env | ||
command: jupyter notebook --config jupyter_notebook_config.py | ||
volumes: | ||
- .:/code | ||
- /tmp:/tmp | ||
ports: | ||
- "9898:9898" |
Oops, something went wrong.