Skip to content

Examples of Lambda: the public layers of a version of Pyjoyment, with the variable pyjoyment_version - #617

Merged
dex4er merged 1 commit into
mainfrom
lambda-layers-version
Nov 12, 2026
Merged

dex4er merged 1 commit into
mainfrom
lambda-layers-version

Conversation

@dex4er

@dex4er dex4er commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

The public layers of Pyjoyment-Lambda-Layers have the version of Pyjoyment in their names, as pyjoyment-0_3_0-python3_15, and their releases in their tags, as 0.3.0+2026.11.05. The examples of Lambda take the layers of a version of Pyjoyment, as the one that generate lambda-zip --function-only tells, for a function of the checkout of an older version.

Changes

  • examples/lambda, examples/lambda_stream, examples/lambda_zip: the variable pyjoyment_version
    • null by default: the aliases of the index of the latest release, pyjoyment-python3_15, as before, so the examples follow the layers of a new release without a change;
    • a version, as 0.3.0: the latest release whose tag has the prefix 0.3.0+, from the list of releases of the API of GitHub, sorted by published_at, as the API has an order of its own, and the layer pyjoyment-0_3_0-python3_15 of its index;
    • lambda_zip: the layer of Python of the same index, so that both layers are of one release;
    • a version without a release, as one that is not released yet, fails the plan with a precondition that points at public_layers=false;
    • the API is requested only with a version, as it answers 60 requests an hour without a token;
    • their README.md.
  • docs/guides/cookbook.rst and the skill deploy: the layers named with the version of Pyjoyment, the aliases of the latest release, and the releases of a version, whose layers come after the release of Pyjoyment.
  • Left out: the name of the layer in the output of generate lambda-zip --function-only, as the generator would need the naming of another repository, and a development version has no layer; it tells the version of Pyjoyment already.

Validation

  • The selection of the layers, in a copy of layers.tf and the variables without the provider of AWS, with tofu apply of outputs only:
    • null and 0.3.0 give the same arn:aws:lambda:eu-central-1:959435416781:layer:pyjoyment-0_3_0-python3_15:1, and lambda_zip the same python3_15-arm64:2;
    • 0.3.0 with runtime=python3.14 gives pyjoyment-0_3_0-python3_14:1;
    • 0.2.0 fails with the precondition;
    • public_layers=false reads nothing.
  • tofu validate and tofu fmt of the three examples.
  • trunk check, Sphinx with -W, t/docs.
  • tofu plan of examples/lambda and examples/lambda_stream, deployed, with pyjoyment_version null and 0.3.0: no changes, on pyjoyment-0_3_0-python3_15:1 (examples/lambda_zip has no deployment to plan against).
  • Deployments of examples/lambda and examples/lambda_stream on the layer of the index, and their tests with TEST_LAMBDA_URL passing.
  • After the release of the next Pyjoyment and its layers: null and the new version give the same ARN.

Closes #562

🤖 Generated with Claude Code

… the variable pyjoyment_version

The variable takes the layers of the latest release of Pyjoyment-Lambda-Layers whose tag has the version,
as pyjoyment-0_3_0-python3_15, and in lambda_zip the layer of Python of the same release, and without it
the aliases of the index of the latest release, as before. The cookbook and the skill deploy name the
layers with the version of Pyjoyment.

Closes #562

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dex4er dex4er added this to the 0.4.0 milestone Nov 12, 2026
@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 Pyjoyment | 🛠️ Build #35846102 | 📁 Comparing da099e4 against latest (2ef9633)

  🔍 Preview build  

1 file changed
± guides/cookbook.html

@github-actions

Copy link
Copy Markdown
Contributor

Tests

Job Tests Passed ✅ Skipped ⚠️ Failed ❌ Log
prove (python 3.12, Asyncio) 7469 7440 29 0 ✅ 131363243154
prove (python 3.12, Poll) 7441 7410 31 0 ✅ 131363243746
prove (python 3.13, Asyncio) 7469 7440 29 0 ✅ 131363243983
prove (python 3.13, Poll) 7441 7410 31 0 ✅ 131363243880
prove (python 3.14, Asyncio) 7500 7476 24 0 ✅ 131363243860
prove (python 3.14, Poll) 7472 7446 26 0 ✅ 131363243971
prove (python 3.15, Asyncio) 7500 7476 24 0 ✅ 131363243892
prove (python 3.15, Poll) 7472 7446 26 0 ✅ 131363243905
prove (python 3.15t, Asyncio) 7500 7476 24 0 ✅ 131363243847
prove (python 3.15t, Poll) 7472 7446 26 0 ✅ 131363244004
prove (python mise, Asyncio) 7579 7544 35 0 ✅ 131363243459
prove (python mise, Asyncio, Windows) 7300 7234 66 0 ✅ 131363243546
prove (python mise, Poll) 7551 7514 37 0 ✅ 131363243620
prove (python mise, Poll, Windows) 7272 7204 68 0 ✅ 131363243401
prove (python pypy3.12, Asyncio) 7469 7440 29 0 ✅ 131363243719
prove (python pypy3.12, Poll) 7441 7410 31 0 ✅ 131363244116
pytest (python 3.12, ubuntu-26.04-arm) 442 416 26 0 ✅ 131363243015
pytest (python 3.15, ubuntu-26.04-arm) 442 421 21 0 ✅ 131363243302
pytest (python 3.15, windows-2025) 442 393 49 0 ✅ 131363243462
servers (python 3.12) 54 54 0 0 ✅ 131363243513
servers (python 3.15) 53 53 0 0 ✅ 131363243982
All 120781 120149 632 0 ✅

The run of the workflow

@dex4er
dex4er merged commit 4564fe4 into main Nov 12, 2026
26 checks passed
@dex4er
dex4er deleted the lambda-layers-version branch November 12, 2026 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Examples of Lambda: the versioned public layers of Pyjoyment, with the variable pyjoyment_version

1 participant