titiler-xarray 2.0.0b2__tar.gz → 2.0.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -48,6 +48,7 @@ htmlcov/
48
48
  .cache
49
49
  nosetests.xml
50
50
  coverage.xml
51
+ titiler-*.xml
51
52
  *.cover
52
53
  .hypothesis/
53
54
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: titiler-xarray
3
- Version: 2.0.0b2
3
+ Version: 2.0.2
4
4
  Summary: Xarray plugin for TiTiler.
5
5
  Project-URL: Homepage, https://developmentseed.org/titiler/
6
6
  Project-URL: Documentation, https://developmentseed.org/titiler/
@@ -23,8 +23,10 @@ Classifier: Programming Language :: Python :: 3.14
23
23
  Classifier: Topic :: Scientific/Engineering :: GIS
24
24
  Requires-Python: >=3.11
25
25
  Requires-Dist: obstore
26
+ Requires-Dist: pydantic-settings~=2.0
26
27
  Requires-Dist: rioxarray
27
- Requires-Dist: titiler-core==2.0.0b2
28
+ Requires-Dist: starlette-cramjam<1.0,>=0.4
29
+ Requires-Dist: titiler-core==2.0.2
28
30
  Requires-Dist: xarray
29
31
  Requires-Dist: zarr<4.0,>=3.1
30
32
  Provides-Extra: fs
@@ -29,11 +29,13 @@ classifiers = [
29
29
  ]
30
30
  dynamic = ["version"]
31
31
  dependencies = [
32
- "titiler-core==2.0.0b2",
32
+ "titiler-core==2.0.2", # x-release-please-version
33
33
  "xarray",
34
34
  "rioxarray",
35
35
  "obstore",
36
36
  "zarr>=3.1,<4.0",
37
+ "starlette-cramjam>=0.4,<1.0",
38
+ "pydantic-settings~=2.0",
37
39
  ]
38
40
 
39
41
  [project.optional-dependencies]
@@ -67,13 +69,6 @@ test = [
67
69
  "aiohttp",
68
70
  "requests",
69
71
  ]
70
- upstream = [
71
- 'xarray @ git+https://github.com/pydata/xarray',
72
- 'universal_pathlib @ git+https://github.com/fsspec/universal_pathlib',
73
- 'numcodecs @ git+https://github.com/zarr-developers/numcodecs',
74
- 'ujson @ git+https://github.com/ultrajson/ultrajson',
75
- 'zarr @ git+https://github.com/zarr-developers/zarr-python',
76
- ]
77
72
 
78
73
  [project.urls]
79
74
  Homepage = "https://developmentseed.org/titiler/"
@@ -0,0 +1,3 @@
1
+ """titiler.xarray"""
2
+
3
+ __version__ = "2.0.2" # x-release-please-version
@@ -35,7 +35,7 @@ class XarrayIOParams(DefaultDependency):
35
35
  SelDimStr = Annotated[
36
36
  str,
37
37
  StringConstraints(
38
- pattern=r"^[^=]+=((nearest|pad|ffill|backfill|bfill)::)?[^=::]+$"
38
+ pattern=r"^[^=]+=((nearest|pad|ffill|backfill|bfill)::)?([^=:]|:[^:])+$"
39
39
  ),
40
40
  ]
41
41
 
@@ -348,9 +348,9 @@ def fs_open_dataset( # noqa: C901
348
348
 
349
349
  # NetCDF arguments
350
350
  if any(src_path.lower().endswith(ext) for ext in [".nc", ".nc4"]):
351
- assert (
352
- h5netcdf is not None
353
- ), "'h5netcdf' must be installed to read NetCDF dataset"
351
+ assert h5netcdf is not None, (
352
+ "'h5netcdf' must be installed to read NetCDF dataset"
353
+ )
354
354
 
355
355
  xr_open_args.update(
356
356
  {
@@ -194,7 +194,7 @@ if api_settings.cors_origins:
194
194
 
195
195
  app.add_middleware(
196
196
  CompressionMiddleware,
197
- minimum_size=0,
197
+ minimum_size=1,
198
198
  exclude_mediatype={
199
199
  "image/jpeg",
200
200
  "image/jpg",
@@ -1,3 +0,0 @@
1
- """titiler.xarray"""
2
-
3
- __version__ = "2.0.0b2"
File without changes