eodash_catalog 0.2.1__tar.gz → 0.3.0__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.
Files changed (50) hide show
  1. {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/.bumpversion.cfg +1 -1
  2. {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/Dockerfile +1 -1
  3. {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/PKG-INFO +2 -2
  4. {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/pyproject.toml +1 -1
  5. {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/requirements.txt +1 -1
  6. {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/ruff.toml +1 -1
  7. {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/src/eodash_catalog/__about__.py +1 -1
  8. {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/src/eodash_catalog/duration.py +9 -11
  9. {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/src/eodash_catalog/endpoints.py +183 -101
  10. {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/src/eodash_catalog/generate_indicators.py +85 -45
  11. {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/src/eodash_catalog/utils.py +164 -43
  12. {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/tests/test_generate.py +1 -0
  13. {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/tests/test_geoparquet.py +2 -4
  14. {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/tests/testing-catalogs/testing.yaml +17 -2
  15. eodash_catalog-0.3.0/tests/testing-collections/test_cmems.json +68 -0
  16. eodash_catalog-0.3.0/tests/testing-collections/test_cog.json +101 -0
  17. eodash_catalog-0.3.0/tests/testing-collections/test_geodb.yaml +37 -0
  18. eodash_catalog-0.3.0/tests/testing-collections/test_geodb_locations.yaml +56 -0
  19. eodash_catalog-0.3.0/tests/testing-collections/test_geojson.yaml +51 -0
  20. eodash_catalog-0.3.0/tests/testing-collections/test_process.yaml +31 -0
  21. eodash_catalog-0.3.0/tests/testing-collections/test_projection.json +142 -0
  22. eodash_catalog-0.3.0/tests/testing-collections/test_sh_wms.json +68 -0
  23. eodash_catalog-0.3.0/tests/testing-collections/test_sh_wms_locations.json +81 -0
  24. eodash_catalog-0.3.0/tests/testing-collections/test_veda.json +91 -0
  25. eodash_catalog-0.3.0/tests/testing-collections/test_veda_tiles.json +37 -0
  26. {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/.dockerignore +0 -0
  27. {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/.github/workflows/ci.yml +0 -0
  28. {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/.github/workflows/python-publish.yml +0 -0
  29. {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/.gitignore +0 -0
  30. {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/.vscode/extensions.json +0 -0
  31. {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/.vscode/settings.json +0 -0
  32. {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/LICENSE.txt +0 -0
  33. {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/README.md +0 -0
  34. {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/src/eodash_catalog/__init__.py +0 -0
  35. {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/src/eodash_catalog/sh_endpoint.py +0 -0
  36. {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/src/eodash_catalog/stac_handling.py +0 -0
  37. {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/src/eodash_catalog/thumbnails.py +0 -0
  38. {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/tests/__init__.py +0 -0
  39. {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/tests/test-data/regional_forecast.json +0 -0
  40. {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/tests/testing-catalogs/testing-json.json +0 -0
  41. {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/tests/testing-collections/test_CROPOMAT1.yaml +0 -0
  42. {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/tests/testing-collections/test_locations_processing.json +0 -0
  43. {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/tests/testing-collections/test_see_solar_energy.yaml +0 -0
  44. {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/tests/testing-collections/test_tif_demo_1.yaml +0 -0
  45. {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/tests/testing-collections/test_tif_demo_1_json.json +0 -0
  46. {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/tests/testing-collections/test_tif_demo_2.yaml +0 -0
  47. {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/tests/testing-collections/test_wms_no_time.yaml +0 -0
  48. {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/tests/testing-indicators/test_indicator.yaml +0 -0
  49. {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/tests/testing-layers/baselayers.yaml +0 -0
  50. {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/tests/testing-layers/overlays.yaml +0 -0
@@ -1,5 +1,5 @@
1
1
  [bumpversion]
2
- current_version = 0.2.1
2
+ current_version = 0.3.0
3
3
  commit = True
4
4
  tag = True
5
5
  parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+)\.(?P<build>\d+))?
@@ -29,4 +29,4 @@ RUN eodash_catalog --help
29
29
 
30
30
  CMD ["eodash_catalog"]
31
31
 
32
- LABEL version="0.2.1"
32
+ LABEL version="0.3.0"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: eodash_catalog
3
- Version: 0.2.1
3
+ Version: 0.3.0
4
4
  Summary: This package is intended to help create a compatible STAC catalog for the eodash dashboard client. It supports configuration of multiple endpoint types for information extraction.
5
5
  Project-URL: Documentation, https://github.com/eodash/eodash_catalog#readme
6
6
  Project-URL: Issues, https://github.com/eodash/eodash_catalog/issues
@@ -29,7 +29,7 @@ Requires-Dist: requests-oauthlib<1.3.2
29
29
  Requires-Dist: requests<3
30
30
  Requires-Dist: setuptools<71
31
31
  Requires-Dist: spdx-lookup<=0.3.3
32
- Requires-Dist: stac-geoparquet<=0.6.0
32
+ Requires-Dist: stac-geoparquet<=0.7.0
33
33
  Requires-Dist: structlog<22.0
34
34
  Description-Content-Type: text/markdown
35
35
 
@@ -35,7 +35,7 @@ dependencies = [
35
35
  "OWSLib",
36
36
  "spdx-lookup<=0.3.3",
37
37
  "pystac[validation]<2",
38
- "stac_geoparquet<=0.6.0"
38
+ "stac_geoparquet<=0.7.0"
39
39
  ]
40
40
  [project.scripts]
41
41
  eodash_catalog = "eodash_catalog.generate_indicators:process_catalogs"
@@ -13,4 +13,4 @@ stac_geoparquet==0.7.0
13
13
  # dev tooling
14
14
  pytest==8.1.1
15
15
  pytest-watch==4.2.0
16
- ruff==0.4.2
16
+ ruff==0.6.9
@@ -5,4 +5,4 @@ target-version = "py312"
5
5
 
6
6
  [lint]
7
7
  select = ["E", "F", "UP", "B", "SIM", "I", "W", "C90", "ASYNC", "A", "C4", "PERF", "RUF"]
8
- ignore = ["B019", "C901", "UP017", "C419"]
8
+ ignore = ["B019", "C901", "UP017", "C419", "PERF403"]
@@ -1,4 +1,4 @@
1
1
  # SPDX-FileCopyrightText: 2024-present Daniel Santillan <daniel.santillan@eox.at>
2
2
  #
3
3
  # SPDX-License-Identifier: MIT
4
- __version__ = "0.2.1"
4
+ __version__ = "0.3.0"
@@ -34,7 +34,7 @@ def max_days_in_month(year, month):
34
34
  return 31
35
35
  if month in (4, 6, 9, 11):
36
36
  return 30
37
- if ((year % 400) == 0) or ((year % 100) != 0) and ((year % 4) == 0):
37
+ if ((year % 400) == 0) or (((year % 100) != 0) and ((year % 4) == 0)):
38
38
  return 29
39
39
  return 28
40
40
 
@@ -260,11 +260,10 @@ class Duration:
260
260
  the two Durations are considered equal.
261
261
  """
262
262
  if isinstance(other, Duration):
263
- if (self.years * 12 + self.months) == (
264
- other.years * 12 + other.months
265
- ) and self.tdelta == other.tdelta:
266
- return True
267
- return False
263
+ return bool(
264
+ self.years * 12 + self.months == other.years * 12 + other.months
265
+ and self.tdelta == other.tdelta
266
+ )
268
267
  # check if other con be compared against timedelta object
269
268
  # will raise an AssertionError when optimisation is off
270
269
  if self.years == 0 and self.months == 0:
@@ -277,11 +276,10 @@ class Duration:
277
276
  the two Durations are considered not equal.
278
277
  """
279
278
  if isinstance(other, Duration):
280
- if (self.years * 12 + self.months) != (
281
- other.years * 12 + other.months
282
- ) or self.tdelta != other.tdelta:
283
- return True
284
- return False
279
+ return bool(
280
+ self.years * 12 + self.months != other.years * 12 + other.months
281
+ or self.tdelta != other.tdelta
282
+ )
285
283
  # check if other can be compared against timedelta object
286
284
  # will raise an AssertionError when optimisation is off
287
285
  if self.years == 0 and self.months == 0: