[Git][debian-gis-team/pyorbital][master] 4 commits: New upstream version 1.8.2

Antonio Valentino (@antonio.valentino) gitlab at salsa.debian.org
Sat Feb 10 09:07:49 GMT 2024



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


Commits:
b4b5d78c by Antonio Valentino at 2024-02-10T09:02:25+00:00
New upstream version 1.8.2
- - - - -
babeb692 by Antonio Valentino at 2024-02-10T09:02:25+00:00
Update upstream source from tag 'upstream/1.8.2'

Update to upstream version '1.8.2'
with Debian dir aa8945e034e4a5bdec647ea21a5549be15133999
- - - - -
5221e1b2 by Antonio Valentino at 2024-02-10T09:02:52+00:00
New upstream release

- - - - -
b9bb4c23 by Antonio Valentino at 2024-02-10T09:03:54+00:00
Set distribution to unstable

- - - - -


8 changed files:

- .github/workflows/ci.yaml
- CHANGELOG.md
- debian/changelog
- doc/source/index.rst
- pyorbital/etc/platforms.txt
- pyorbital/tests/test_tlefile.py
- pyorbital/tlefile.py
- pyorbital/version.py


Changes:

=====================================
.github/workflows/ci.yaml
=====================================
@@ -46,7 +46,7 @@ jobs:
           CONDA_PREFIX=$(python -c "import sys; print(sys.prefix)")
           echo "CONDA_PREFIX=$CONDA_PREFIX" >> $GITHUB_ENV
 
-      - uses: actions/cache at v3
+      - uses: actions/cache at v4
         with:
           path: ${{ env.CONDA_PREFIX }}
           key: ${{ matrix.os }}-${{matrix.python-version}}-conda-${{ hashFiles('continuous_integration/environment.yaml') }}-${{ env.DATE }}-${{matrix.experimental}}-${{ env.CACHE_NUMBER }}


