Skip to content

chore(deps): Bump pyshp from 2.3.1 to 3.1.6 - #883

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

chore(deps): Bump pyshp from 2.3.1 to 3.1.6#883
dependabot[bot] wants to merge 1 commit into
stagingfrom
dependabot/uv/staging/pyshp-3.1.6

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 24, 2026

Copy link
Copy Markdown
Contributor

Bumps pyshp from 2.3.1 to 3.1.6.

Release notes

Sourced from pyshp's releases.

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.

Testing

  • Include NullShapes in shp round trip test.
  • En/decoding of Dbf files and Fields round trips correctly.

v3.0.13 Bug fix (read empty shp files)

No release notes provided.

v3.0.12 points_3D ! Polylines and Polygons pass round trip tests

No release notes provided.

... (truncated)

Changelog

Sourced from pyshp's changelog.

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 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

... (truncated)

Commits
  • 7708b60 Merge pull request #441 from JamesParrott/Encoding_from_cpg_file
  • 21b15ae Support reading encodings from .cpg files (all the various ways)
  • 1a8a939 Move exit stack joining into _try_get_open_constituent_file and make it a met...
  • 0a4ef10 Add test_read_latin1_shapefile & xfailed cpg file test
  • 987fb1a Describe 3.1.6
  • 54f7b81 Merge pull request #440 from JamesParrott/Comments
  • c68984b Add comments to record findings of attempts to use enums
  • b0563c5 Merge pull request #439 from JamesParrott/WIP_3.1.6.dev
  • 0d4a3e4 Explain what "".encode test does
  • 8594f48 Merge pull request #438 from JamesParrott/Round-trip-tests-on-Windows-&-MacOS
  • 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.6.
- [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.6)

---
updated-dependencies:
- dependency-name: pyshp
  dependency-version: 3.1.6
  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 Aug 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Coverage

79.19% total — gate is 75%.

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