Contourpy

Latest version: v1.2.1

Safety actively analyzes 623035 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

1.2.1

ContourPy 1.2.1 is a compatibility release to support NumPy 2.

This release supports Python 3.9 to 3.12.

Thanks to new contributor motoro and core maintainer ianthomas23.

Compatibility:

- Support NumPy 2 (331, 371, 372)

Code improvements:

- Fix a few f-strings (332)

Documentation improvements:

- Clarify use of quotes in `pip install` (349)

Build, testing and CI improvements:

- Improved linting (322, 323, 333, 337)
- Update `cppcheck` to 2.11 (324)
- Support running tests on unicore hosts (327)
- Improved tests against nightly wheels (329, 373)
- Update to chromium 118 for Bokeh renderer tests (325)
- Add CI run using earliest supported numpy (347)

1.2.0

ContourPy 1.2.0 is a significant release with a number of new features. There is a new format for contour lines called `LineType.ChunkCombinedNan` that is designed to work directly with Bokeh and HoloViews. There are also new functions for manipulating contour lines and filled contours (`convert_filled`, `convert_lines`, `dechunk_filled` and `dechunk_lines`).

Calling `ContourGenerator.filled()` with two identical levels now raises a `ValueError` whereas previously it gave different results depending on algorithm `name`.

This release supports Python 3.9 to 3.12, and is the first release to ship musllinux aarch64 wheels.

Enhancements:

- Support strings as well as enums in renderer functions (284)
- Add new functions `dechunk_filled` and `dechunk_lines` (290)
- Add new functions `convert_filled` and `convert_lines` (291, 293, 294, 312, 313)
- Add new `LineType.ChunkCombinedNan` (296, 301, 308)
- Raise if call `filled()` with `lower_level==upper_level` (317)

Code improvements:

- Code quality improvements (282, 310)
- Improvements to array checking functions (298)
- Better use of dtypes and casting when calling numpy functions (300, 306, 308, 314)
- Update type annotations for Matplotlib 3.8 (303)
- Extra validation when dechunking and converting contour lines and filled contours (316)

Documentation improvements:

- Use `versionadded` sphinx directive (285)
- Remove threaded experimental warnings (297)
- Extract benchmark ratios when generating benchmark plots (302)
- Document new functions and conversion to Shapely geometries (318)

Build, testing and CI improvements:

- Add new CI run using NumPy nightly wheels (280)
- Test contour levels that are `+/-np.inf` (283)
- Improved PyPy CI (287, 307)
- Use better names for enums when reporting parametrised tests (292)
- Improved mpl debug renderer tests (295)
- Support musllinux aarch64 (305)
- Run test suite in parallel (311)
- Miscellaneous build and CI improvements (279, 281, 288, 315, 319)

1.1.1

This release adds support for CPython 3.12 and reinstates the release of Windows 32-bit wheels following NumPy's intention to continue doing so. There is a new keyword argument `webdriver` to the `BokehRenderer` save functions to reuse the same Selenium WebDriver instance across multiple calls.

This release supports Python 3.8 to 3.12.

Thanks to new contributor shadchin and existing contributors eli-schwartz and ianthomas23.

Enhancements:

- Add `webdriver` kwarg to Bokeh export functions (261)
- Add `--driver-path` pytest option to specify chrome driver path (264)

Code improvements:

- Sync constant name with C++ code (258)
- Improved validation in internal chunk functions (266)

Documentation improvements:

- Exclude prompts when using sphinx copybutton (269)

Build system and CI improvements:

- Support CPython 3.12 (254, 272)
- Reinstate Windows 32-bit testing and wheels (274, 275)
- Update build and CI dependencies (256, 257, 259)
- Don't require `ninja` to come from PyPI (260)
- Re-enable bokeh tests in CI (263)
- Add tests for saving to PNG and SVG using Matplotlib and Bokeh renderers (267)
- Pin numpy to less than 2.0 (268)
- Remove `ninja` build requirements (270)

1.1.1rc1

Changelog will be updated with the full release which will happen before the end of September.

1.1.0

This release features a change in the build system from `distutils`, which is scheduled for removal in Python 3.12, to `meson` and `meson-python`. It includes the building of wheels for ppc64le and s390x (on x86_64 only) and removes building of all 32-bit wheels and macOS universal2 wheels.

This release supports Python 3.8 to 3.11.

Thanks to new contributor eli-schwartz.

Build system improvements:

* New meson build system (183, 226, 232, 249, 250)
* Drop building universal2 wheels (225)
* Add build_config to store and show build configuration info (227)
* Build ppc64le and s390x wheels (246)

Code improvements:

* Rearrange functions alphabetically (219)
* Remove unused mpl2005 and mpl2014 code (234, 237)
* Improve mpl2014 chunk count error handling (238)

Documentation improvements:

* Improve API docs (220, 221, 222)
* Update benchmarks (233)
* Add meson-specific build docs (245)
* Add simpler README for PyPI (247)

CI improvements:

* Replace flake8 with ruff (211)
* Building and testing on cirrus CI (213)
* Run mypy in CI (230)
* Set up code coverage in CI (235, 236, 183)
* New internal API, codebase and debug renderer tests (239, 241, 244)
* Use correct version of chromium for Bokeh image tests (243)
* Add tests for musllinux (on x86_64), ppc64le and s390x (246)

1.0.7

This release adds type annotations and moves project metadata to pyproject.toml (PEP 621). Documentation now uses the Sphinx Furo theme, supporting dark and light modes. There are no functional changes.

Type annotations:

* Add type annotations (199, 200, 201, 202)
* Complete mypy configuration (206)

Documentation improvements:

* Support dark mode (185, 188)
* Use sphinx copy button (189)
* Add conda monthly download badges to README (192)
* Furo sphinx theme (195)

Code improvements:

* Improved if statement (186)
* Test nonfinite z and decreasing zlevel for filled (190)
* Add abstract base class Renderer (198)
* Replace mpl scatter call with plot instead (203)
* Use absolute imports (204)
* Minor improvement to get_boundary_start_point (205)

Build system and CI improvements:

* Switch from setup.cfg to pyproject.toml (181)
* Add git pre-commit (191)
* Test improvements (193, 194, 197)
* CI improvements (179, 180, 184)

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.