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.

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.11.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

vtx_common-0.1.11-py37-none-any.whl (17.3 kB view details)

Uploaded Python 3.7

File details

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

File metadata

  • Download URL: vtx-common-0.1.11.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.11

File hashes

Hashes for vtx-common-0.1.11.tar.gz
Algorithm Hash digest
SHA256 023ef6332f118e9c528ab11d6f676abe23117b9db97172ce7bf7d3ebbb4fdf50
MD5 5e91cd3d63b23d3f4684df0a05bf8d3c
BLAKE2b-256 a4e6b377a48ac77f257455bffc1c3dca5cc54500c8e5c6f6e792d7f4e2907fed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vtx_common-0.1.11-py37-none-any.whl
  • Upload date:
  • Size: 17.3 kB
  • Tags: Python 3.7
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.11

File hashes

Hashes for vtx_common-0.1.11-py37-none-any.whl
Algorithm Hash digest
SHA256 8667a371c833e6da2da85c3bf5be36005d7decee605fc8392c63edec17ce2d1e
MD5 ac2ce6e863c8eb473f8340ba12815347
BLAKE2b-256 f2507b19dfb3d736bc601284e94d4aff7e045119e15f3087303987ae973781ab

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