Skip to content

Commit a1dad88

Browse files
committed
Limit pycdfpp compatibility to 0.4.6
Signed-off-by: Alexis Jeandet <[email protected]>
1 parent c00857f commit a1dad88

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

pyistp/_impl.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ def _update_data_vars_lis(self):
107107
'PARAMETER_TYPE') or "").lower() # another cluster CSA crap
108108
if (var_type == 'data' or param_type == 'data') and not self.cdf.is_char(var):
109109
self.data_variables.append(var)
110+
if len(self.data_variables) == 0:
111+
log.warning(f"{ISTP_NOT_COMPLIANT_W}: No data variable found, this is suspicious")
110112

111113
def data_variable(self, var_name) -> DataVariable:
112114
return _load_data_var(self.cdf, var_name)

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ maintainers = [
1515
{name = "Alexis Jeandet", email = "[email protected]" }
1616
]
1717

18-
requires-python=">=3.7"
18+
requires-python=">=3.8"
1919
license = {file="COPYING"}
2020
readme = "README.rst"
2121
classifiers = [
@@ -24,11 +24,11 @@ classifiers = [
2424
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
2525
"Natural Language :: English",
2626
"Programming Language :: Python :: 3",
27-
"Programming Language :: Python :: 3.7",
2827
"Programming Language :: Python :: 3.8",
2928
"Programming Language :: Python :: 3.9",
3029
"Programming Language :: Python :: 3.10",
30+
"Programming Language :: Python :: 3.11",
3131
]
32-
dependencies = ['pycdfpp']
32+
dependencies = ['pycdfpp<=0.4.6']
3333
[project.urls]
3434
homepage = "https://github.com/SciQLop/PyISTP"

0 commit comments

Comments
 (0)