[Git][debian-gis-team/pycoast][master] 4 commits: New upstream version 1.2.2+dfsg

Antonio Valentino gitlab at salsa.debian.org
Thu Jan 17 07:12:36 GMT 2019


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


Commits:
a2b056d9 by Antonio Valentino at 2019-01-17T06:58:21Z
New upstream version 1.2.2+dfsg
- - - - -
06714b35 by Antonio Valentino at 2019-01-17T06:58:42Z
Update upstream source from tag 'upstream/1.2.2+dfsg'

Update to upstream version '1.2.2+dfsg'
with Debian dir 97629390ec4b5a527d46d0b34a3c5037e31f3201
- - - - -
4f1e56c1 by Antonio Valentino at 2019-01-17T06:59:46Z
New upstream release

- - - - -
6d9b2822 by Antonio Valentino at 2019-01-17T07:03:05Z
Set distribution to unstable

- - - - -


6 changed files:

- .travis.yml
- CHANGELOG.md
- debian/changelog
- pycoast/cw_base.py
- pycoast/cw_pil.py
- pycoast/version.py


Changes:

=====================================
.travis.yml
=====================================
@@ -5,7 +5,7 @@ env:
   - PYTHON_VERSION=$TRAVIS_PYTHON_VERSION
   - NUMPY_VERSION=stable
   - MAIN_CMD='python setup.py'
-  - CONDA_DEPENDENCIES='sphinx pillow numpy pyproj coveralls coverage mock aggdraw six pyshp'
+  - CONDA_DEPENDENCIES='sphinx pillow pyproj coveralls coverage mock aggdraw six pyshp'
   - PIP_DEPENDENCIES=''
   - SETUP_XVFB=False
   - EVENT_TYPE='push pull_request'
@@ -22,6 +22,9 @@ matrix:
     os: linux
   - env: PYTHON_VERSION=3.6
     os: osx
+  - env: PYTHON_VERSION=3.6
+    os: windows
+    language: bash
 install:
 - git clone --depth 1 git://github.com/astropy/ci-helpers.git
 - source ci-helpers/travis/setup_conda.sh


=====================================
CHANGELOG.md
=====================================
@@ -1,3 +1,14 @@
+## Version 1.2.2 (2019/01/16)
+
+### Pull Requests Merged
+
+#### Bugs fixed
+
+* [PR 24](https://github.com/pytroll/pycoast/pull/24) - Fix default font loading for 'add_grid'
+
+In this release 1 pull request was closed.
+
+
 ## Version 1.2.1 (2018/11/12)
 
 ### Pull Requests Merged


=====================================
debian/changelog
=====================================
@@ -1,8 +1,9 @@
-pycoast (1.2.1+dfsg-2) UNRELEASED; urgency=medium
+pycoast (1.2.2+dfsg-1) unstable; urgency=medium
 
+  * New upstream release.
   * Bump Standards-Version to 4.3.0, no changes.
 
- -- Antonio Valentino <antonio.valentino at tiscali.it>  Tue, 25 Dec 2018 23:00:31 +0100
+ -- Antonio Valentino <antonio.valentino at tiscali.it>  Thu, 17 Jan 2019 07:02:37 +0000
 
 pycoast (1.2.1+dfsg-1) unstable; urgency=medium
 


=====================================
pycoast/cw_base.py
=====================================
@@ -76,6 +76,9 @@ class ContourWriterBase(object):
     def _draw_grid_labels(self, draw, xys, linetype, txt, font, **kwargs):
         """Draw text with default PIL module
         """
+        if font is None:
+            # NOTE: Default font does not use font size in PIL writer
+            font = self._get_font(kwargs.get('outline', 'black'), font, 12)
         placement_def = kwargs[linetype].lower()
         for xy in xys:
             # note xy[0] is xy coordinate pair,
@@ -173,9 +176,6 @@ class ContourWriterBase(object):
                 kwargs['minor_outline_opacity']
             minor_line_kwargs['width'] = kwargs['minor_width']
 
-        # set text fonts
-        if font is None:
-            font = ImageFont.load_default()
         # text margins (at sides of image frame)
         y_text_margin = 4
         x_text_margin = 4


=====================================
pycoast/cw_pil.py
=====================================
@@ -464,4 +464,6 @@ class ContourWriterPIL(ContourWriterBase):
 
     def _get_font(self, outline, font_file, font_size):
         """Return a font."""
+        if font_file is None:
+            return ImageFont.load_default()
         return ImageFont.truetype(font_file, font_size)


=====================================
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.2.1)"
-    git_full = "eb186a0495fe0578f35c30c625ce77d337efd236"
-    git_date = "2018-11-12 13:16:08 -0600"
+    git_refnames = " (HEAD -> master, tag: v1.2.2)"
+    git_full = "5ca4031ada1fadfb61c8dd73259d33c4f69498b4"
+    git_date = "2019-01-16 10:44:14 -0600"
     keywords = {"refnames": git_refnames, "full": git_full, "date": git_date}
     return keywords
 



View it on GitLab: https://salsa.debian.org/debian-gis-team/pycoast/compare/62259fbbefd1d3d5e7cf69d2a72375ac1ca4c2e6...6d9b2822fe42cf016e1ebdf8d90ba5024dba4a02

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/pycoast/compare/62259fbbefd1d3d5e7cf69d2a72375ac1ca4c2e6...6d9b2822fe42cf016e1ebdf8d90ba5024dba4a02
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/20190117/79d06e13/attachment-0001.html>


More information about the Pkg-grass-devel mailing list