Skip to content

Commits on Source 5

## 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 (1.3.1+dfsg-1) unstable; urgency=medium
* New upstream release.
* debian/patches:
- refresh all patches
-- Antonio Valentino <antonio.valentino@tiscali.it> Sun, 10 Nov 2019 08:04:12 +0000
pycoast (1.3.0+dfsg-1) unstable; urgency=medium
[ Bas Couwenberg ]
......
......@@ -7,7 +7,7 @@ Subject: Skip tests that use shapes
1 file changed, 2 insertions(+)
diff --git a/pycoast/tests/test_pycoast.py b/pycoast/tests/test_pycoast.py
index 98ea288..862b647 100644
index 093100d..4f45490 100644
--- a/pycoast/tests/test_pycoast.py
+++ b/pycoast/tests/test_pycoast.py
@@ -357,6 +357,7 @@ class TestPIL(TestPycoast):
......
......@@ -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')
......
......@@ -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):
......
......@@ -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
......