This release is a pre-release and may not be stable for production use.
wj-publish
Publish WaterJuice projects: upload platform wheels to PyPI and push built documentation into the git repository that Cloudflare Pages serves.
wj-publish is the publish step that runs after a project is built — the WaterJuice-specific
successor to cal-publish-python, trimmed to the one PyPI upload method and the one docs
method actually used. It is a small pure-Python tool.
Install
pip install wj-publish
# or
uvx wj-publish --help
Usage
wj-publish [options] DIR
DIR is the build output directory (usually output/) containing the .whl files and the
<project>-<version>-docs.zip. By default both PyPI and docs are published.
wj-publish output/ # publish wheels + docs
wj-publish --pypi-only output/ # wheels only
wj-publish --docs-only output/ # docs only
wj-publish --force output/ # overwrite an existing docs version
wj-publish --example-config # print a starter config
| Option | Description |
|---|---|
-c, --config FILE |
Config file (default: $WJ_PUBLISH_CONFIG or ~/.config/wj-publish/config.json) |
-p, --profile NAME |
Profile (default: $WJ_PUBLISH_PROFILE or [tool.wj-publish] in pyproject.toml) |
--pypi-only / --docs-only |
Limit what is published |
-f, --force |
Overwrite an existing docs version |
-v, --verbose |
Verbose output |
--example-config |
Print an example config file and exit |
--version / --help |
Info and exit |
How it works
- PyPI — uploads each
.whlwithtwineto the configured repository (the public PyPI registry by default), using token authentication. - Docs —
gitmode: keeps its own cached clone of the docs repository, drops the docs into<project>/<version>/, optionally runs a configuredindex_command(the WaterJuice docs repo uses its owntools/gen_index.py), then commits and pushes. Cloudflare Pages serves the result athttps://docs.waterjuice.org/<project>/.
External tool needed at runtime: git (for the docs push). twine is a bundled dependency.
Configuration
A JSON file with named profiles (default ~/.config/wj-publish/config.json):
{
"profiles": {
"waterjuice": {
"pypi": {
"token": "pypi-AgEI..."
},
"docs": {
"mode": "git",
"repo": "git@github.com:WaterJuice/docs.git",
"index_command": "python3 tools/gen_index.py"
}
}
}
}
Generate a starter file with wj-publish --example-config. Every value can be overridden by
a WJ_PUBLISH_* environment variable (so CI can run with no config file). See
config.example.json and the
Configuration docs for the full reference.
Build
make build # build the wheel + docs into output/
make publish # publish output/ (dogfoods wj-publish)
make check # ruff lint + format check
Licence
Released under the Unlicense — public domain.
Metadata
Release files for wj-publish 1.0.0b4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wj_publish-1.0.0b4-py3-none-any.whl | Python 3 | none | any | Details for wj_publish-1.0.0b4-py3-none-any.whl |
Release files / wj_publish-1.0.0b4-py3-none-any.whl
| Download URL | wj_publish-1.0.0b4-py3-none-any.whl |
|---|---|
| Size | 27.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bf496ed2a7e4726a904bb648b97d375be9dd677aac1d3438d23e60eb5c931d06
|
|
BLAKE2b-256 checksum How to use checksums |
642e9effb4a963559c51669bf95d8bed178dc5c93e4dacce680f0fc4d004ebad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Security for wj-publish 1.0.0b4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.