Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/DISCUSSION_TEMPLATE/q-a.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/DISCUSSION_TEMPLATE/show-and-tell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ body:
id: version
attributes:
label: Package version
placeholder: "1.10.0"
placeholder: "1.11.0"
validations:
required: true
- type: textarea
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}
}
Expand Down
6 changes: 3 additions & 3 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
{
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion docs/GUARANTEES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions docs/UNITS-AND-NUMERICS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand All @@ -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"]
2 changes: 1 addition & 1 deletion src/packvium_native/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading