Skip to content

Commit 17587b9

Browse files
Merge pull request #266 from CenterForTheBuiltEnvironment/development
filtering data grays out part of the chart
2 parents 5da6c96 + fa50cff commit 17587b9

78 files changed

Lines changed: 8089 additions & 7577 deletions

Some content is hidden

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

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.9.0
2+
current_version = 0.10.1
33
commit = True
44
tag = True
55

.dockerignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ README.md
22
LICENSE
33
Procfile
44
Procfile.windows
5-
Pipfile.lock
6-
Pipfile
75
*.pyo
86
*.pyd
97
__pycache__

.github/workflows/cypress.yml

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

.github/workflows/python.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,19 @@ jobs:
3131
run: |-
3232
pipenv run ruff format --check .
3333
34+
- name: Install Playwright Browsers
35+
run: |
36+
pipenv run playwright install chromium
37+
38+
- name: Start Clima
39+
run: |-
40+
pipenv run python main.py &
41+
42+
- name: Wait for Clima to be ready
43+
run: |
44+
timeout 60 bash -c 'until curl -f http://127.0.0.1:8080; do sleep 1; done'
45+
3446
- name: Test Clima
3547
run: |-
36-
pipenv run python -m pytest
48+
cd tests
49+
pipenv run pytest --base-url=http://127.0.0.1:8080 -vv

Dockerfile

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,28 @@
22
# https://hub.docker.com/_/python
33
FROM python:3.11-slim
44

5+
# Allow statements and log messages to immediately appear in the Knative logs
6+
ENV PYTHONUNBUFFERED=True
7+
58
RUN apt-get update \
6-
&& apt-get install gcc -y \
7-
&& apt-get clean
9+
&& apt-get install --no-install-recommends -y gcc \
10+
&& apt-get clean \
11+
&& rm -rf /var/lib/apt/lists/*
12+
13+
# Install pipenv
14+
RUN python -m pip install --upgrade pip \
15+
&& python -m pip install --no-cache-dir "pipenv>=2024.0,<2026.0"
16+
# Set working directory
17+
WORKDIR /app
818

9-
ENV APP_HOME /app
10-
WORKDIR $APP_HOME
19+
# Copy Pipfile and Pipfile.lock
20+
COPY Pipfile Pipfile.lock ./
1121

12-
COPY . ./
22+
# Install dependencies
23+
RUN pipenv sync
1324

14-
# Install production dependencies.
15-
RUN pip install --upgrade pip
16-
RUN pip install -r requirements.txt
25+
COPY . .
1726

1827
EXPOSE 8080
1928

20-
CMD python main.py
29+
CMD ["pipenv", "run", "python", "main.py"]

Pipfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ verify_ssl = true
44
name = "pypi"
55

66
[packages]
7-
dash = "==2.15"
7+
dash = "==3.2"
88
pvlib = "==0.9.1"
99
pythermalcomfort = "==2.9.1"
1010
dash-bootstrap-components = "==1.2.0"
1111
dash-extensions = "==1.0.7"
12-
dash-mantine-components = "==0.12.1"
12+
dash-mantine-components = "==2.2.1"
1313
requests = "==2.32.4"
1414
plotly = "==5.18.0"
1515
pandas = "==2.2.0"
@@ -24,6 +24,8 @@ bump2version = "*"
2424
black = "*"
2525
ruff = "*"
2626
pre-commit = "*"
27+
pytest-playwright = "*"
28+
pytest-xdist = "*"
2729

2830
[requires]
2931
python_version = "3.11"

Pipfile.lock

Lines changed: 436 additions & 133 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/banner.css

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

assets/construction.css

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

assets/fonts.css

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

0 commit comments

Comments
 (0)