Repository navigation
Releases
v0.6.0
AWS Glue Toolkit v0.6.0
AWS Glue Toolkit v0.6.0 adds support for AWS Glue 6.0 (Spark 4.1.1, Python 3.13), launches the project documentation site under the awesome-glue organization, and widens packaging compatibility while modernizing CI, release automation, and static analysis.
What's new
AWS Glue 6.0 support
gtk now bundles runtime metadata and package constraint pins for AWS Glue 6.0 (public.ecr.aws/glue/aws-glue-libs:6.0) alongside 5.0 and 5.1:
[tool.aws-glue-toolkit]
glue_version = "6.0"| Glue version | Docker image | Spark | Python | Scala | Hudi | Iceberg | Delta Lake |
|---|---|---|---|---|---|---|---|
5.0 |
public.ecr.aws/glue/aws-glue-libs:5 |
3.5.4 |
3.11 |
2.12.18 |
0.15.0 |
1.7.1 |
3.3.0 |
5.1 |
public.ecr.aws/glue/aws-glue-libs:5.1 |
3.5.6 |
3.11 |
2.12.18 |
1.0.2 |
1.10.0 |
3.3.2 |
6.0 |
public.ecr.aws/glue/aws-glue-libs:6.0 |
4.1.1 |
3.13 |
2.13.17 |
1.1.1 |
1.11.0 |
4.2.0 |
gtk build, gtk run, and gtk test resolve host wheels against Python 3.13 (manylinux2014_x86_64) and pin preinstalled Glue 6.0 packages (such as boto3==1.42.84, numpy==2.4.4, pandas==2.3.3, pyarrow==23.0.1, and pytest==9.0.3).
Documentation site & GitHub Pages
Added a Zensical documentation site (zensical.toml, docs/index.md) hosted at awesome-glue.github.io/aws-glue-toolkit, including a just docs local preview recipe and automated GitHub Pages deployment on pushes to main.
What's improved
Expanded packaging compatibility
Widened the runtime packaging dependency constraint from >=24,<26 to >=24,<28 (compatible with Glue 6.0's packaging==26.0) and uv_build from >=0.11,<0.12 to >=0.11,<1, refreshing uv.lock (packaging 25.0 → 26.3, cyclopts 4.11.2 → 4.25.3).
Organization migration to awesome-glue
Updated repository, issue tracker, changelog, security advisory, and code-of-conduct URLs across pyproject.toml, README.md, CODE_OF_CONDUCT.md, and SECURITY.md from HH-MWB/aws-glue-toolkit to awesome-glue/aws-glue-toolkit, and updated LICENSE copyright to Awesome Glue.
Public requirements helpers & internal typing hygiene
Exported pip_workspace and volume_mounts_for in aws_glue_toolkit.requirements.__all__ (retaining _pip_workspace and _volume_mounts_for aliases for compatibility), added super().__init__(message) to GtkCommandError.__init__, extracted _DEFAULT_JOB_DIR in cli.py, and aligned internal modules with strict Pyright, Ruff, Mypy, and Bandit checks.
CI, dependency audit, & release automation
- Added a
Dependency Auditjob (uv audit),main/developtriggers, and PR concurrency cancellation to.github/workflows/ci.yml. - Updated
.github/workflows/release.ymlso prereleases publish to TestPyPI, stable releases publish to PyPI, and both skip existing artifacts (skip-existing: true). - Replaced
pylintwith strictpyright, addedtaplo,yamllint --strict,actionlint, anduv-lockto.pre-commit-config.yaml, and updatedjust lintto check--all-filesby default.
v0.5.0
AWS Glue Toolkit v0.5.0
AWS Glue Toolkit v0.5.0 reduces gtk to three commands (build, run, test), removes gtk check in favor of host-default build, and lets direct dependencies override Glue image package pins. Documentation is streamlined for PyPI and onboarding.
What's new
Three commands — no gtk check
gtk exposes build, run, and test only. Dependency validation against bundled Glue pins happens as part of gtk build (default --mode host, no Docker), which also writes deployment zips.
gtk build . # host pip (default); writes zips
gtk build . --mode container # worker-arch pip in Glue image
gtk run .
gtk test .Replacing gtk check
| v0.4 | v0.5 |
|---|---|
gtk check . (host dry-run, no artifacts) |
gtk build . (host resolve + zips) |
gtk check . --mode container |
gtk build . --mode container |
There is no artifact-free check in v0.5.
Direct overrides of image-bundled packages
Glue workers ship many libraries at fixed versions (bundled runtime metadata). By default those versions are pip constraints. To ship a different version of a package already on the image, add it as a direct dependency in [project].dependencies or merged [tool.aws-glue-toolkit].dependencies. That name is removed from pip constraints so your spec wins on build, run, and test. If the resolved version still matches the image pin, the wheel is omitted from gluewheels as usual.
Example (Glue 5.1 image ships pandas==2.3.3):
[project]
dependencies = ["pandas==2.2.3"]Positional job directory on gtk build
gtk build [JOB-DIR] uses the same positional job directory pattern as run and test.
What's improved
Host pip configuration snapshot
For build --mode container, run, and test, container pip snapshots the host’s effective pip settings via pip’s Configuration API (configuration files and PIP_* environment variables) into a mounted pip.conf. Default build --mode host uses host pip configuration as-is.
Documentation
README is shorter and organized by task (installation, example, configuration, commands, build artifacts, exit codes). Flag and behavior detail is delegated to gtk COMMAND --help. CONTRIBUTING documents the stable command-line interface and architecture layout.
Build pip failures and exit codes
Pip and dependency resolution failures on build return exit code 65 (DATAERR), consistent with run and test.
Breaking changes from v0.4.0
gtk checkremoved — usegtk build(see migration table above). Automation that depended on check completing without writing zips must usebuildand accept artifacts, or adjust scripts.- Python library imports — internal modules were renamed for clarity (
dependencies→requirements,docker→container,app→workflows,paths→mounts; wheel logic inwheels.py). Update imports if you use the package as a library. - README scope — extended guides (dependency-form tables, platform notes, pytest forwarding, and similar) are no longer in the README; use command help or your own notes for advanced topics.
v0.4.0
AWS Glue Toolkit v0.4.0
AWS Glue Toolkit v0.4.0 extends Docker-free defaults to gtk check, adds --platform native|worker on run/test, and supports monorepo relative file: deps under [tool.aws-glue-toolkit.dependencies].
What's new
Host check — gtk check --mode host
Default check mode. Same worker-oriented gluewheels recipe as build --mode host (temp dir, discarded). No Docker.
gtk check . # default; no DockerContainer check opt-in — gtk check --mode container
Same as v0.3: pip install --dry-run in the Glue image (worker arch; QEMU on ARM).
gtk check . --mode containerRun and test platform — gtk run|test --platform native|worker
native(default): omit Docker--platformso the multi-arch Glue image matches the host (e.g. arm64 on Apple Silicon).worker: forceworker_docker_platformfrom runtime metadata (todaylinux/amd64).
gtk run .
gtk run . --platform worker
gtk test . --platform workerMonorepo path dependencies
Optional [tool.aws-glue-toolkit.dependencies] list (merged after [project].dependencies) for relative file: specs. [project].dependencies still works.
What's improved
Docker optional for gtk check
Docker is required only for run, test, check --mode container, and build --mode container.
Clearer ARM and worker-platform guidance
README and architecture updates; improved Docker and worker-platform error messages.
gtk build --mode host|container is unchanged from v0.3. Artifact names, Glue parameters (.dependencies.zip / .gluewheels.zip), and Glue pin omission are unchanged.
Breaking changes from v0.3.0
gtk checkdefaults to--mode host— no Docker required for check. Pass--mode containerfor the previous always-in-Glue dry-run.gtk run/gtk testdefault to--platform native— v0.3 always ran containers withlinux/amd64. Pass--platform workerto match cloud Glue workers and prior local behavior.- Explicit flags only — no silent switch between host/container or native/worker.
Exit codes are unchanged (69 Docker unavailable; 65 unsatisfiable with Glue pins; 70 build/pip failure; etc.).
v0.3.0
AWS Glue Toolkit v0.3.0
AWS Glue Toolkit v0.3.0 makes gtk build work without Docker by default: host-side pip packages gluewheels with worker-portable wheel tags, while --mode container preserves v0.2 behavior.
What's new
Host gluewheels — gtk build --mode host
Default build mode. Host python -m pip packages gluewheels with no Docker:
- Path / VCS deps →
pip wheel --no-deps - PyPI pins →
pip download --platformfor the Glue worker platform, or sdist→wheel when no compatible binary exists - Fails if any wheel is not
anyor the worker platform tag from runtime metadata
Host pip config applies directly (no snapshot/mount).
gtk build . # default; no DockerContainer build opt-in — gtk build --mode container
Same as v0.2: pip wheel in the Glue image (linux/amd64). Host pip config is snapshotted into a mounted pip.conf. On ARM hosts this needs QEMU (or similar) unless host mode produces portable wheels.
gtk build . --mode containerWhat's improved
Docker optional for gtk build
Docker is required only for check, run, test, and build --mode container.
Worker-targeted wheel selection
Bundled runtime pip_platform and Python version now drive host pip download --platform (previously loaded but unused).
Artifact names, Glue parameters (.dependencies.zip / .gluewheels.zip), and Glue pin omission are unchanged from v0.2.
Breaking changes from v0.2.0
gtk builddefaults to host-side pip — no Docker required. Pass--mode containerfor worker-archpip wheel(e.g. compiled packages, or when host mode cannot produce portable wheels).- Host pip config in host build mode — effective host settings apply directly; the container pip snapshot is used only for
--mode container,check, and dep install onrun/test.
check, run, and test are unchanged. Exit codes are unchanged (69 Docker unavailable; 70 build/pip failure including non-portable wheels in host mode).
v0.2.0
AWS Glue Toolkit v0.2.0
AWS Glue Toolkit v0.2.0 expands gtk from packaging-only into a local Glue development loop: run jobs and tests against the official Glue Docker images, with richer dependency forms and container-faithful pip.
What’s new
Local job execution — gtk run
spark-submit on the entry script in the Glue image for glue_version. Passes --JOB_NAME from project.name unless overridden. Extra --key value tokens after [JOB-DIR] go to getResolvedOptions. Shuts down the Spark driver so the container returns.
Local testing — gtk test
python3 -m pytest in the Glue image. PYTHONPATH includes source (and the install target when deps are present). Default target is the optional tests field (default: tests):
[tool.aws-glue-toolkit]
tests = "tests"Path and git dependencies
project.dependencies now accepts file: (in-job or monorepo) and git/VCS requirements alongside PyPI. Path deps must be installable packages (pyproject.toml or setup.py); editable installs (-e) remain rejected.
dependencies = [
"pandas>=2",
"my-lib @ file:./libs/my-lib",
"shared @ file:../packages/shared",
"tool @ git+https://github.com/org/tool.git@v1",
]Host pip configuration in containers
For container pip (check, build, and dep install on run / test), gtk snapshots the host’s effective pip settings (files + PIP_*) into a temporary pip.conf, mounts it, and sets PIP_CONFIG_FILE. Host-local keys (cache-dir, cert, target, and similar) are omitted.
Ephemeral dependency install on run / test
When project.dependencies is non-empty, packages install into a temporary PYTHONPATH target inside the container (Glue pins as constraints) before the job or tests run.
What’s improved
Docker-backed gtk check and gtk build
Dependency resolve and gluewheels pip wheel now run inside the Glue image—same Python and platform as the worker—not on the host. Artifact names and Glue parameters (.dependencies.zip / .gluewheels.zip) are unchanged from v0.1.0.
Runtime metadata for Glue 5.0 and 5.1 now includes the official image references (public.ecr.aws/glue/aws-glue-libs:5 and :5.1).
Exit codes
| Code | Meaning |
|---|---|
69 |
Docker not available or could not be started |
For run / test, a successful Docker launch returns the container command’s exit code (or pip’s if install fails). Existing codes (65, 66, 70, 78) are unchanged; 78 also covers invalid dependencies.
Breaking changes from v0.1.0
- Docker is required for all
gtkcommands, includingcheckandbuild(previously host-side pip). - Dependency resolve and gluewheels
pipexecute in the Glue container, not on the host.
v0.1.0
AWS Glue Toolkit v0.1.0
We are pleased to announce the first public release of AWS Glue Toolkit, a command-line utility that streamlines the AWS Glue development lifecycle. The toolkit lets teams validate and package Glue jobs locally—before deployment—using dependency pins that mirror the target Glue runtime.
This release introduces the gtk command and establishes the project's core workflow: describe a job in pyproject.toml, verify its dependencies with gtk check, and produce deployment-ready artifacts with gtk build.
Overview
Each Glue job is defined as a directory containing a pyproject.toml, with toolkit settings under the [tool.aws-glue-toolkit] table. For example,
[tool.aws-glue-toolkit]
glue_version = "5.1"
source = "src"
script = "__main__.py"Features
Dependency validation — gtk check
Resolves the job's declared dependencies against the bundled runtime pins for the configured Glue version, using the Glue worker's Python version and platform tag. Surfaces unsatisfiable dependencies early, without writing any files.
Artifact packaging — gtk build
Produces two deployment archives in the job directory:
| Artifact | Glue parameter | Contents |
|---|---|---|
{name}-{version}.dependencies.zip |
--extra-py-files |
Project .py sources, excluding the entry script |
{name}-{version}.gluewheels.zip |
--additional-python-modules |
Wheels and requirements.txt, omitting packages already present on the Glue image |
Bundled runtime metadata
Ships with curated dependency pins for Glue 5.0 and Glue 5.1, so dependency resolution reflects the actual managed runtime.
Predictable exit codes
Failures map to standard BSD sysexits.h codes for reliable scripting and CI integration:
| Code | Meaning |
|---|---|
65 |
Dependencies unsatisfiable against the Glue runtime pins |
66 |
pyproject.toml missing or unreadable |
70 |
Build pipeline failure |
78 |
Invalid configuration, job layout, or unsupported Glue version |
Installation
Requires Python 3.11 or later.
pip install aws-glue-toolkitCompatibility and support
- Supported Glue runtimes: 5.0 and 5.1.
- As an early
0.xrelease, the public interface may evolve between minor versions; changes will be documented in the release notes.
License
Released under the MIT License.