[Git][debian-gis-team/pyorbital][master] 5 commits: New upstream version 1.9.2

Antonio Valentino (@antonio.valentino) gitlab at salsa.debian.org
Mon Dec 16 17:30:32 GMT 2024



Antonio Valentino pushed to branch master at Debian GIS Project / pyorbital


Commits:
29ecb9be by Antonio Valentino at 2024-12-16T17:21:26+00:00
New upstream version 1.9.2
- - - - -
9c013336 by Antonio Valentino at 2024-12-16T17:21:28+00:00
Update upstream source from tag 'upstream/1.9.2'

Update to upstream version '1.9.2'
with Debian dir a6c03f87bfc3334d21bb40b3029638666c217627
- - - - -
3266bea5 by Antonio Valentino at 2024-12-16T17:22:07+00:00
New upstream release

- - - - -
8fb92445 by Antonio Valentino at 2024-12-16T17:24:28+00:00
Refresh all patches

- - - - -
3cd9a602 by Antonio Valentino at 2024-12-16T17:25:30+00:00
Set distribution to unstable

- - - - -


8 changed files:

- .github/workflows/deploy-sdist.yaml
- .pre-commit-config.yaml
- CHANGELOG.md
- debian/changelog
- debian/patches/0002-Fix-broken-test-on-i386.patch
- pyorbital/orbital.py
- pyorbital/tests/test_orbital.py
- pyproject.toml


Changes:

=====================================
.github/workflows/deploy-sdist.yaml
=====================================
@@ -21,7 +21,7 @@ jobs:
 
       - name: Publish package to PyPI
         if: github.event.action == 'published'
-        uses: pypa/gh-action-pypi-publish at v1.12.2
+        uses: pypa/gh-action-pypi-publish at v1.12.3
         with:
           user: __token__
           password: ${{ secrets.pypi_password }}


=====================================
.pre-commit-config.yaml
=====================================
@@ -3,7 +3,7 @@ fail_fast: false
 repos:
   - repo: https://github.com/astral-sh/ruff-pre-commit
     # Ruff version.
-    rev: 'v0.7.2'
+    rev: 'v0.8.1'
     hooks:
       - id: ruff
   - repo: https://github.com/pre-commit/pre-commit-hooks
@@ -15,7 +15,7 @@ repos:
       - id: check-yaml
         args: [--unsafe]
   - repo: https://github.com/PyCQA/bandit
-    rev: '1.7.10' # Update me!
+    rev: '1.8.0' # Update me!
     hooks:
       - id: bandit
         args: [--ini, .bandit]
@@ -28,7 +28,6 @@ repos:
           - types-setuptools
           - types-PyYAML
           - types-requests
-          - types-pytz
         args: ["--python-version", "3.10", "--ignore-missing-imports"]
   - repo: https://github.com/pycqa/isort
     rev: 5.13.2


=====================================
CHANGELOG.md
=====================================
@@ -1,3 +1,14 @@
+## Version 1.9.2 (2024/12/12)
+
+### Pull Requests Merged
+
+#### Bugs fixed
+
+* [PR 175](https://github.com/pytroll/pyorbital/pull/175) - Remove pytz dependency
+
+In this release 1 pull request was closed.
+
+
 ## Version 1.9.1 (2024/11/29)
 
 ### Pull Requests Merged


=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+pyorbital (1.9.2-1) unstable; urgency=medium
+
+  * New upstream release.
+  * debian/patches:
+    - Refresh all patches.
+
+ -- Antonio Valentino <antonio.valentino at tiscali.it>  Mon, 16 Dec 2024 17:25:08 +0000
+
 pyorbital (1.9.1-2) unstable; urgency=medium
 
   * debian/patches:


=====================================
debian/patches/0002-Fix-broken-test-on-i386.patch
=====================================
@@ -8,10 +8,10 @@ Forwarded: https://github.com/pytroll/pyorbital/pull/150
  1 file changed, 14 insertions(+), 8 deletions(-)
 
 diff --git a/pyorbital/tests/test_orbital.py b/pyorbital/tests/test_orbital.py
-index dbc5762..2659d73 100644
+index a05af24..27efdbf 100644
 --- a/pyorbital/tests/test_orbital.py
 +++ b/pyorbital/tests/test_orbital.py
-@@ -214,19 +214,25 @@ class TestGetObserverLook(unittest.TestCase):
+@@ -213,19 +213,25 @@ class TestGetObserverLook(unittest.TestCase):
          """Set up the test environment."""
          self.t = datetime(2018, 1, 1, 0, 0, 0)
          self.sat_lon = np.array([[-89.5, -89.4, -89.5, -89.4],


=====================================
pyorbital/orbital.py
=====================================
@@ -26,11 +26,10 @@
 
 import logging
 import warnings
-from datetime import datetime, timedelta
+from datetime import datetime, timedelta, timezone
 from functools import partial
 
 import numpy as np
-import pytz
 from scipy import optimize
 
 from pyorbital import astronomy, dt2np, tlefile
@@ -1230,7 +1229,7 @@ def _get_tz_unaware_utctime(utc_time):
     UTC, or a timezone aware datetime object in UTC.
     """
     if isinstance(utc_time, datetime):
-        if utc_time.tzinfo and utc_time.tzinfo != pytz.utc:
+        if utc_time.tzinfo and utc_time.tzinfo != timezone.utc:
             raise ValueError("UTC time expected! Parsing a timezone aware datetime object requires it to be UTC!")
         return utc_time.replace(tzinfo=None)
 


=====================================
pyorbital/tests/test_orbital.py
=====================================
@@ -23,12 +23,11 @@
 """Test the geoloc orbital."""
 
 import unittest
-from datetime import datetime, timedelta
+from datetime import datetime, timedelta, timezone
 from unittest import mock
 
 import numpy as np
 import pytest
-import pytz
 
 from pyorbital import orbital
 
@@ -415,7 +414,7 @@ class TestRegressions(unittest.TestCase):
 
 @pytest.mark.parametrize("dtime",
                          [datetime(2024, 6, 25, 11, 0, 18),
-                          datetime(2024, 6, 25, 11, 5, 0, 0, pytz.UTC),
+                          datetime(2024, 6, 25, 11, 5, 0, 0, timezone.utc),
                           np.datetime64("2024-06-25T11:10:00.000000")
                           ]
                          )
@@ -432,7 +431,7 @@ def test_get_last_an_time_scalar_input(dtime):
 
 
 @pytest.mark.parametrize("dtime",
-                         [datetime(2024, 6, 25, 11, 5, 0, 0, pytz.timezone("Europe/Stockholm")),
+                         [datetime(2024, 6, 25, 11, 5, 0, 0, timezone(timedelta(hours=1))),
                           ]
                          )
 def test_get_last_an_time_wrong_input(dtime):


=====================================
pyproject.toml
=====================================
@@ -8,7 +8,6 @@ authors = [
 dependencies = ["numpy>=1.19.0",
                 "scipy",
                 "requests",
-                "pytz",
                 "defusedxml",
                 ]
 readme = "README.md"



View it on GitLab: https://salsa.debian.org/debian-gis-team/pyorbital/-/compare/1f4c3823ce58afc1f7d2f96770607b8e7b462f88...3cd9a602591ffe12c29142c68d1888b29036f1a8

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/pyorbital/-/compare/1f4c3823ce58afc1f7d2f96770607b8e7b462f88...3cd9a602591ffe12c29142c68d1888b29036f1a8
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/20241216/35888156/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list