Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vtx-common-0.1.17.tar.gz (17.7 kB view details)

Uploaded Source

Built Distributions

vtx_common-0.1.17-py38-none-any.whl (20.2 kB view details)

Uploaded Python 3.8

vtx_common-0.1.17-py37-none-any.whl (20.2 kB view details)

Uploaded Python 3.7

File details

Details for the file vtx-common-0.1.17.tar.gz.

File metadata

  • Download URL: vtx-common-0.1.17.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.15

File hashes

Hashes for vtx-common-0.1.17.tar.gz
Algorithm Hash digest
SHA256 d9c65fcf19e094100da7b5e3c017e67ed7bb70d48dbf1d6ea620a9d8bd79d138
MD5 fef9f36cab505b233f7180f549a248bc
BLAKE2b-256 b93915bdcdfd3f1cae99cde347aa761f98ba90c239ff64ef7209a3abd3b72915

See more details on using hashes here.

File details

Details for the file vtx_common-0.1.17-py38-none-any.whl.

File metadata

  • Download URL: vtx_common-0.1.17-py38-none-any.whl
  • Upload date:
  • Size: 20.2 kB
  • Tags: Python 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.15

File hashes

Hashes for vtx_common-0.1.17-py38-none-any.whl
Algorithm Hash digest
SHA256 3cb8085c5cc87a80c5a1d781766e5b36c56f3bd73d2b9c2f36fd2e94f44a9902
MD5 d990a4e4ca9468f0cd76f46b85ca72d0
BLAKE2b-256 fb80f3fb4bf3cd45f3c9db83e6e469544e8e47e7243b77a8d21eea3f689baefc

See more details on using hashes here.

File details

Details for the file vtx_common-0.1.17-py37-none-any.whl.

File metadata

  • Download URL: vtx_common-0.1.17-py37-none-any.whl
  • Upload date:
  • Size: 20.2 kB
  • Tags: Python 3.7
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.15

File hashes

Hashes for vtx_common-0.1.17-py37-none-any.whl
Algorithm Hash digest
SHA256 aedf571ad66d51cacc42a37d3da10fb4186228a8d54c42339799e6c23eaae4a1
MD5 91dd29fad1d175237cbca1633e08fa38
BLAKE2b-256 4ecfc4ed65a7a8e99d5406fc8eab7cb43ebae4880f65a9ff13bf7ec87ad689b6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page