[Git][debian-gis-team/asf-search][master] 5 commits: New upstream version 7.1.4

Antonio Valentino (@antonio.valentino) gitlab at salsa.debian.org
Thu Jul 18 07:09:06 BST 2024



Antonio Valentino pushed to branch master at Debian GIS Project / asf-search


Commits:
bcf8c6fe by Antonio Valentino at 2024-07-18T05:45:11+00:00
New upstream version 7.1.4
- - - - -
7ba5ad10 by Antonio Valentino at 2024-07-18T05:45:17+00:00
Update upstream source from tag 'upstream/7.1.4'

Update to upstream version '7.1.4'
with Debian dir a8571c82fade28ac4caa92130a4e15ebf5b0c9f9
- - - - -
b441f015 by Antonio Valentino at 2024-07-18T05:46:55+00:00
New upstream release

- - - - -
5803c9bc by Antonio Valentino at 2024-07-18T05:52:53+00:00
Add dependency on python3 dateutil

- - - - -
c2085ea6 by Antonio Valentino at 2024-07-18T05:53:00+00:00
Set distribution to unstable

- - - - -


7 changed files:

- CHANGELOG.md
- asf_search/CMR/translate.py
- asf_search/baseline/calc.py
- asf_search/baseline/stack.py
- debian/changelog
- debian/control
- setup.py


Changes:

=====================================
CHANGELOG.md
=====================================
@@ -25,6 +25,13 @@ and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
 -
 
 -->
+------
+## [v7.1.4](https://github.com/asfadmin/Discovery-asf_search/compare/v7.1.3...v7.1.4)
+### Changed
+- replaces `ciso8601` package with `dateutil` for package wheel compatibility. `ciso8601` used when installed via `extra` dependency
+### Fixed
+- Fixes syntax warning with escaped slash in `translate.py`
+
 ------
 ## [v7.1.3](https://github.com/asfadmin/Discovery-asf_search/compare/v7.1.2...v7.1.3)
 ### Fixed


=====================================
asf_search/CMR/translate.py
=====================================
@@ -9,9 +9,13 @@ from shapely.geometry import Polygon
 from shapely.geometry.base import BaseGeometry
 from .field_map import field_map
 from .datasets import collections_per_platform
-import ciso8601
 import logging
 
+try:
+    from ciso8601 import parse_datetime
+except ImportError:
+    from dateutil.parser import parse as parse_datetime
+
 
 def translate_opts(opts: ASFSearchOptions) -> List:
     # Need to add params which ASFSearchOptions cant support (like temporal),
@@ -22,7 +26,7 @@ def translate_opts(opts: ASFSearchOptions) -> List:
     # intersectsWith, temporal, and other keys you don't want to escape, so keep whitelist instead
     for escape_commas in ["campaign"]:
         if escape_commas in dict_opts:
-            dict_opts[escape_commas] = dict_opts[escape_commas].replace(",", "\,")
+            dict_opts[escape_commas] = dict_opts[escape_commas].replace(",", "\\,")
 
     # Special case to unravel WKT field a little for compatibility
     if "intersectsWith" in dict_opts:
@@ -158,7 +162,7 @@ def try_parse_date(value: str) -> Optional[str]:
         return None
 
     try:
-        date = ciso8601.parse_datetime(value)
+        date = parse_datetime(value)
     except ValueError:
         return None
     


=====================================
asf_search/baseline/calc.py
=====================================
@@ -1,10 +1,14 @@
+from asf_search import ASFProduct
 from math import sqrt, cos, sin, radians
 from typing import List
 
 import numpy as np
-from ciso8601 import parse_datetime
 
-from asf_search import ASFProduct
+try:
+    from ciso8601 import parse_datetime
+except ImportError:
+    from dateutil.parser import parse as parse_datetime
+
 # WGS84 constants
 a = 6378137
 f = pow((1.0 - 1 / 298.257224), 2)


=====================================
asf_search/baseline/stack.py
=====================================
@@ -1,10 +1,12 @@
+from asf_search import ASFProduct, ASFStackableProduct, ASFSearchResults
 from typing import Tuple, List
-from ciso8601 import parse_datetime
 import pytz
-
 from .calc import calculate_perpendicular_baselines
-from asf_search import ASFProduct, ASFStackableProduct, ASFSearchResults
 
+try:
+    from ciso8601 import parse_datetime
+except ImportError:
+    from dateutil.parser import parse as parse_datetime
 
 def get_baseline_from_stack(reference: ASFProduct, stack: ASFSearchResults) -> Tuple[ASFSearchResults, List[dict]]:
     warnings = []


=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+asf-search (7.1.4-1) unstable; urgency=medium
+
+  * New upstream rlease.
+  * debian/control:
+    - Add dependenncy on python3-dateutil.
+
+ -- Antonio Valentino <antonio.valentino at tiscali.it>  Thu, 18 Jul 2024 05:51:42 +0000
+
 asf-search (7.1.3-1) unstable; urgency=medium
 
   * New upstream release.


=====================================
debian/control
=====================================
@@ -9,6 +9,7 @@ Build-Depends: debhelper-compat (= 13),
                python3-all,
                python3-ciso8601,
                python3-dateparser,
+               python3-dateutil,
                python3-importlib-metadata,
                python3-numpy,
                python3-remotezip,
@@ -31,7 +32,7 @@ Description: Python wrapper for ASF's SearchAPI
 
 Package: python3-asf-search
 Architecture: all
-Depends: ${misc:Depends},
-         ${python3:Depends}
+Depends: ${python3:Depends},
+	 ${misc:Depends}
 Description: ${source:Synopsis}
  ${source:Extended-Description}


=====================================
setup.py
=====================================
@@ -8,8 +8,8 @@ requirements = [
     "importlib_metadata",
     "numpy",
     "dateparser",
+    "python-dateutil",
     "tenacity == 8.2.2",
-    "ciso8601"
 ]
 
 test_requirements = [
@@ -25,7 +25,8 @@ test_requirements = [
 ]
 
 extra_requirements = [
-    "remotezip>=0.10.0"
+    "remotezip>=0.10.0",
+    "ciso8601",
 ]
 
 



View it on GitLab: https://salsa.debian.org/debian-gis-team/asf-search/-/compare/5dc4a434626bc4ad3a066ea65f2492f53c69fb6b...c2085ea67debb18f2a42085b8fe372409bc8a939

-- 
This project does not include diff previews in email notifications.
View it on GitLab: https://salsa.debian.org/debian-gis-team/asf-search/-/compare/5dc4a434626bc4ad3a066ea65f2492f53c69fb6b...c2085ea67debb18f2a42085b8fe372409bc8a939
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20240718/ce738b40/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list