Vertex project tools to assist with packaging.
Project description
A collection of a few common tools which are useful for Python packaging and CI purposes.
These tools can be invoked as Python modules from the Python command line (python -m <module path>). Available tools include the following:
- vtx_common.tools.github_release
This can be used to automatically push a Release up to github using a changelog file. Many values may automatically be resolved from environment variables. Some values may also come from setup.cfg files. The following config values are read from that location (under the section vtx_common:github_release):
- release-name
Name to prefix the release as.
- extra-lines
Additional lines appended to the changelog. This setting may only be set via setup.cfg.
- remove-urls
Boolean to remove lines starting as RST URL links from changelog lines.
- dry-run
Do a dry run. Still requires a tag to be parsable from a environment variable.
- changelog
The changelog file to parse.
- vtx_common.tools.pep8_staged_files
Runs autopep8 against the repository. Must be run from the root of the repository. Can use the following Bash alias to make this easier to invoke:
alias pep8staged='python -m vtx_common.tools.pep8_staged_files'
- vtx_common.tools.pre_commit
This is used as a Git pre-commit hook. This can be easily installed via the following command:
echo "python -m vtx_common.tools.pre_commit" > .git/hooks/pre-commit && chmod +x .git/hooks/pre-commit
This will run pycodestyle against Python files to be committed. It assumes that there is a setup.cfg file in the root directory of the repo.
- vtx_common.tools.buildpkg
This will execute rstorm files for a given storm package file following Vertex conventions, in order to generate markdown documentation for the package that can be viewed in the Synapse UI. This requires having the Synapse python package available, as well as pandoc. Pandoc should be ve`rs`ion 2.14.0.1 or greater.
This package also installs bump2version, pytest, pytest-cov and pytest-xdist packages.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file vtx-common-0.1.23.tar.gz
.
File metadata
- Download URL: vtx-common-0.1.23.tar.gz
- Upload date:
- Size: 19.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c845a4dd9cc5b760ab96c4aec31fd273d36cdc6ed736b18331fcf7d6ada168b7 |
|
MD5 | 7eee4cfacd67f31fbea1adbd4f50b877 |
|
BLAKE2b-256 | 6c41ed3b8d3bfa1252f2f5e6b697b09c2cb8882cb5e0b9f98845e63a735452e5 |
File details
Details for the file vtx_common-0.1.23-py311-none-any.whl
.
File metadata
- Download URL: vtx_common-0.1.23-py311-none-any.whl
- Upload date:
- Size: 22.5 kB
- Tags: Python 3.11
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f601640901e1d5784beb8934b08f8639591a0f1367a62eea5750c974c7b3f587 |
|
MD5 | 21281a277535fbb3608d3db9216dd062 |
|
BLAKE2b-256 | da25b1ec46d53265c08f7813e3fcce190cfd83f3fa1e3fec233eba827e8fb7ce |