[Git][debian-gis-team/pyorbital][upstream] New upstream version 1.9.2
Antonio Valentino (@antonio.valentino)
gitlab at salsa.debian.org
Mon Dec 16 17:30:48 GMT 2024
Antonio Valentino pushed to branch upstream at Debian GIS Project / pyorbital
Commits:
29ecb9be by Antonio Valentino at 2024-12-16T17:21:26+00:00
New upstream version 1.9.2
- - - - -
6 changed files:
- .github/workflows/deploy-sdist.yaml
- .pre-commit-config.yaml
- CHANGELOG.md
- 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
=====================================
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/-/commit/29ecb9be28a1f8aacf680e095d6382bb2eb6986e
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/pyorbital/-/commit/29ecb9be28a1f8aacf680e095d6382bb2eb6986e
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/07e77dd1/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list