Skip to content

Commit 0a165a1

Browse files
authored
Merge branch 'main' into fix-broken-links-2
2 parents 5dcd927 + d05707a commit 0a165a1

File tree

15 files changed

+37
-20
lines changed

15 files changed

+37
-20
lines changed

.github/workflows/tethys-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
matrix:
2121
platform: [ubuntu-latest]
2222
python-version: ["3.10", "3.11", "3.12"]
23-
django-version: ["3.2", "4.2", "5.1"]
23+
django-version: ["3.2", "4.2", "5.2"]
2424
steps:
2525
# Checkout the source
2626
- name: Checkout Source

.github/workflows/tethys.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
matrix:
5858
platform: [ubuntu-latest, macos-latest]
5959
python-version: ["3.10", "3.11", "3.12"]
60-
django-version: ["3.2", "4.2", "5.1"]
60+
django-version: ["3.2", "4.2", "5.2"]
6161
steps:
6262
# Checkout the source
6363
- name: Checkout Source
@@ -100,7 +100,7 @@ jobs:
100100
matrix:
101101
platform: [ubuntu-latest]
102102
python-version: ["3.10", "3.11", "3.12"]
103-
django-version: ["3.2", "4.2", "5.1"]
103+
django-version: ["3.2", "4.2", "5.2"]
104104
steps:
105105
# Checkout the source
106106
- name: Checkout Source
@@ -140,7 +140,7 @@ jobs:
140140
matrix:
141141
platform: [ubuntu-latest]
142142
python-version: ["3.10", "3.11", "3.12"]
143-
django-version: ["3.2", "4.2", "5.1"]
143+
django-version: ["3.2", "4.2", "5.2"]
144144
services:
145145
tethys-postgis:
146146
image: postgis/postgis:14-3.3

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ Tethys Platform
1414
:target: http://docs.tethysplatform.org/en/stable/?badge=stable
1515
:alt: Documentation Status
1616

17-
Tethys Platform provides both a development environment and a hosting environment for water resources web apps.
17+
Tethys Platform provides both a development environment and a hosting environment for geoscientific web apps.
1818

1919
Documentation can be found here: `<http://docs.tethysplatform.org/>`_

docs/features.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ Features
44

55
**Last Updated:** May 28, 2015
66

7-
Tethys is a platform that can be used to develop and host engaging, interactive water resources web applications or web apps. It includes a suite of free and open source software (FOSS) that has been carefully selected to address the unique development needs of water resources web apps. Tethys web apps are developed using a Python software development kit (SDK) which includes programmatic links to each software component. Tethys Platform is powered by the `Django <https://www.djangoproject.com/>`_ Python web framework giving it a solid web foundation with excellent security and performance.
7+
Tethys is a platform that can be used to develop and host engaging, interactive geoscientific web applications or web apps. It includes a suite of free and open source software (FOSS) that has been carefully selected to address the unique development needs of geoscientific web apps. Tethys web apps are developed using a Python software development kit (SDK) which includes programmatic links to each software component. Tethys Platform is powered by the `Django <https://www.djangoproject.com/>`_ Python web framework giving it a solid web foundation with excellent security and performance.
88

99
.. figure:: images/features/example_app_page.png
1010
:width: 600px
1111
:align: center
1212

13-
**Tethys platform can be used to create engaging, interactive web apps for water resources.**
13+
**Tethys platform can be used to create engaging, interactive web apps for the geosciences.**
1414

1515

1616
Software Suite
@@ -22,7 +22,7 @@ Tethys Platform provides a suite of free and open source software. Included in t
2222
:width: 600px
2323
:align: center
2424

25-
**Tethys Platform include software to meet water resources web app development needs.**
25+
**Tethys Platform include software to meet geoscientific web app development needs.**
2626

2727
.. note::
2828

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Tethys Platform |version|
66

77
**Last Updated:** September 2024
88

