Skip to content

Commit 0eed3c6

Browse files
committed
Resolve issue 255
2 parents c8cad06 + 80f8551 commit 0eed3c6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+2014
-151
lines changed

.bldr.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[chime]
2+
plan_path = "habitat"
3+
paths = [
4+
"habitat/*",
5+
".bldr.toml",
6+
"src/*",
7+
]

.cache/v/cache/lastfailed

Lines changed: 0 additions & 3 deletions
This file was deleted.

.envrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export HAB_DOCKER_OPTS="-p 8000:8000"
2+
export HAB_STUDIO_SUP="false"

.gitignore

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
# Editors
2-
.vscode/
3-
4-
# Byte-compiled / optimized / DLL files
5-
__pycache__/
2+
.idea/
63

74
# Environments
85
.env
@@ -16,3 +13,16 @@ venv.bak/
1613
# mypy
1714
.mypy_cache/
1815
__pycache__/
16+
17+
# pytest
18+
.cache/
19+
20+
# Module trash
21+
*.egg-info
22+
23+
# Notebooks
24+
devel.ipynb
25+
.ipynb_checkpoints
26+
27+
# build artifacts
28+
results/

.studiorc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export HAB_HART_COMPRESSION_LEVEL=0 # disables compression to speed up local dev

.vscode/extensions.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3+
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4+
5+
// List of extensions which should be recommended for users of this workspace.
6+
"recommendations": [
7+
"ms-python.python",
8+
"bungcip.better-toml",
9+
"davidanson.vscode-markdownlint"
10+
],
11+
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
12+
"unwantedRecommendations": [
13+
14+
]
15+
}

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ FROM python:3.7.7-slim-buster
22
RUN mkdir /app
33
WORKDIR /app
44
COPY README.md .
5+
COPY setup.cfg .
56
COPY setup.py .
7+
COPY requirements.txt .
68
# Creating an empty src dir is a (hopefully) temporary hack to improve layer caching and speed up image builds
79
# todo fix once the Pipfile, setup.py, requirements.txt, pyprojec.toml build/dist story is figured out
810
RUN mkdir src && pip install -q .
@@ -11,3 +13,4 @@ COPY settings.cfg .
1113
COPY src src
1214

1315
CMD ["streamlit", "run", "src/app.py"]
16+

Dockerfile.dash

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM python:3.7.7-slim-buster
2+
3+
WORKDIR /code
4+
5+
COPY requirements.txt requirements.txt
6+
RUN pip install -q -r requirements.txt
7+
8+
COPY src src
9+
10+
# EXPOSE $PORT
11+
12+
CMD gunicorn dash_app:server --bind 0.0.0.0:$PORT --chdir src/

Pipfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,17 @@ url = "https://pypi.org/simple"
44
verify_ssl = true
55

66
[dev-packages]
7-
pytest = "*"
87

98
[packages]
109
streamlit = "*"
1110
pandas = "*"
1211
numpy = "*"
12+
pytest = "*"
1313
altair = "*"
14+
dash = "*"
15+
dash-bootstrap-components = "*"
16+
gunicorn = "*"
17+
PyYAML = "*"
1418

1519
[requires]
1620
python_version = "3.7"

0 commit comments

Comments
 (0)