[Git][debian-gis-team/pyshp][upstream] New upstream version 3.0.3

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



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


Commits:
d2a16732 by Bas Couwenberg at 2025-11-28T18:58:37+01:00
New upstream version 3.0.3
- - - - -


5 changed files:

- .github/workflows/run_checks_build_and_test.yml
- README.md
- changelog.txt
- 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


=====================================
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/-/commit/d2a167320a2d1211f7aa7d4f11034f3c4b54f4c2

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/pyshp/-/commit/d2a167320a2d1211f7aa7d4f11034f3c4b54f4c2
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/e41b432d/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list