Skip to content

Releases

v4.1.4

Choose a tag to compare

@wolph wolph released this 13 Nov 02:35
v4.1.4
3f64e77

Fixed

  • remove_duplicate_polygons=1 and =2, and RemoveDuplicates.map() with
    those integers, work on Python 3.10 and 3.11, contributed by @xixihaha-ha
    in #250. 4.1.3 raised TypeError there, because enum containment only
    accepts raw values from Python 3.12 on. On 3.10 and 3.11 a value that
    matches no strategy, such as 'SINGLE' or 3, now maps to
    RemoveDuplicates.NONE instead of raising TypeError, as it already did
    on 3.12 and later.

Changed

  • is_closed(exact=True), and with it check(exact=True) and the mass
    properties, builds its edge set in one NumPy pass, contributed by
    @dexhunter in #249. The results and warnings are unchanged. The PR
    measured it 19% to 64% faster, depending on the mesh size.

Signed on 2026-11-13 with ppt sign, after the release.
The files above are the exact PyPI uploads for this version, verified by sha256 against PyPI before signing.
Each file has a GPG signature (.asc, key 149325FD15904E9C4EB89E95E81444E9CE1F695D) and a Sigstore bundle (.sigstore.json).
SHA256SUMS.asc signs the checksum list.
Rebuilt files, if any: none.
How to verify: https://github.com/WoLpH/python-project-tools/blob/master/VERIFY.md

PyPI versions without a matching tag

Choose a tag to compare

@wolph wolph released this 06 Nov 18:08
pypi-untagged-releases

PyPI versions for which no matching commit could be found. Their files are the exact PyPI uploads.

  • 1.0.0
  • 1.0.1
  • 1.0.2
  • 1.1.0
  • 1.1.2
  • 1.2.0
  • 1.3.0
  • 1.3.1
  • 1.3.2
  • 1.3.3
  • 1.3.4
  • 1.3.5
  • 1.3.6
  • 1.3.7
  • 1.6.2

Signed on 2026-11-12 with ppt sign, after the release.
The files above are the exact PyPI uploads of the versions listed in these notes, each verified by sha256 against PyPI before signing.
Each file has a GPG signature (.asc, key 149325FD15904E9C4EB89E95E81444E9CE1F695D) and a Sigstore bundle (.sigstore.json).
SHA256SUMS.asc signs the checksum list.
How to verify: https://github.com/WoLpH/python-project-tools/blob/master/VERIFY.md

v4.1.3

Choose a tag to compare

@wolph wolph released this 28 Oct 00:44
v4.1.3
8c786f8

Changed

  • import datetime is spelled import datetime as dt in stl.stl and the
    docs configuration, the alias ruff 0.17 expects (ICN001). The lint job in
    the release workflow resolves ruff fresh, so the v4.1.2 tag stopped there
    and never reached PyPI. 4.1.3 is the published release of the 4.1.2 change
    below. No runtime change.

Changed (from the unpublished 4.1.2 tag)

  • The build backend requirement now allows every uv_build release below
    1.0 instead of stopping at 0.12, so distributions and build frontends
    that ship a newer uv can build the sdist without waiting for a release.
    Nothing changes for pip install numpy-stl, which installs the wheel.

Signed on 2026-11-12 with ppt sign, after the release.
The files above are the exact PyPI uploads for this version, verified by sha256 against PyPI before signing.
Each file has a GPG signature (.asc, key 149325FD15904E9C4EB89E95E81444E9CE1F695D) and a Sigstore bundle (.sigstore.json).
SHA256SUMS.asc signs the checksum list.
Rebuilt files, if any: none.
How to verify: https://github.com/WoLpH/python-project-tools/blob/master/VERIFY.md

v4.1.1

Choose a tag to compare

@wolph wolph released this 19 Oct 03:37
v4.1.1
739f5a9

numpy-stl 4.1.1

