This release is a pre-release and may not be stable for production use.
AutoPub
AutoPub enables project maintainers to release new package versions to PyPI by merging pull requests.
Environment
AutoPub is intended for use with continuous integration (CI) systems such as GitHub Actions, CircleCI, or Travis CI. Projects used with AutoPub are built via build and published via Twine. Contributions that add support for other CI and build systems are welcome.
Configuration
AutoPub settings can be configured via the [tool.autopub] table in the target project's pyproject.toml file or via environment variables.
Git Configuration
You can configure the git username and email used for release commits in three ways:
1. Via pyproject.toml (recommended for project-specific settings)
[tool.autopub.plugin_config.git]
git-username = "Your Name"
git-email = "your_email@example.com"
2. Via environment variables (recommended for CI/CD)
export GIT_USERNAME="release-bot[bot]"
export GIT_EMAIL="123456+release-bot[bot]@users.noreply.github.com"
Environment variables take precedence over pyproject.toml configuration.
3. Default values
If neither environment variables nor pyproject.toml configuration is provided, autopub will use:
- Username:
autopub - Email:
autopub@autopub
Legacy Configuration
For backward compatibility, the old configuration format is still supported:
[tool.autopub]
git-username = "Your Name"
git-email = "your_email@example.com"
However, this format is deprecated and will be removed in a future release. Please migrate to the plugin_config format shown above.
Release Files
Contributors should include a RELEASE.md file in their pull requests with two bits of information:
- Release type: major, minor, or patch
- Description of the changes, to be used as the changelog entry
Example:
Release type: patch
Add function to update version strings in multiple files.
Usage
The following autopub sub-commands can be used as steps in your CI flows:
autopub check: Check whether release file exists.autopub prepare: Update version strings and add entry to changelog.autopub build: Build the project.autopub commit: Add, commit, and push incremented version and changelog changes.autopub githubrelease: Create a new release on GitHub.autopub publish: Publish a new release.
For systems such as Travis CI in which only one deployment step is permitted, there is a single command that runs the above steps in sequence:
autopub deploy: Runprepare,build,commit,githubrelease, andpublishin one invocation.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file autopub-1.0.0a61.tar.gz.
File metadata
- Download URL: autopub-1.0.0a61.tar.gz
- Upload date:
- Size: 25.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.22 {"installer":{"name":"uv","version":"0.11.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
befb527c4735617727ebbb3081dc55ba7a9140619ec75b3597f039ce105a51a6
|
|
| MD5 |
8b51246b053646d9f7bdef4a9833ce31
|
|
| BLAKE2b-256 |
3809f0cd85d7a37cbb215da2579221322891e2ec92ae413b3c64a9d75df27891
|
File details
Details for the file autopub-1.0.0a61-py3-none-any.whl.
File metadata
- Download URL: autopub-1.0.0a61-py3-none-any.whl
- Upload date:
- Size: 30.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.22 {"installer":{"name":"uv","version":"0.11.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40be745a319fe8f67286af1c89582eef4652f1e97436475a534eb8863fd936d2
|
|
| MD5 |
55b9ab981a5fa8c53c4231be99f7ce82
|
|
| BLAKE2b-256 |
e65ab43524546514f9c678c680770fb3bcc28c1eb0e3a5f4b7dc5620d69cca3e
|