9-
Tethys is a platform that can be used to develop and host environmental web apps. It includes a suite of free and open source software (FOSS) that has been carefully selected to address the unique development needs of environmental web apps. Tethys web apps are developed using a Python software development kit (SDK) which includes programmatic links to each software component. Tethys Platform is powered by the Django Python web framework giving it a solid web foundation with excellent security and performance. Refer to the :doc:`./features` article for an overview of the features of Tethys Platform.
9+
Tethys is a platform that can be used to develop and host geoscientific web apps. It includes a suite of free and open source software (FOSS) that has been carefully selected to address the unique development needs of geoscientific web apps. Tethys web apps are developed using a Python software development kit (SDK) which includes programmatic links to each software component. Tethys Platform is powered by the Django Python web framework giving it a solid web foundation with excellent security and performance. Refer to the :doc:`./features` article for an overview of the features of Tethys Platform.
1010

1111
.. important::
1212

docs/software_suite.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Distributed Computing
9898
:width: 300px
9999
:align: right
100100

101-
To facilitate the large-scale computing that is often required by water resources applications, Tethys Platform leverages the computing management middleware `HTCondor <https://research.cs.wisc.edu/htcondor/>`_ and `Dask Distributed <https://distributed.dask.org/en/stable/>`_.
101+
To facilitate the large-scale computing that is often required by geoscientific applications, Tethys Platform leverages the computing management middleware `HTCondor <https://research.cs.wisc.edu/htcondor/>`_ and `Dask Distributed <https://distributed.dask.org/en/stable/>`_.
102102

103103
To use the HTCondor or Dask and the computing capabilities in your app use the :doc:`./tethys_sdk/jobs`.
104104

tests/unit_tests/test_tethys_apps/test_static_finders.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,18 @@ def test_find(self):
3131
self.assertEqual(self.root / "css" / "main.css", str_ret)
3232

3333
def test_find_all(self):
34+
import django
35+
3436
tethys_static_finder = TethysStaticFinder()
3537
path = Path("test_app") / "css" / "main.css"
36-
path_ret = tethys_static_finder.find(path, all=True)
38+
use_find_all = django.VERSION >= (5, 2)
39+
if use_find_all:
40+
path_ret = tethys_static_finder.find(path, find_all=True)
41+
str_ret = tethys_static_finder.find(str(path), find_all=True)
42+
else:
43+
path_ret = tethys_static_finder.find(path, all=True)
44+
str_ret = tethys_static_finder.find(str(path), all=True)
3745
self.assertIn(self.root / "css" / "main.css", path_ret)
38-
str_ret = tethys_static_finder.find(str(path), all=True)
3946
self.assertIn(self.root / "css" / "main.css", str_ret)
4047

4148
def test_find_location_with_no_prefix(self):

tethys_apps/base/paths.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Name: paths.py
44
* Author: Scott Christensen
55
* Created On: April 2024
6-
* Copyright: (c) Tethys Geospatial Foundation 2024
6+
* Copyright: (c) Tethys Geoscience Foundation 2024
77
* License: BSD 2-Clause
88
********************************************************************************
99
"""

tethys_apps/static_finders.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
from pathlib import Path
1212
from collections import OrderedDict as SortedDict
13+
import django
1314
from django.contrib.staticfiles import utils
1415
from django.contrib.staticfiles.finders import BaseFinder
1516
from django.core.files.storage import FileSystemStorage
@@ -39,15 +40,18 @@ def __init__(self, *args, **kwargs):
3940

4041
super().__init__(*args, **kwargs)
4142

42-
def find(self, path, all=False):
43+
# Django changes the argument `all` to `find_all` since the version 5.2
44+
# Remove the argument `all` when Tethys doesn't support Django<5.2 anymore
45+
def find(self, path, all=False, find_all=False):
4346
"""
4447
Looks for files in the Tethys apps static or public directories
4548
"""
49+
find_all_files = find_all if django.VERSION >= (5, 2) else all
4650
matches = []
4751
for prefix, root in self.locations:
4852
matched_path = self.find_location(root, path, prefix)
4953
if matched_path:
50-
if not all:
54+
if not find_all_files:
5155
return matched_path
5256
matches.append(matched_path)
5357
return matches

tethys_compute/static/tethys_compute/css/dask-dashboard.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,10 @@
88
margin-right: 10%;
99
margin-top: 2rem;
1010
margin-bottom: 2rem;
11+
max-height: 58vh;
12+
overflow-y: auto;
13+
}
14+
15+
#dask-dashboard-content > div {
16+
height: 800px;
1117
}

0 commit comments

Comments
 (0)