Fixed

  • rotate() and rotate_using_matrix() with a point other than the
    origin moved the normals around that point as well as the vertices, so
    a mesh rotated around a pivot carried normals that were no longer
    perpendicular to its faces until you called update_normals(). Files
    written with update_normals=False kept those wrong normals. Normals
    are now rotated in place and keep their magnitude, and a pivot taken
    from the mesh itself, such as mesh.normals[0], is copied before the
    rotation changes it. A pivot that cannot be broadcast against the
    mesh now raises before anything is written. The vertices come out
    exactly as before.
    Thanks to @antonsoo (#248)

Signed on 2026-11-12 with ppt sign, after the release.
The files above are the exact PyPI uploads for this version, verified by sha256 against PyPI before signing.
Each file has a GPG signature (.asc, key 149325FD15904E9C4EB89E95E81444E9CE1F695D) and a Sigstore bundle (.sigstore.json).
SHA256SUMS.asc signs the checksum list.
Rebuilt files, if any: none.
How to verify: https://github.com/WoLpH/python-project-tools/blob/master/VERIFY.md

v4.1.0

Choose a tag to compare

@wolph wolph released this 16 Oct 12:40
v4.1.0
16094a6

numpy-stl 4.1.0

Fixed

  • Mesh.from_3mf_file() built each mesh from zeros and filled in the
    triangles afterwards, so the normals of a loaded 3MF mesh were all zero
    and calculate_normals, name, remove_empty_areas and the other
    constructor options were ignored. An empty 3MF mesh also failed to load.
    The loader now constructs each mesh from the parsed triangles with the
    options you pass. Thanks to @schlagskill for the report (#247)
  • get_mass_properties() and get_mass_properties_with_density() could
    still lose accuracy on a closed mesh whose connected component holds a
    long thin appendage, on a nearly coplanar solid, or on parts whose
    signed volumes cancel. Each component is now integrated around an
    estimate of its own mass centroid, and poorly conditioned components
    fall back to exact integer arithmetic. That exact path is a plain
    Python loop, so a mesh that needs it, including one whose centre of
    gravity has a coordinate close to zero, takes roughly 1.6 times as
    long as before. Thanks to @antonsoo (#246)
  • get_mass_properties() and get_mass_properties_with_density() returned
    a wrong centre of gravity and inertia tensor, often with negative diagonal
    entries, for closed meshes away from the origin or built from distant
    parts. Both now integrate each connected component in float64 around a
    local reference point and combine the parts with the parallel-axis
    theorem. Thanks to @antonsoo (#245)
  • The save() and save_ply() docstring examples wrote to a fixed path
    under /tmp, which does not exist on Windows and left files behind after
    every test run. The doctests now run in a temporary directory with a copy
    of the example data, so the examples read and write plain relative paths.
    Thanks to @schlagskill (#244)

Changed

  • Pull requests now receive automatic Ruff fixes from autofix.ci, and the
    README badges report CI and coverage for master.

Full changelog: v4.0.1...v4.1.0

Signed on 2026-11-12 with ppt sign, after the release.
The files above are the exact PyPI uploads for this version, verified by sha256 against PyPI before signing.
Each file has a GPG signature (.asc, key 149325FD15904E9C4EB89E95E81444E9CE1F695D) and a Sigstore bundle (.sigstore.json).
SHA256SUMS.asc signs the checksum list.
Rebuilt files, if any: none.
How to verify: https://github.com/WoLpH/python-project-tools/blob/master/VERIFY.md

v4.0.1

Choose a tag to compare

@wolph wolph released this 07 Sep 09:43
v4.0.1
53bbcfa

numpy-stl 4.0.1

Fixed

  • Resolved all mypy and basedpyright findings; malformed # type: ignore[ty:...] suppressions replaced by typing.cast or restructured code.
  • Replaced argparse.FileType (deprecated since Python 3.14) in the CLI with path arguments opened after parsing; stdin/stdout - semantics unchanged. This also fixes a latent bug where the output file was truncated at argument-parsing time, before the input was validated.
  • The optional speedups were silently disabled with speedups>=2.1.0, which moved ascii_read/ascii_write to the speedups.stl submodule. The import now targets that submodule and the fast extra requires speedups>=2.1.0.

Changed

  • CI now enforces all four type checkers (pyrefly, mypy, basedpyright, ty).

Removed

  • Legacy build.cmd MSVC build script (the speedups extension it built was removed in 4.0.0).

Full changelog: v4.0.0...v4.0.1

Signed on 2026-11-12 with ppt sign, after the release.
The files above are the exact PyPI uploads for this version, verified by sha256 against PyPI before signing.
Each file has a GPG signature (.asc, key 149325FD15904E9C4EB89E95E81444E9CE1F695D) and a Sigstore bundle (.sigstore.json).
SHA256SUMS.asc signs the checksum list.
Rebuilt files, if any: none.
How to verify: https://github.com/WoLpH/python-project-tools/blob/master/VERIFY.md

v4.0.0

Choose a tag to compare

@wolph wolph released this 17 Jun 11:35
v4.0.0
649a4ac

numpy-stl 4.0.0

Breaking: Python 3.9 and earlier are no longer supported (minimum is now Python 3.10), and the bundled stl._speedups Cython extension has been removed. Install the optional numpy-stl[fast] extra to keep the C-accelerated ASCII reader/writer.

Fixed

  • Binary STL triangle count is now read and written as the unsigned 32-bit integer the spec requires; counts with the high bit set no longer slip past the size check and silently read the whole file
  • The stl, stl2ascii and stl2bin commands work with piped stdin/stdout again: the std stream defaults now use the underlying binary buffers, and non-seekable streams are buffered so format auto-detection can rewind
  • ASCII STL output uses {:.9g} formatting: float32 values round-trip exactly instead of values below 5e-7 being flattened to 0.000000
  • save() no longer swallows OSErrors; write failures (disk full, broken pipe) propagate instead of silently producing truncated output
  • transform() now rotates the stored normals along with the vertices
  • translate(), transform() and rotate_using_matrix() invalidate the cached min_/max_ bounding box
  • remove_duplicate_polygons compares full triangles instead of per-axis vertex sums; distinct triangles with equal sums are no longer dropped
  • PLY reader: elements declared before vertex are skipped instead of being consumed as vertex data; scalar and extra list face properties around the vertex index list are consumed correctly; out-of-range and negative face indices raise ValueError instead of crashing or wrapping around silently
  • PLY reader: vertex elements with list properties raise a descriptive ValueError instead of KeyError: 'list'
  • 3MF loader raises descriptive ValueErrors for missing vertex/triangle attributes and out-of-range vertex indices
  • The pure-Python ASCII reader no longer hits RecursionError on files with long runs of blank lines
  • Mesh.from_file() on an empty file raises a descriptive ValueError instead of TypeError
  • save()/load() accept plain ints for mode and validate them as Mode values
  • Speedups are disabled automatically on non-seekable streams for both reading and writing (the C extension requires seekable files)

Changed

  • get_mass_properties() docs no longer claim a RuntimeError is raised for open meshes; the actual behavior (warning + unreliable values) is documented
  • Publishing to PyPI is gated on the full CI test suite
  • numpy dependency declares the tested lower bound (numpy>=1.24)
  • The ASCII speedups are no longer bundled as a compiled Cython extension. Install the optional numpy-stl[fast] extra (the external speedups>=2.0.0 package) to enable them. Without it, speedups=True transparently falls back to the pure-Python reader/writer, so existing code keeps working — only the C-accelerated path now needs the extra.

Removed

  • Support for Python 3.9 and earlier. The minimum supported version is now Python 3.10 (requires-python = ">=3.10"); installing on older interpreters resolves to the previous release.
  • The bundled stl._speedups Cython extension and its _speedups.pyx source. import stl._speedups no longer works; the accelerated ascii_read/ascii_write now come from the external speedups package (see the numpy-stl[fast] extra under Changed above).

Full changelog: v3.2.0...v4.0.0

Signed on 2026-11-12 with ppt sign, after the release.
The files above are the exact PyPI uploads for this version, verified by sha256 against PyPI before signing.
Each file has a GPG signature (.asc, key 149325FD15904E9C4EB89E95E81444E9CE1F695D) and a Sigstore bundle (.sigstore.json).
SHA256SUMS.asc signs the checksum list.
Rebuilt files, if any: none.
How to verify: https://github.com/WoLpH/python-project-tools/blob/master/VERIFY.md

v3.2.0

Choose a tag to compare

@wolph wolph released this 25 Nov 17:15
v3.2.0
0f250e5

Added numpy 2 support thanks in large part to JeffreyOI. With helps from @tbaudier and @JBil8

Signed on 2026-11-12 with ppt sign, after the release.
The files above are the exact PyPI uploads for this version, verified by sha256 against PyPI before signing.
Each file has a GPG signature (.asc, key 149325FD15904E9C4EB89E95E81444E9CE1F695D) and a Sigstore bundle (.sigstore.json).
SHA256SUMS.asc signs the checksum list.
Rebuilt files, if any: none.
How to verify: https://github.com/WoLpH/python-project-tools/blob/master/VERIFY.md

v3.1.2

Choose a tag to compare

@wolph wolph released this 07 Aug 23:08
v3.1.2
fd1b497

fixed #222, removed deprecated unused import

Signed on 2026-11-12 with ppt sign, after the release.
The files above are the exact PyPI uploads for this version, verified by sha256 against PyPI before signing.
Each file has a GPG signature (.asc, key 149325FD15904E9C4EB89E95E81444E9CE1F695D) and a Sigstore bundle (.sigstore.json).
SHA256SUMS.asc signs the checksum list.
Rebuilt files, if any: none.
How to verify: https://github.com/WoLpH/python-project-tools/blob/master/VERIFY.md

v3.1.1

Choose a tag to compare

@wolph wolph released this 19 Nov 00:45
v3.1.1
6b3ebec

adding exact parameter to get_mass_properties check call. Thanks to @JasperBoogers

Signed on 2026-11-12 with ppt sign, after the release.
The files above are the exact PyPI uploads for this version, verified by sha256 against PyPI before signing.
Each file has a GPG signature (.asc, key 149325FD15904E9C4EB89E95E81444E9CE1F695D) and a Sigstore bundle (.sigstore.json).
SHA256SUMS.asc signs the checksum list.
Rebuilt files, if any: none.
How to verify: https://github.com/WoLpH/python-project-tools/blob/master/VERIFY.md