Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
8364ce5
Version fix
cdgriffith Feb 21, 2026
d079174
Fix issue #305: Merge dotted keys when non-dotted key with same prefi…
jbemmel Feb 24, 2026
bd8ef94
Preserve the Box subclass for nested boxes after unpickling
koriyoshi2041 May 29, 2026
22d94db
fix: preserve existing keys on dotted list writes
binggao1230 Jun 20, 2026
70b3567
fix: case-insensitive ConfigBox key lookup for __getitem__, __contain…
binggao1230 Jun 24, 2026
e7c2989
Fix serialization of frozen_box with nested lists
apoorvdarshan Jul 4, 2026
83031a8
Preserve box options in BoxList.__deepcopy__
chuenchen309 Jul 19, 2026
1fb782d
Convert ruamel YAML scalars to builtin types on load
vinson0522 Aug 14, 2026
41f83c3
Test from_yaml returns builtin float/int/bool
vinson0522 Aug 14, 2026
a7d3f15
Note #264 ScalarFloat fix in changelog
vinson0522 Aug 14, 2026
b998cc4
Fix nested boxes losing box_dots after pickle
DSeaStar Aug 14, 2026
6f411e0
Add a merge option for box_merge_lists
ChrisJr404 Aug 19, 2026
46006d5
Resolve CamelCase prefixes in dotted Box lookups
Jerry-val Sep 7, 2026
3ae657a
Test CamelCase paths, defaults and exact-key precedence
Jerry-val Sep 7, 2026
719eb0d
Document CamelCase path lookup fix and contributor
Jerry-val Sep 7, 2026
d5ffb61
Flush pending default_box parents on assignment.
gyanu2507 Sep 8, 2026
5bdd15a
Protect frozen BoxLists against remaining in-place mutations
vitalivo Sep 12, 2026
b8604f2
docs: correct optional dependency installation examples
Likio3000 Sep 22, 2026
d91be7d
Convert replacement values in BoxList assignments
x0Lazarus Sep 26, 2026
e4214f8
Fix BoxList extending itself
x0Lazarus Sep 26, 2026
67e340e
Fix Box.popitem LIFO order
machines-6657 Oct 3, 2026
1e41733
fix: report malformed BoxList bracket indices
arindamsikder Oct 5, 2026
ec3ade9
Construct BoxList without testing the input truth value
fhgffy Oct 9, 2026
4dcd563
docs: record JSON Lines string fix
shguild Oct 10, 2026
2501db0
fix: honor multiline JSON for strings
shguild Oct 10, 2026
f59cbc0
test: cover JSON Lines string round trips
shguild Oct 10, 2026
858b7c5
Honor explicit pop defaults without creating missing values
xiehuanyi Oct 10, 2026
d62f21f
Honor explicit ensure_ascii options in JSON output
fhgffy Oct 10, 2026
646b20f
Allow same-key updates with duplicate conversion checks
muneikh Oct 11, 2026
acc8984
Accept source and keyword overrides in Box.update
AryanRG Oct 17, 2026
a85b237
Release converted attribute aliases after deleting keys
gary1110086 Oct 28, 2026
8f1be45
Fix pickling of frozen BoxList instances (#344)
Fire162 Oct 29, 2026
89f7231
Prep 7.5.0: add Python 3.15, drop 3.10
cdgriffith Nov 4, 2026
c7a0bc4
Merge PR #309: Preserve Box subclass for nested boxes after unpicklin…
cdgriffith Nov 4, 2026
1252fc4
Merge PR #322: Fix nested boxes losing box_dots after pickle (#260) (…
cdgriffith Nov 4, 2026
2654ecb
Merge PR #306: Fix issue #305: Merge dotted keys when non-dotted key …
cdgriffith Nov 4, 2026
aeabe64
Merge PR #310: fix: preserve existing keys on dotted list-element wri…
cdgriffith Nov 4, 2026
5497d8e
Merge PR #315: Fix serialization of frozen_box with nested lists (#27…
cdgriffith Nov 4, 2026
7f8a683
Merge PR #324: Resolve CamelCase prefixes in dotted Box lookups (@Jer…
cdgriffith Nov 4, 2026
87438c7
Merge PR #336: Avoid testing iterable truth values in BoxList constru…
cdgriffith Nov 4, 2026
e585b5b
Merge PR #345: Fix pickling of frozen BoxList instances (#344) (@Fire…
cdgriffith Nov 4, 2026
f0eb454
Merge PR #328: Prevent clear and in-place operators from mutating fro…
cdgriffith Nov 4, 2026
cc56ce8
Merge PR #319: Preserve box options in BoxList.__deepcopy__ (@chuench…
cdgriffith Nov 4, 2026
e74cfe5
Merge PR #331: Convert replacement values in BoxList assignments (@x0…
cdgriffith Nov 4, 2026
08a6d69
Merge PR #332: Stop BoxList.extend from revisiting its own appended v…
cdgriffith Nov 4, 2026
b6f5191
Merge PR #335: fix: report malformed BoxList bracket indices (@arinda…
cdgriffith Nov 4, 2026
c0ea87c
Merge PR #337: Honor multiline JSON for BoxList string input and outp…
cdgriffith Nov 4, 2026
58ade61
Merge PR #338: Honor explicit pop defaults without creating missing v…
cdgriffith Nov 4, 2026
a49f6ba
Merge PR #339: Honor explicit ensure_ascii options in JSON output (@f…
cdgriffith Nov 4, 2026
14f68de
Merge PR #340: Allow same-key updates with duplicate conversion check…
cdgriffith Nov 4, 2026
b2afab7
Merge PR #342: Accept positional source and keyword overrides in Box.…
cdgriffith Nov 4, 2026
df5fcaa
Merge PR #343: Release converted attribute aliases after deleting key…
cdgriffith Nov 4, 2026
8a7937e
Merge PR #330: docs: correct optional dependency installation example…
cdgriffith Nov 4, 2026
8d20ee5
Consolidate 7.5.0 changelog and AUTHORS for merged PRs
cdgriffith Nov 4, 2026
79fc501
Fix stray changelog entry from #340
cdgriffith Nov 4, 2026
599e1a3
Format merged tests with black, tidy #305 test comments
cdgriffith Nov 4, 2026
9a8b4dd
Bump version to 8.0.0
cdgriffith Nov 4, 2026
f732efd
Add _box_internal_attrs for internal-only attributes on Box subclasse…
cdgriffith Nov 4, 2026
15a2acb
Merge PR #341: Preserve dict LIFO order in Box.popitem (@machines-6657)
cdgriffith Nov 4, 2026
9a303fb
Merge PR #323: Add a "merge" option for box_merge_lists (#263) (@Chri…
cdgriffith Nov 4, 2026
dd1c4e5
Merge PR #326: Create nested default_box keys on assignment (@gyanu2507)
cdgriffith Nov 4, 2026
4ef8610
Fix PR #326 edge cases: stale children, frozen boxes, pickling, dotte…
cdgriffith Nov 4, 2026
038ef7c
Move package metadata to pyproject.toml (PEP 621)
cdgriffith Nov 4, 2026
9d80d9c
Replace requirements files and black with uv dependency groups and ru…
cdgriffith Nov 4, 2026
b9c93d9
Use uv in GitHub workflows, update README and CONTRIBUTING for uv/ruf…
cdgriffith Nov 4, 2026
77b7cb5
Apply ruff format/lint
cdgriffith Nov 4, 2026
cd26bd1
Update type stubs: Self for copy/__copy__/__deepcopy__, _box_internal…
cdgriffith Nov 4, 2026
8746076
Finalize 8.0.0 changelog with a breaking changes section
cdgriffith Nov 4, 2026
ef0d795
Add bwanshoom to AUTHORS for the #269 suggestion
cdgriffith Nov 4, 2026
c54936a
Review fixes for CI supply chain and build config
cdgriffith Nov 4, 2026
15a3b14
Pin astral-sh/setup-uv to v10.3.3 commit (no floating v10 tag exists)
cdgriffith Nov 4, 2026
bd2d950
CI: pass setup-python interpreter to uv sync/venv instead of exportin…
cdgriffith Nov 4, 2026
8c61f4b
Merge PR #321: Convert ruamel YAML scalars to builtin types on load (…
cdgriffith Nov 4, 2026
ba1dac0
Fix #321 review issues: convert only numbers and bools, handle anchor…
cdgriffith Nov 4, 2026
d472d74
Skip the PyYAML backend test when PyYAML is not installed (cibuildwhe…
cdgriffith Nov 4, 2026
92c5c49
Merge PR #314: Case-insensitive ConfigBox key lookup (@binggao1230)
cdgriffith Nov 4, 2026
a5aeaf2
Rework #314: case-insensitive ConfigBox keys where the latest write wins
cdgriffith Nov 4, 2026
a7aaa6a
8.0.0 features: create_on_get off by default, subclass defaults, YAML…
cdgriffith Nov 4, 2026
78046df
Convert nested containers during BoxList in-place addition
theman6660 Nov 4, 2026
5a7ada1
Publish to PyPI with Trusted Publishing and pin actions to SHAs (#348)
cdgriffith Nov 4, 2026
7bf4819
Reach 100% line and branch coverage, enforce it in CI
cdgriffith Nov 4, 2026
81fbe1a
Add 80 edge case tests and fix the 5 bugs they found
cdgriffith Nov 4, 2026
b623bcc
Update development dependencies to their latest versions
cdgriffith Nov 4, 2026
98162a7
Keep options for dict | Box and dict + Box, class factories for defau…
cdgriffith Nov 4, 2026
344f600
Add comments on Box keys and BoxList items, kept through YAML (#184)
cdgriffith Nov 4, 2026
202c220
Comments: treat every YAML line break as a line break, reject control…
cdgriffith Nov 4, 2026
942ca2c
Merge PR #347: Convert nested containers during BoxList in-place addi…
cdgriffith Nov 4, 2026
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
15 changes: 0 additions & 15 deletions .black.toml

This file was deleted.

28 changes: 0 additions & 28 deletions .coveragerc

This file was deleted.

151 changes: 95 additions & 56 deletions .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
@@ -1,91 +1,130 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
# Builds and publishes to PyPI when a GitHub release is created.
# Every build job runs without secrets. A single publish job, whose only permission is
# id-token: write, uploads all distributions via PyPI Trusted Publishing (OIDC), so no PyPI
# password or token is stored in GitHub: https://docs.pypi.org/trusted-publishers/
# All actions are pinned to full commit SHAs; the comment shows the matching release tag.

name: Upload Python Package

on:
release:
types: [ created ]

jobs:
deploy-generic:
permissions: {}

jobs:
build-generic:
runs-on: ubuntu-latest
timeout-minutes: 20
permissions:
contents: read

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: '3.14'

- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine --upgrade

python-version: '3.15'

- name: Build and Publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
- name: Install uv
uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3

# Isolated build: Cython is not part of the build requirements, so this is the pure Python sdist and wheel
- name: Build and check
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
uv build
uvx twine==7.0.0 check dist/*

deploy-cython:
- name: Upload distribution artifact
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: dist-generic
path: dist/*
if-no-files-found: error

build-cython:
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest]
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
python-version: ["3.11", "3.12", "3.13", "3.14", "3.15"]
runs-on: ${{ matrix.os }}
timeout-minutes: 30
permissions:
contents: read

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
id: setup-python
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
- name: Install uv
uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine Cython>=3.0.11 --upgrade
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
uv venv --python "${{ steps.setup-python.outputs.python-path }}"
uv pip install "setuptools>=77" wheel "Cython>=3.3.1"
# No build isolation so the Cython installed above is used to build the compiled wheel
- name: Build and check
run: |
python setup.py bdist_wheel
twine upload dist/*
uv build --wheel --no-build-isolation
uvx twine==7.0.0 check dist/*
- name: Upload wheel artifact
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: dist-cython-${{ matrix.os }}-${{ matrix.python-version }}
path: dist/*.whl
if-no-files-found: error

deploy-cython-manylinux:
build-cython-manylinux:
runs-on: ubuntu-latest
timeout-minutes: 60
permissions:
contents: read

steps:
- uses: actions/checkout@v4
- name: Set up Python 3.13
uses: actions/setup-python@v5
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
python-version: "3.13"
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3

# Build targets and test commands are configured in [tool.cibuildwheel] in pyproject.toml
- name: Build wheels
run: |
python -m pip install --upgrade pip
pip install cibuildwheel setuptools wheel
python -m cibuildwheel --output-dir dist
env:
CIBW_BUILD: cp310-manylinux_x86_64 cp311-manylinux_x86_64 cp312-manylinux_x86_64 cp313-manylinux_x86_64
CIBW_BEFORE_BUILD: pip install Cython>=3.0.11 setuptools wheel
CIBW_BUILD_FRONTEND: "build; args: --no-isolation"
CIBW_BEFORE_TEST: pip install -r requirements.txt -r requirements-test.txt setuptools wheel twine Cython>=3.0.11
CIBW_BUILD_VERBOSITY: 1
CIBW_TEST_COMMAND: pytest {package}/test -vv

- name: Publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
pip install twine
twine upload dist/*-manylinux*.whl
run: uvx cibuildwheel==4.3.5 --output-dir dist

- name: Upload wheel artifact
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: dist-cython-manylinux
path: dist/*-manylinux*.whl
if-no-files-found: error

# Publishes only after every build succeeds, so a release is never left half uploaded
publish:
needs: [ build-generic, build-cython, build-cython-manylinux ]
runs-on: ubuntu-latest
timeout-minutes: 15
environment:
name: pypi
url: https://pypi.org/p/python-box
permissions:
id-token: write # Required for Trusted Publishing; the only permission this job has

steps:
- name: Download all distributions
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
with:
pattern: dist-*
path: dist
merge-multiple: true

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
Loading
Loading