multipackage.data.scripts.release_component module

Release script to automatically release a component onto pypi.

Summary

Functions:

build_component Create an sdist and a wheel for the desired component.
build_parser Create an argument parser.
check_component Make sure the package version in setuptools matches what we expect it to be.
generate_slack_message Format a nice slack message about the release.
main Main entrypoint for release_component.py script.
send_slack_message Send a message to a slack channel.
upload_component Upload a given component to pypi
verify_python_version Verify that we are on an appropriate python version to do the release.

Data:

DESCRIPTION str(object=’‘) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
VERSION str(object=’‘) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

Reference

multipackage.data.scripts.release_component.build_parser()[source]

Create an argument parser.

multipackage.data.scripts.release_component.verify_python_version(expected)[source]

Verify that we are on an appropriate python version to do the release.

multipackage.data.scripts.release_component.generate_slack_message(distribution, version, notes, check=False)[source]

Format a nice slack message about the release.

multipackage.data.scripts.release_component.send_slack_message(webhook, message_json)[source]

Send a message to a slack channel.

multipackage.data.scripts.release_component.check_component(path, expected_version)[source]

Make sure the package version in setuptools matches what we expect it to be.

multipackage.data.scripts.release_component.build_component(component, universal)[source]

Create an sdist and a wheel for the desired component.

multipackage.data.scripts.release_component.upload_component(component_path, repo='pypi', username=None, password=None)[source]

Upload a given component to pypi

The pypi username and password must either be specified in a ~/.pypirc file or in environment variables PYPI_USER and PYPI_PASS

multipackage.data.scripts.release_component.main(argv=None)[source]

Main entrypoint for release_component.py script.