diff --git a/.github/DISCUSSION_TEMPLATE/q-a.yml b/.github/DISCUSSION_TEMPLATE/q-a.yml index 76c5725..d01146b 100644 --- a/.github/DISCUSSION_TEMPLATE/q-a.yml +++ b/.github/DISCUSSION_TEMPLATE/q-a.yml @@ -10,7 +10,7 @@ body: id: package-version attributes: label: Package and version - placeholder: "packvium-native 1.10.0 (Python)" + placeholder: "packvium-native 1.11.0 (Python)" validations: required: true - type: textarea diff --git a/.github/DISCUSSION_TEMPLATE/show-and-tell.yml b/.github/DISCUSSION_TEMPLATE/show-and-tell.yml index d73871f..9f7b3c5 100644 --- a/.github/DISCUSSION_TEMPLATE/show-and-tell.yml +++ b/.github/DISCUSSION_TEMPLATE/show-and-tell.yml @@ -16,7 +16,7 @@ body: id: package-version attributes: label: Package and version - placeholder: "packvium-native 1.10.0 (Python)" + placeholder: "packvium-native 1.11.0 (Python)" validations: required: false - type: textarea diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 3b2ba57..5529ea2 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -33,8 +33,8 @@ body: id: version attributes: label: Package version - description: The exact version installed, for example 1.10.0. - placeholder: "1.10.0" + description: The exact version installed, for example 1.11.0. + placeholder: "1.11.0" validations: required: true - type: input @@ -101,5 +101,5 @@ body: options: - label: I searched the existing issues and did not find this one. required: true - - label: I read [docs/GUARANTEES.md](https://github.com/toxakara/packvium-python-adapter/blob/HEAD/docs/GUARANTEES.md) and this is not something it says the library does not guarantee. + - label: I read [docs/GUARANTEES.md](https://github.com/packvium/packvium-python-adapter/blob/HEAD/docs/GUARANTEES.md) and this is not something it says the library does not guarantee. required: false diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 70a081d..35ae2a8 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,10 +1,10 @@ blank_issues_enabled: false contact_links: - name: Question or help with a request - url: https://github.com/toxakara/packvium-python-adapter/discussions/categories/q-a + url: https://github.com/packvium/packvium-python-adapter/discussions/categories/q-a about: Ask in Discussions → Q&A. Answers there help the next person too. - name: Report a security vulnerability - url: https://github.com/toxakara/packvium-python-adapter/security/advisories/new + url: https://github.com/packvium/packvium-python-adapter/security/advisories/new about: Report privately. Do not open a public issue for a security problem. - name: Documentation url: https://packvium.com/docs diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml index 8e75ad6..b171161 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -29,7 +29,7 @@ body: id: version attributes: label: Package version - placeholder: "1.10.0" + placeholder: "1.11.0" validations: required: true - type: textarea diff --git a/.github/workflows/rc.yml b/.github/workflows/rc.yml index 55eb7e9..d6d3fae 100644 --- a/.github/workflows/rc.yml +++ b/.github/workflows/rc.yml @@ -6,7 +6,7 @@ name: rc # # Before the first RC, once (the owner): # 1. Create an account on https://test.pypi.org (separate from the PyPI one) and enable 2FA. -# 2. Add a pending Trusted Publisher for project `packvium-native`: owner `toxakara`, repository +# 2. Add a pending Trusted Publisher for project `packvium-native`: owner `packvium`, repository # `packvium-python-adapter`, workflow `rc.yml`, environment `testpypi`. # 3. In this repository, create a GitHub environment named `testpypi` with the same # reviewers as `pypi`. diff --git a/CHANGELOG.md b/CHANGELOG.md index 63546fe..5316a9d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ What changed in `packvium-native` (Python), release by release. The format follo [Keep a Changelog](https://keepachangelog.com/1.1.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.11.0] + +No changes of its own; the `native` extra is pinned to `packvium-native-rust==1.11.0`, and the +1.11 request fields (`bottom_gusset_depth`, `orientation: "standing"`) are accepted on either +backend. Neither this package nor that one is on PyPI yet, so use +[`packvium`](https://pypi.org/project/packvium/) directly. + ## [1.10.0] No changes of its own; the `native` extra is pinned to `packvium-native-rust==1.10.0`, and the diff --git a/CITATION.cff b/CITATION.cff index f81eec6..6bcae70 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -5,10 +5,10 @@ type: software authors: - name: "Packvium contributors" website: "https://packvium.com" -version: "1.10.0" +version: "1.11.0" license: MIT url: "https://packvium.com" -repository-code: "https://github.com/toxakara/packvium-python-adapter" +repository-code: "https://github.com/packvium/packvium-python-adapter" abstract: >- Packvium backend selector: the native engine when a wheel is available, pure Python otherwise. keywords: diff --git a/README.md b/README.md index d245ee3..af16a43 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ The `native` extra installs the platform wheel. To use only the fallback, instal `packvium-native` is not on PyPI yet. Until the native wheels ship, install it from source: ```bash -pip install git+https://github.com/toxakara/packvium-python-adapter packvium +pip install git+https://github.com/packvium/packvium-python-adapter packvium ``` ## Quick start @@ -87,26 +87,26 @@ Documentation, the constraint reference and the benchmarks are at | Package | Install | Source | | --- | --- | --- | -| Python — [`packvium`](https://pypi.org/project/packvium/) | `pip install packvium` | [packvium-python](https://github.com/toxakara/packvium-python) | -| PHP — [`packvium/packvium`](https://packagist.org/packages/packvium/packvium) | `composer require packvium/packvium` | [packvium-php](https://github.com/toxakara/packvium-php) | -| Rust — [`packvium`](https://crates.io/crates/packvium) | `packvium = "1.10"` | [packvium-rust](https://github.com/toxakara/packvium-rust) | -| Node.js — [`@packvium/engine`](https://www.npmjs.com/package/@packvium/engine) | `npm install @packvium/engine` | [packvium-node](https://github.com/toxakara/packvium-node) | -| Browser / WebAssembly — [`@packvium/browser`](https://www.npmjs.com/package/@packvium/browser) | `npm install @packvium/browser` | [packvium-wasm](https://github.com/toxakara/packvium-wasm) | -| PHP FFI bridge — [`packvium/native-bridge`](https://packagist.org/packages/packvium/native-bridge) | `composer require packvium/native-bridge` | [packvium-php-bridge](https://github.com/toxakara/packvium-php-bridge) | -| Python native selector — `packvium-native` | from source until the native wheels ship | [packvium-python-adapter](https://github.com/toxakara/packvium-python-adapter) | +| Python — [`packvium`](https://pypi.org/project/packvium/) | `pip install packvium` | [packvium-python](https://github.com/packvium/packvium-python) | +| PHP — [`packvium/packvium`](https://packagist.org/packages/packvium/packvium) | `composer require packvium/packvium` | [packvium-php](https://github.com/packvium/packvium-php) | +| Rust — [`packvium`](https://crates.io/crates/packvium) | `packvium = "1.11"` | [packvium-rust](https://github.com/packvium/packvium-rust) | +| Node.js — [`@packvium/engine`](https://www.npmjs.com/package/@packvium/engine) | `npm install @packvium/engine` | [packvium-node](https://github.com/packvium/packvium-node) | +| Browser / WebAssembly — [`@packvium/browser`](https://www.npmjs.com/package/@packvium/browser) | `npm install @packvium/browser` | [packvium-wasm](https://github.com/packvium/packvium-wasm) | +| PHP FFI bridge — [`packvium/native-bridge`](https://packagist.org/packages/packvium/native-bridge) | `composer require packvium/native-bridge` | [packvium-php-bridge](https://github.com/packvium/packvium-php-bridge) | +| Python native selector — `packvium-native` | from source until the native wheels ship | [packvium-python-adapter](https://github.com/packvium/packvium-python-adapter) | ## Citation If Packvium supports your research, cite it as software. GitHub's **Cite this repository** -button reads [`CITATION.cff`](https://github.com/toxakara/packvium-python-adapter/blob/main/CITATION.cff), and -[`codemeta.json`](https://github.com/toxakara/packvium-python-adapter/blob/main/codemeta.json) carries the same record in +button reads [`CITATION.cff`](https://github.com/packvium/packvium-python-adapter/blob/main/CITATION.cff), and +[`codemeta.json`](https://github.com/packvium/packvium-python-adapter/blob/main/codemeta.json) carries the same record in CodeMeta form. ```bibtex @software{packvium_python_adapter, author = {{Packvium contributors}}, title = {Packvium native backend selector for Python}, - version = {1.10.0}, + version = {1.11.0}, license = {MIT}, url = {https://packvium.com} } diff --git a/codemeta.json b/codemeta.json index 7c426ba..d4583ca 100644 --- a/codemeta.json +++ b/codemeta.json @@ -3,7 +3,7 @@ "@type": "SoftwareSourceCode", "name": "Packvium native backend selector for Python", "description": "Packvium backend selector: the native engine when a wheel is available, pure Python otherwise.", - "version": "1.10.0", + "version": "1.11.0", "license": "https://spdx.org/licenses/MIT", "author": [ { @@ -13,8 +13,8 @@ } ], "url": "https://packvium.com", - "codeRepository": "https://github.com/toxakara/packvium-python-adapter", - "issueTracker": "https://github.com/toxakara/packvium-python-adapter/issues", + "codeRepository": "https://github.com/packvium/packvium-python-adapter", + "issueTracker": "https://github.com/packvium/packvium-python-adapter/issues", "programmingLanguage": "Python", "keywords": [ "3d-bin-packing", diff --git a/docs/GUARANTEES.md b/docs/GUARANTEES.md index f0b05e9..929e28f 100644 --- a/docs/GUARANTEES.md +++ b/docs/GUARANTEES.md @@ -61,7 +61,7 @@ silently — if you need them, they belong in your own layer above this library. ## Status of this release -Version `1.10.0` freezes the public API. Field names, status codes, the objective +Version `1.11.0` freezes the public API. Field names, status codes, the objective vector, the numeric policy and the validation rules do not change without a major version, so any `1.x` is a safe upgrade from any earlier `1.x`. A caret or tilde constraint on `1.0` is enough; an exact pin is no longer required. diff --git a/docs/UNITS-AND-NUMERICS.md b/docs/UNITS-AND-NUMERICS.md index c09c8e8..624c9d0 100644 --- a/docs/UNITS-AND-NUMERICS.md +++ b/docs/UNITS-AND-NUMERICS.md @@ -10,6 +10,8 @@ One internal length tick is `1/16000 mm`. Accepted inputs include integers, decimal strings, fractions (`3/16`) and mixed fractions (`12 3/8`), with `mm`, `cm`, `m`, `in`, `ft`, and ticks. A binary float with a fractional part is intentionally rejected by the Python API, by `Length` and `Weight` alike (`TypeError`); an integral float such as `100.0` is exact, and is what JavaScript sends for `100`, so it is accepted as that integer. PHP type declarations accept only integer/string/structured values. +The written grammar is one and the same in all four engines (1.11): an optional sign, ASCII digits, and an optional fraction part with at least one digit on each side of the point and at most 18 after it; or a fraction `n/d`; or a mixed fraction `w n/d`. A unit suffix is matched ignoring ASCII case (`100 MM`, `1 KG`). Nothing else is a measure -- not `100.`, `.5`, `0x64`, `1e2`, `1_0`, nor digits outside ASCII -- and each is refused as `wrong_type`, `must be a measure`. Until 1.11 each language's own number parser decided the edge cases, and they disagreed. + ## Weight One weight tick is `1/8 microgram`, allowing exact common metric units and exact international avoirdupois conversions used by the package. diff --git a/pyproject.toml b/pyproject.toml index 51e6e84..7af2993 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "packvium-native" -version = "1.10.0" +version = "1.11.0" requires-python = ">=3.9" description = "Packvium backend selector: the native engine when a wheel is available, pure Python otherwise." readme = "README.md" @@ -16,8 +16,8 @@ dependencies = [] [project.urls] Homepage = "https://packvium.com" Documentation = "https://packvium.com/docs" -Source = "https://github.com/toxakara/packvium-python-adapter" -Issues = "https://github.com/toxakara/packvium-python-adapter/issues" +Source = "https://github.com/packvium/packvium-python-adapter" +Issues = "https://github.com/packvium/packvium-python-adapter/issues" [project.optional-dependencies] # `packvium` is deliberately not a hard dependency of the package itself (see @@ -31,7 +31,7 @@ test = ["pytest", "packvium; python_version >= '3.10'"] # wheel too, rather than requiring a second, separate install command. Pinned to this # release, which `scripts/suite_version.py` keeps in step: a wheel from another release # answers with that release's rules while this selector claims its own. -native = ["packvium-native-rust==1.10.0"] +native = ["packvium-native-rust==1.11.0"] [tool.setuptools.packages.find] where = ["src"] diff --git a/src/packvium_native/__init__.py b/src/packvium_native/__init__.py index 01bfe0a..2f49446 100644 --- a/src/packvium_native/__init__.py +++ b/src/packvium_native/__init__.py @@ -4,7 +4,7 @@ from types import ModuleType from typing import Any, Optional -__version__ = "1.10.0" +__version__ = "1.11.0" #: Each untyped model error's code and the prefix the core's `PackError` writes before its #: detail (`packvium-core` `error.rs`). `packvium` reports a model it cannot build as reason