[Git][debian-gis-team/pycoast][upstream] New upstream version 1.3.1+dfsg

Antonio Valentino gitlab at salsa.debian.org
Sun Nov 10 08:09:04 GMT 2019



Antonio Valentino pushed to branch upstream at Debian GIS Project / pycoast


Commits:
182f41a3 by Antonio Valentino at 2019-11-10T08:01:20Z
New upstream version 1.3.1+dfsg
- - - - -


4 changed files:

- CHANGELOG.md
- pycoast/cw_base.py
- pycoast/tests/test_pycoast.py
- pycoast/version.py


Changes:

=====================================
CHANGELOG.md
=====================================
@@ -1,3 +1,14 @@
+## Version 1.3.1 (2019/11/07)
+
+### Pull Requests Merged
+
+#### Bugs fixed
+
+* [PR 37](https://github.com/pytroll/pycoast/pull/37) - Fix the add overlay function to accept `minor_is_tick` as a boolean
+
+In this release 1 pull request was closed.
+
+
 ## Version 1.3.0 (2019/10/25)
 
 ### Issues Closed


=====================================
pycoast/cw_base.py
=====================================
@@ -850,9 +850,9 @@ class ContourWriterBase(object):
                     font = truetype(font, font_size)
             fill = overlays['grid'].get('fill', None)
             minor_outline = overlays['grid'].get('minor_outline', 'white')
-            minor_is_tick = overlays['grid'].get('minor_is_tick',
-                                                 'true').lower() in \
-                ['true', 'yes', '1']
+            minor_is_tick = overlays['grid'].get('minor_is_tick', True)
+            if isinstance(minor_is_tick, str):
+                minor_is_tick = minor_is_tick.lower() in ['true', 'yes', '1']
             lon_placement = overlays['grid'].get('lon_placement', 'tb')
             lat_placement = overlays['grid'].get('lat_placement', 'lr')
 


=====================================
pycoast/tests/test_pycoast.py
=====================================
@@ -812,6 +812,13 @@ class TestFromConfig(TestPycoast):
         self.assertNotEqual(os.path.getmtime(cache_filename), mtime)
         self.assertTrue(fft_metric(euro_data, res),
                         'Writing of contours failed')
+
+        overlays.pop('cache')
+        overlays['grid'] = {'outline': (255, 255, 255), 'outline_opacity': 175,
+                            'minor_outline': (200, 200, 200), 'minor_outline_opacity': 127,
+                            'width': 1.0, 'minor_width': 0.5, 'minor_is_tick': True,
+                            'write_text': True, 'lat_placement': 'lr', 'lon_placement': 'b'}
+        img = cw.add_overlay_from_dict(overlays, area_def)
         os.remove(os.path.join(tmp, 'pycoast_cache_fakearea.png'))
 
     def test_get_resolution(self):


=====================================
pycoast/version.py
=====================================
@@ -23,9 +23,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 -> master, tag: v1.3.0)"
-    git_full = "60a725edca4b3896bcbba8ff67704041fd0e382b"
-    git_date = "2019-10-25 08:39:57 +0200"
+    git_refnames = " (HEAD -> master, tag: v1.3.1)"
+    git_full = "abf499539f3457e9ffe49adabfae3eb247c9fb1f"
+    git_date = "2019-11-07 13:44:51 +0100"
     keywords = {"refnames": git_refnames, "full": git_full, "date": git_date}
     return keywords
 



View it on GitLab: https://salsa.debian.org/debian-gis-team/pycoast/commit/182f41a3e4ac0cc8f8333b82858b1c12fc298cff

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/pycoast/commit/182f41a3e4ac0cc8f8333b82858b1c12fc298cff
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/20191110/ba1b857e/attachment-0001.html>


More information about the Pkg-grass-devel mailing list