[Git][debian-gis-team/glymur][master] 2 commits: New upstream version 0.11.7

Antonio Valentino (@antonio.valentino) gitlab at salsa.debian.org
Thu Sep 22 07:03:41 BST 2022



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


Commits:
5a958b04 by Antonio Valentino at 2022-09-22T05:56:14+00:00
New upstream version 0.11.7
- - - - -
40f92d00 by Antonio Valentino at 2022-09-22T05:57:31+00:00
New upstream release

- - - - -


8 changed files:

- CHANGES.txt
- debian/changelog
- docs/source/conf.py
- docs/source/whatsnew/0.11.rst
- glymur/jp2k.py
- glymur/version.py
- setup.cfg
- tests/test_writing_tiles.py


Changes:

=====================================
CHANGES.txt
=====================================
@@ -1,4 +1,13 @@
-September 12, 2022 - v0.11.5
+September 16, 2022 - v0.11.7
+    Error out early when writing 1x1 tile-by-tile
+
+September 16, 2022 - v0.11.6post2
+    Do not install test, test.data packages
+
+September 13, 2022 - v0.11.6post1
+    Fix Changelog regarding v0.11.6
+
+September 12, 2022 - v0.11.6
     Fix reads where COD segment not at index[2]
     This fix not included in 0.11.5
 


=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+glymur (0.11.7-1) unstable; urgency=medium
+
+  * New upstream release.
+
+ -- Antonio Valentino <antonio.valentino at tiscali.it>  Thu, 22 Sep 2022 05:57:23 +0000
+
 glymur (0.11.6-1) unstable; urgency=medium
 
   * New upstream release.


=====================================
docs/source/conf.py
=====================================
@@ -78,7 +78,7 @@ copyright = '2013-2022, John Evans'
 # The short X.Y version.
 version = '0.11'
 # The full version, including alpha/beta/rc tags.
-release = '0.11.6'
+release = '0.11.7'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.


=====================================
docs/source/whatsnew/0.11.rst
=====================================
@@ -2,43 +2,58 @@
 Changes in glymur 0.11
 ######################
 
+*****************
+Changes in 0.11.7
+*****************
+    * Error out early when writing 1x1 tile-by-tile
+
+**********************
+Changes in 0.11.6post2
+**********************
+    * Do not install issue of tests, tests.data packages
+
+**********************
+Changes in 0.11.6post1
+**********************
+    * Fix release number problem
+
 *****************
 Changes in 0.11.6
 *****************
-    * Fix reads where COD segment not at index[2].
-    * This fix not included in 0.11.5.
+    * Fix reads where COD segment not at index[2]
+    * This fix not included in 0.11.5
 
 *****************
 Changes in 0.11.5
 *****************
-    * Fix reads where COD segment not at index[2].
+    * Fix reads where COD segment not at index[2]
 
 *****************
 Changes in 0.11.4
 *****************
-    * Fix ResolutionBox with tiff2jp2.
+    * Fix ResolutionBox with tiff2jp2
 
 *****************
 Changes in 0.11.3
 *****************
-    * Fix placement of ResolutionBox.
+    * Fix placement of ResolutionBox
 
 *****************
 Changes in 0.11.2
 *****************
-    * Relax requirement on ResolutionBox number of child boxes.
+    * Relax requirement on ResolutionBox number of child boxes
 
 *****************
 Changes in 0.11.1
 *****************
-    * Improve efficiency of striped TIFF to tiled JP2 conversion.
+    * Improve efficiency of striped TIFF to tiled JP2 conversion
 
 
 *****************
 Changes in 0.11.0
 *****************
 
-    * Add options for supporting ResolutionBoxes.
-    * Fix ctypes interface to C library on windows.
-    * Add option to convert XMLPacket into UUID box.
-    * Add option for excluding tags from Exif UUID box.
+    * Add options for supporting ResolutionBoxes
+    * Fix ctypes interface to C library on windows
+    * Add option to convert XMLPacket into UUID box
+    * Add option for excluding tags from Exif UUID box


=====================================
glymur/jp2k.py
=====================================
@@ -586,6 +586,14 @@ class Jp2k(Jp2kBox):
         Return an object that facilitates writing tile by tile.
         """
 
+        if self.shape[:2] == self.tilesize:
+            msg = (
+                'Do not write an image tile-by-tile '
+                'if there is only one tile in the first place.  '
+                'See issue #586'
+            )
+            raise RuntimeError(msg)
+
         return _TileWriter(self)
 
     def parse(self):


=====================================
glymur/version.py
=====================================
@@ -21,7 +21,7 @@ from .lib import tiff
 
 # Do not change the format of this next line!  Doing so risks breaking
 # setup.py
-version = "0.11.6"
+version = "0.11.7"
 
 version_tuple = parse(version).release
 


=====================================
setup.cfg
=====================================
@@ -1,6 +1,6 @@
 [metadata]
 name = Glymur
-version = 0.11.6
+version = 0.11.7
 author = 'John Evans'
 author_email = "John Evans" <john.g.evans.ne at gmail.com>
 license = 'MIT'
@@ -43,3 +43,8 @@ glymur =
     data/*.jp2
     data/*.jpx
     data/*.j2k
+
+[options.packages.find]
+exclude =
+    tests
+    tests.*


=====================================
tests/test_writing_tiles.py
=====================================
@@ -217,3 +217,24 @@ class TestSuite(fixtures.TestCommon):
             for seg in codestream.segment
         )
         self.assertTrue(at_least_one_plt)
+
+    def test_1x1_tile(self):
+        """
+        SCENARIO:  Write an image that is tiled 1x1.
+
+        EXPECTED RESULT:  RuntimeError, as this triggers an unresolved
+        bug, issue586.
+        """
+        j2k_data = fixtures.skimage.data.astronaut()
+
+        shape = (
+            j2k_data.shape[0], j2k_data.shape[1], j2k_data.shape[2]
+        )
+        tilesize = (j2k_data.shape[0], j2k_data.shape[1])
+
+        j = Jp2k(
+            self.temp_j2k_filename, shape=shape, tilesize=tilesize,
+        )
+        with self.assertRaises(RuntimeError):
+            for tw in j.get_tilewriters():
+                tw[:] = j2k_data



View it on GitLab: https://salsa.debian.org/debian-gis-team/glymur/-/compare/46b835fd1621e4fc7d72ba8daf327f4a0ebda026...40f92d009c82688b4e705778592cc4c1d8896242

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/glymur/-/compare/46b835fd1621e4fc7d72ba8daf327f4a0ebda026...40f92d009c82688b4e705778592cc4c1d8896242
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/20220922/763cb77e/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list