[Git][debian-gis-team/pyshp][master] 4 commits: New upstream version 3.0.3

Bas Couwenberg (@sebastic) gitlab at salsa.debian.org
Fri Nov 28 18:05:09 GMT 2025



Bas Couwenberg pushed to branch master at Debian GIS Project / pyshp


Commits:
d2a16732 by Bas Couwenberg at 2025-11-28T18:58:37+01:00
New upstream version 3.0.3
- - - - -
c71ef62c by Bas Couwenberg at 2025-11-28T18:58:46+01:00
Update upstream source from tag 'upstream/3.0.3'

Update to upstream version '3.0.3'
with Debian dir 957f0cc710b360a7bfbe5becad2cafb6b540c2b3
- - - - -
c542c837 by Bas Couwenberg at 2025-11-28T19:00:11+01:00
New upstream release.

- - - - -
bf6e7f39 by Bas Couwenberg at 2025-11-28T19:01:38+01:00
Set distribution to unstable.

- - - - -


6 changed files:

- .github/workflows/run_checks_build_and_test.yml
- README.md
- changelog.txt
- debian/changelog
- pyproject.toml
- src/shapefile.py


Changes:

=====================================
.github/workflows/run_checks_build_and_test.yml
=====================================
@@ -38,7 +38,7 @@ jobs:
     - name: Build wheel from the project repo
       uses: ./.github/actions/build_wheel_and_sdist
 
-  test_on_supported_Pythons:
+  test_on_all_platforms:
     needs: build_wheel_and_sdist
     strategy:
       fail-fast: false
@@ -49,7 +49,8 @@ jobs:
           "3.11",
           "3.12",
           "3.13",
-          "3.14.0-beta.4",
+          "3.14",
+          "3.15-dev",
         ]
         os: [
           "macos-latest",


=====================================
README.md
=====================================
@@ -8,8 +8,8 @@ The Python Shapefile Library (PyShp) reads and writes ESRI Shapefiles in pure Py
 
 - **Author**: [Joel Lawhead](https://github.com/GeospatialPython)
 - **Maintainers**: [Karim Bahgat](https://github.com/karimbahgat)
-- **Version**: 3.0.0
-- **Date**: 3rd August, 2025
+- **Version**: 3.0.3.dev0
+- **Date**: 10th October, 2025
 - **License**: [MIT](https://github.com/GeospatialPython/pyshp/blob/master/LICENSE.TXT)
 
 ## Contents
@@ -92,8 +92,28 @@ part of your geospatial project.
 
 
 # Version Changes
+
+
+## 3.0.3
+
+### Type checking
+- Add optional dependency, "stubs", containing the package "pyshp-stubs" generated with stubgen (to avoid
+including py.typed, and no longer being a single file project).
+
+### Bug fix
+- Prevented UnboundLocalError when reading non-single point M and Z type Shapefiles (@ekawas-vrify).
+
+### Testing.
+- Test PyShp on the Python 3.14 official release (officially released this week, no longer in beta).
+
 ## 3.0.2
 
+### .post1
+- Update version at the top of this Readme file (to make what PyPi users see consistent with the changelog and __version__).
+
+### .post0
+- Re-release to trigger the deploy job to publish PyShp to Pypi
+
 ### Bug fix
 - Deleted py.typed (probably temporarily).  Including the py.typed marker file with a single file package caused type checkers to type check all other libraries installed in the same directory (whether they're typed or not, enforcing type checking for all the adjacent dirs libraries, regardless of the user's intentions for the type checker) (pointed out by @dl1jbe - thanks Thomas).  Discussions will be started about a longer term fix, possibly e.g. possibly refactoring to a package, and restoring py.typed.
 
@@ -1560,6 +1580,7 @@ Casey Meisenzahl
 Charles Arnold
 David A. Riggs
 davidh-ssec
+Edward Kawas
 Evan Heidtmann
 ezcitron
 fiveham


=====================================
changelog.txt
=====================================
@@ -1,5 +1,25 @@
+VERSION 3.0.3
+
+2025-11-28
+    Type checking:
+	* Add optional dependency, "stubs", containing the package "pyshp-stubs" generated with stubgen (to avoid
+	  including py.typed, and no longer being a single file project).
+
+2025-10-25
+	Bug fix:
+	* Prevented UnboundLocalError when reading non-single point M and Z type Shapefiles (@ekawas-vrify).
+
+2025-10-10
+	Testing:
+	* Test on the Python 3.14 official release (no longer in beta)
+
 VERSION 3.0.2
 
+2025-10-10
+	.post1.  Documentation update.  Update version at the top of README.md. (to make what PyPi users see consistent with the changelog and __version__).
+2025-10-10
+	.post0.  Re-release as 3.0.2.post0 to trigger deploy job to Publish to Pypi
+
 2025-10-09
     Bug fix:
 	* Deleted py.typed (probably temporarily).  Including the py.typed marker file with a single


=====================================
debian/changelog
=====================================
@@ -1,10 +1,11 @@
-pyshp (3.0.2-2) UNRELEASED; urgency=medium
+pyshp (3.0.3-1) unstable; urgency=medium
 
   * Team upload.
+  * New upstream release.
   * Update watch file to ignore post & dev releases.
   * Use test-build-validate-cleanup instead of test-build-twice.
 
- -- Bas Couwenberg <sebastic at debian.org>  Fri, 10 Oct 2025 19:27:37 +0200
+ -- Bas Couwenberg <sebastic at debian.org>  Fri, 28 Nov 2025 19:01:25 +0100
 
 pyshp (3.0.2-1) unstable; urgency=medium
 


=====================================
pyproject.toml
=====================================
@@ -32,6 +32,7 @@ dependencies = [
 [project.optional-dependencies]
 dev = ["pyshp[test]", "pre-commit", "ruff"]
 test = ["pytest"]
+stubs=["pyshp-stubs"]
 
 [project.urls]
 Repository = "https://github.com/GeospatialPython/pyshp"


=====================================
src/shapefile.py
=====================================
@@ -8,7 +8,7 @@ Compatible with Python versions >=3.9
 
 from __future__ import annotations
 
-__version__ = "3.0.2"
+__version__ = "3.0.3"
 
 import array
 import doctest
@@ -1492,7 +1492,8 @@ class _HasM(_CanHaveBBox):
     @staticmethod
     def _read_ms_from_byte_stream(
         b_io: ReadSeekableBinStream, nPoints: int, next_shape: int
-    ) -> tuple[MBox, list[float | None]]:
+    ) -> tuple[MBox | None, list[float | None]]:
+        mbox = None  # Ensure mbox is always defined
         if next_shape - b_io.tell() >= 16:
             mbox = unpack("<2d", b_io.read(16))
         # Measure values less than -10e38 are nodata values according to the spec



View it on GitLab: https://salsa.debian.org/debian-gis-team/pyshp/-/compare/89d58fc20f807788fd67e39439be7b9d00278a48...bf6e7f39c1375976677d13743bf59db6a3750980

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/pyshp/-/compare/89d58fc20f807788fd67e39439be7b9d00278a48...bf6e7f39c1375976677d13743bf59db6a3750980
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/20251128/e8612d24/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list