=====================================
CHANGELOG.md
=====================================
@@ -1,3 +1,25 @@
+## Version 1.8.2 (2024/02/05)
+
+### Issues Closed
+
+* [Issue 140](https://github.com/pytroll/pyorbital/issues/140) - pyorbital cannot read TLE for MTG-I1 / Meteosat-12 ([PR 141](https://github.com/pytroll/pyorbital/pull/141) by [@gerritholl](https://github.com/gerritholl))
+* [Issue 139](https://github.com/pytroll/pyorbital/issues/139) - `Orbital` cannot get TLEs from the internet
+
+In this release 2 issues were closed.
+
+### Pull Requests Merged
+
+#### Bugs fixed
+
+* [PR 143](https://github.com/pytroll/pyorbital/pull/143) - Fix a bug in using TLES env variable
+
+#### Features added
+
+* [PR 141](https://github.com/pytroll/pyorbital/pull/141) - Add Meteosat-12 to platforms.txt ([140](https://github.com/pytroll/pyorbital/issues/140))
+
+In this release 2 pull requests were closed.
+
+
 ## Version 1.8.1 (2024/01/05)
 
 ### Pull Requests Merged


=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+pyorbital (1.8.2-1) unstable; urgency=medium
+
+  * New upstream release.
+
+ -- Antonio Valentino <antonio.valentino at tiscali.it>  Sat, 10 Feb 2024 09:03:41 +0000
+
 pyorbital (1.8.1-1) unstable; urgency=medium
 
   * New upstream release.


=====================================
doc/source/index.rst
=====================================
@@ -79,9 +79,14 @@ Pyorbital has a module for parsing NORAD TLE-files
     >>> tle.inclination
     99.043499999999995
 
-If no path is provided pyorbital first tries to read any local TLE files in the
-directory given by the environment variable :envvar:`TLES`. If this variable is not
-set Pyorbital will try get the earth observation TLE files over the internet
+If no path is provided pyorbital first tries to read any local TLE files defined by the
+environment variable :envvar:`TLES` giving a glob pattern that can be used to retrieve all relevant files:
+
+.. code::
+
+   TLES=/path/to/tle_files/*/tle*txt
+
+If this variable is not set Pyorbital will try get the earth observation TLE files over the internet
 from `celestrak`_. Note this downloading only happens if no
 specific TLE file is provided or if the :envvar:`TLES` environment variable is not set.
 
@@ -179,9 +184,9 @@ The astronomy module enables computation of certain parameters of interest for s
    for instance. Also, it may not be sustainable in a production environment.
 
    However, it is possible to let Pyorbital look for the necessary and more
-   optimal TLE data locally, by specifying the directory where such local TLE
-   files are located. If the TLES environment variable is set to point at an
-   existing local directory Pyorbital will first search for the needed TLEs
+   optimal TLE data locally, by specifying locations where such local TLE
+   files are located. If the TLES environment variable is set to a glob pattern to
+   local locations, Pyorbital will first search for the needed TLEs
    there. This can both be useful in an operational setup where access to the
    internet is restricted, and when processing old/historic satellite data.
 


=====================================
pyorbital/etc/platforms.txt
=====================================
@@ -48,6 +48,7 @@ Meteosat-8 27509
 Meteosat-9 28912
 Meteosat-10 38552
 Meteosat-11 40732
+Meteosat-12 54743
 Metop-A 29499
 Metop-B 38771
 Metop-C 43689


=====================================
pyorbital/tests/test_tlefile.py
=====================================
@@ -132,9 +132,9 @@ def mock_env_tles_missing(monkeypatch):
 
 
 @pytest.fixture
-def mock_env_tles(monkeypatch):
+def mock_env_tles(monkeypatch, fake_local_tles_dir):
     """Mock environment variable TLES."""
-    monkeypatch.setenv('TLES', '/path/to/local/tles')
+    monkeypatch.setenv('TLES', os.path.join(fake_local_tles_dir, '*'))
 
 
 def test_get_config_path_no_env_defined(caplog, mock_env_ppp_config_dir_missing):
@@ -264,10 +264,10 @@ def test_get_local_tle_path_tle_env_missing(mock_env_tles_missing):
     assert res is None
 
 
-def test_get_local_tle_path(mock_env_tles):
+def test_get_local_tle_path(mock_env_tles, fake_local_tles_dir):
     """Test getting the path to local TLE files."""
     res = _get_local_tle_path_from_env()
-    assert res == '/path/to/local/tles'
+    assert res == os.path.join(fake_local_tles_dir, "*")
 
 
 def test_get_uris_and_open_func_using_tles_env(caplog, fake_local_tles_dir, monkeypatch):
@@ -277,7 +277,7 @@ def test_get_uris_and_open_func_using_tles_env(caplog, fake_local_tles_dir, monk
     """
     from collections.abc import Sequence
 
-    monkeypatch.setenv('TLES', str(fake_local_tles_dir))
+    monkeypatch.setenv('TLES', str(os.path.join(fake_local_tles_dir, "*")))
     with caplog.at_level(logging.DEBUG):
         uris, _ = _get_uris_and_open_func()
 


=====================================
pyorbital/tlefile.py
=====================================
@@ -325,7 +325,7 @@ def _get_uris_and_open_func(tle_file=None):
     elif local_tle_path:
         # TODO: get the TLE file closest in time to the actual satellite
         # overpass, NOT the latest!
-        list_of_tle_files = glob.glob(os.path.join(local_tle_path, '*'))
+        list_of_tle_files = glob.glob(local_tle_path)
         uris = (max(list_of_tle_files, key=os.path.getctime), )
         LOGGER.debug("Reading TLE from %s", uris[0])
         open_func = _open


=====================================
pyorbital/version.py
=====================================
@@ -26,9 +26,9 @@ def get_keywords():
     # setup.py/versioneer.py will grep for the variable names, so they must
     # each be defined on a line of their own. _version.py will just call
     # get_keywords().
-    git_refnames = " (HEAD -> main, tag: v1.8.1)"
-    git_full = "e76264b5d972a620d1abf7ef3e1627eb628b1120"
-    git_date = "2024-01-05 08:23:50 -0600"
+    git_refnames = " (tag: v1.8.2)"
+    git_full = "18340caf3a5ac94afad70b1a0016c3a8b294124c"
+    git_date = "2024-02-05 15:54:10 +0100"
     keywords = {"refnames": git_refnames, "full": git_full, "date": git_date}
     return keywords
 



View it on GitLab: https://salsa.debian.org/debian-gis-team/pyorbital/-/compare/829ef1853e2a9a470628021d12fdf1e53c55680b...b9bb4c232fa38d74a05620b8619c51b85a7cc8eb

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/pyorbital/-/compare/829ef1853e2a9a470628021d12fdf1e53c55680b...b9bb4c232fa38d74a05620b8619c51b85a7cc8eb
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/20240210/035a885e/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list