November 30 · Give the receiver an installable command
Can a clean environment install and run the inherited workflow without changing sys.path or guessing which file starts it?
Today’s sequence follows Alex Reinhart’s Packaging Code, updated to a pyproject.toml and src/ layout following current Python Packaging Authority guidance.
Current reference: PyPA packaging projects and command-line tools.
You should be able to:
sys.path tricks,pyproject.toml,Questions a receiver should not have to ask:
Packaging makes these contracts explicit.
Keep useful logic out of top-level side effects.
Importing the module should not refresh production data.
Package boundaries should reflect responsibilities.
Take one inherited script and mark configuration, I/O, transformation, validation, and CLI behavior. Propose two or three modules and one entry point.
Inside the package:
Do not append project paths to sys.path in production code.
pyproject.toml names the build contractCommit dependency metadata—not a virtual environment.
After installation:
The command is the receiver’s stable entry point.
Do not package .env, credentials, raw client data, or local caches.
Create a project name, supported Python version, runtime dependencies, and CLI entry point for the inherited workflow.
Run the metadata through one teammate: can they identify the command and configuration without opening the source?
Produces a source distribution and wheel in dist/.
The wheel is the installable artifact; the repository remains the collaboration source.
Then run the smallest-success command with test-safe configuration.
Useful while editing, but not proof that the built wheel contains everything required.
At minimum:
--help and invalid input,DATABASE_URL.Build and install the inherited package in a clean environment. Record the first failure, classify its hidden dependency, fix it, and repeat.
A receiver needs to know:
final_v2_really_final.py is not release management.
Package one inherited refresh or report path and add the wheel-install test to the receiver evidence pack.
Small and reliable beats packaging every experiment.
Homework 3 may use packaging as its tested extension. Link to pyproject.toml, source layout, built artifact, clean-install log, and smallest-success output.
Next: run the receiver acceptance test and shape the final client readout.
Adapted from Alex Reinhart · MADS Computing