Skip to content

Commit 21758c6

Browse files
test without vtk
1 parent 37e0234 commit 21758c6

File tree

5 files changed

+5
-39
lines changed

5 files changed

+5
-39
lines changed

.github/workflows/CICD.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,7 @@ jobs:
1212
- name: Test
1313
run: |
1414
pip install pytest pytest-xprocess
15-
pip install -r requirements.txt
16-
pip install .
17-
echo "toto"
18-
ls /usr/local/lib/python3.9/site-packages/opengeodeweb_viewer
19-
echo "tutu"
20-
ls /usr/local/lib/python3.9/site-packages/opengeodeweb_viewer/tests
21-
echo "titi"
22-
ls /usr/local/lib/python3.9/site-packages/opengeodeweb_viewer/tests/data
15+
pip install -e .
2316
pytest
2417
2518
build:

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ classifiers = [
1919
"Operating System :: OS Independent",
2020
]
2121

22+
[project.optional-dependencies]
23+
vtk = ["vtk=9.3.0"]
24+
2225
[project.urls]
2326
"Homepage" = "https://github.com/Geode-solutions/OpenGeodeWeb-Viewer"
2427
"Bug Tracker" = "https://github.com/Geode-solutions/OpenGeodeWeb-Viewer/issues"

requirements.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
jsonschema
22
python-dotenv
3-
vtk
43
wslink
54
websocket-client

requirements.txt

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -15,44 +15,20 @@ attrs==23.2.0
1515
# aiohttp
1616
# jsonschema
1717
# referencing
18-
contourpy==1.2.0
19-
# via matplotlib
20-
cycler==0.12.1
21-
# via matplotlib
22-
fonttools==4.49.0
23-
# via matplotlib
2418
frozenlist==1.4.1
2519
# via
2620
# aiohttp
2721
# aiosignal
2822
idna==3.6
2923
# via yarl
30-
importlib-resources==6.1.3
31-
# via matplotlib
3224
jsonschema==4.21.1
3325
# via -r requirements.in
3426
jsonschema-specifications==2023.12.1
3527
# via jsonschema
36-
kiwisolver==1.4.5
37-
# via matplotlib
38-
matplotlib==3.8.3
39-
# via vtk
4028
multidict==6.0.5
4129
# via
4230
# aiohttp
4331
# yarl
44-
numpy==1.26.4
45-
# via
46-
# contourpy
47-
# matplotlib
48-
packaging==24.0
49-
# via matplotlib
50-
pillow==10.2.0
51-
# via matplotlib
52-
pyparsing==3.1.2
53-
# via matplotlib
54-
python-dateutil==2.9.0.post0
55-
# via matplotlib
5632
python-dotenv==1.0.1
5733
# via -r requirements.in
5834
referencing==0.33.0
@@ -63,15 +39,9 @@ rpds-py==0.18.0
6339
# via
6440
# jsonschema
6541
# referencing
66-
six==1.16.0
67-
# via python-dateutil
68-
vtk==9.3.0
69-
# via -r requirements.in
7042
websocket-client==1.7.0
7143
# via -r requirements.in
7244
wslink==1.12.4
7345
# via -r requirements.in
7446
yarl==1.9.4
7547
# via aiohttp
76-
zipp==3.17.0
77-
# via importlib-resources

src/opengeodeweb_viewer/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def dev_config():
2626

2727
def test_config():
2828
default_config()
29+
print(f"{os.path.dirname(__file__)=}", flush=True)
2930
os.environ["DATA_FOLDER_PATH"] = os.path.join(
3031
os.path.dirname(__file__), "tests", "data"
3132
)

0 commit comments

Comments
 (0)