Skip to content

chore(deps): Bump pyshp from 2.3.1 to 3.1.9 - #1071

Open
dependabot[bot] wants to merge 1 commit into
stagingfrom
dependabot/uv/staging/pyshp-3.1.9
Open

dependabot[bot] wants to merge 1 commit into
stagingfrom
dependabot/uv/staging/pyshp-3.1.9

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 23, 2026

Copy link
Copy Markdown
Contributor

Bumps pyshp from 2.3.1 to 3.1.9.

Release notes

Sourced from pyshp's releases.

v3.1.9. Stricter compliance with .dbf spec (write EOF bytes)

Got rid of all but 2 Reader and Writer base classes.

v3.1.8 Avoid extra seeks in iterShapeRecords & don't preppend DeletionFlag until .fields referred to

No release notes provided.

v3.1.7 Bug fix. Improve handling of corrupt .shp shape record headers.

(re-released to try to fix deployment to PyPi)

v3.1.6 Support reading encodings from .cpg files

No release notes provided.

v3.1.5, ensure date fields are 8 chars long. Test text fields against all round trippable code points.

No release notes provided.

v3.1.4 Fix bug with dates supplied as strings. Test all encodings in CI.

No release notes provided.

v3.1.3 speed up encoding of utf8 and ascii text

No release notes provided.

v3.1.2 In strict mode, raise error if whole chars encoded to pad bytes

No release notes provided.

v3.1.1 Warn if encoded text ends in pad bytes. Minimise pad bytes used in decodings.

No release notes provided.

v3.1.0. Strict mode. Atomic Records. Robust(er) unicode handling

Unicode support made more robust and encoding bugs fixed

  • Truncation of field names and text fields now respects unicode code point boundaries (fixes issues - 416 and 148).
  • Warnings raised if truncation, or replacing b" " with b"_" would corrupt encoded field names, - both if they would either be undecodable, or would silently decode to incorrect data (warns users if issue 421 applies).
  • Correctly truncated field names are now stored in field instances, as would actually be seen in the file.
  • New strict mode. Writer(strict=True) raises errors or refuse to create fields and text records with data that - would be truncated or cannot be correctly decoded back again by PyShp, exactly as given by the user.
  • In strict mode, ascii spaces in encoded names are no longer replaced by ascii underscores at all (work around to avoid corrupting unicode field names - provides opt-in fix for issue 421).
  • BREAKING. When reading .dbf files, Trailing ascii spaces in text fields before a null terminator char (in the - decoded string) is now removed (i.e. instead of .strip().rstrip('\x00') we now do: .rstrip("\x00").rstrip(" ")).
  • BREAKING. Enclosing Whitespace other than trailing ascii spaces (0x20) after null chars in text fields is now - preserved, when reading .dbf files (fixes issue 418 - James feels this was a bug. Let him know if you think otherwise).
  • BREAKING Trailing null chars other than null terminators & null padding bytes, followed by whitespace other than ascii spaces, are now preserved.
  • Writing dbf records is now atomic.

ShpWriter.shape API Tweak (small breaking change).

  • Make ShpWriter.shape return shape length in bytes (the same as for offset) not in 16 bit words.

... (truncated)

Changelog

Sourced from pyshp's changelog.

VERSION 3.1.9 2026-11-16

  • Write EOF byte after .dbf file body, but only logger.info it if it's missing (PyShp has never written them until now). Raises if strict=True.

VERSION 3.1.8 2026-11-07

  • Avoid unnecessary seeks in Reader.iterShapeRecords with a bbox. Removed lots of deletion field checks (prefer dbfReader.data_fields). Replace two while loops with simpler alternatives.

VERSION 3.1.7 2026-11-07

VERSION 3.1.6 2026-07-25

  • Encodings can now be read from .cpg files (and optionally written to them).

VERSION 3.1.5 2026-07-22

  • Fixed another bug causing dates before the year 1000 to be encoded as less than 8 chars under "%Y%m%d (found by Thomas Beierlein)

VERSION 3.1.4 2026-06-29

  • Fix bug causing dates supplied as length 8 strings to be encoded by the custom codec, not ascii 2026-06-27
  • Test other codecs (ascii and UTF-8, UTF-16 & UTF-32 so far).
  • Test all other codecs in CI

VERSION 3.1.3

2026-06-25

  • Restore faster text writing paths for single-byte Ascii encodings, and Utf-8.

VERSION 3.1.2

2026-06-24

  • Raise error in strict mode when creating field with a name, or writing strings, that ends with whole code points that whose encoding is pad bytes.
  • Document handling of unicode.

VERSION 3.1.1

2026-06-24 Unicode support made even more robust and yet another encoding bug fixed!

  • When reading, only use minimum number of pad bytes to decode text successfully (fixes issue 423).
  • When writing, warn (or raise in strict mode) if the text's encoding ends in pad bytes.

VERSION 3.1.0

2026-06-23

... (truncated)

Commits
  • 1c356bd Merge pull request #470 from JamesParrott/3_1_9_rc
  • 748bbc9 v3.1.9. Comply with .dbf spec (write EOF byte). Update docs.
  • 16a8c59 Merge pull request #469 from JamesParrott/Replace_Readers_Base_Class_With_fun...
  • b2b4bac Replace _ShpShxHeaderWriter with functions
  • ae9df7b Remove duplicate Python version entry
  • 83b5bd1 Make _ShpWriterInfo a Protocol
  • 094a063 Rename _HasCheckedWritableFile to _WriterBase
  • db8e24f Replace Readers base class with function and context obj
  • 29636f5 Merge pull request #468 from JamesParrott/Fix_dbf_length_check
  • 042d960 Write .dbf EOF bytes, & handle missing ones as a special case of the file len...
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [pyshp](https://github.com/GeospatialPython/pyshp) from 2.3.1 to 3.1.9.
- [Release notes](https://github.com/GeospatialPython/pyshp/releases)
- [Changelog](https://github.com/GeospatialPython/pyshp/blob/master/changelog.txt)
- [Commits](GeospatialPython/pyshp@2.3.1...3.1.9)

---
updated-dependencies:
- dependency-name: pyshp
  dependency-version: 3.1.9
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Nov 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Coverage

✅ 82.03% total — gate is 75%.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants