JSPM

  • Created
  • Published
  • Downloads 5491
  • Score
    100M100P100Q132171F
  • License MIT

semantic-release plugin to publish a python package to PyPI

Package Exports

  • semantic-release-pypi

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (semantic-release-pypi) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

semantic-release-pypi

semantic-release plugin to publish a python package to PyPI

Step Description
verifyConditions verify the environment variable PYPI_TOKEN
prepare Update the version in setup.cfg and create the distribution packages
publish Publish the python package to the specified repository (default: pypi)

Configuration

Environment variables

Variable Description
PYPI_TOKEN API token for PyPI
TWINE_REPOSITORY The repository (package index) to upload the package to.

Usage

The plugin can be configured in the semantic-release configuration file:

{
  "plugins": [
    "@semantic-release/commit-analyzer",
    "@semantic-release/release-notes-generator",
    "semantic-release-pypi",
  ]
}

Options

Option Type Default Description
setupPy str ./setup.py location of setup.py
distDir str dist directory to put the source distribution archive(s) in, relative to the directory of setup.py