Skip to content

Commit

Permalink
docs: update README
Browse files Browse the repository at this point in the history
  • Loading branch information
abichinger committed Sep 27, 2023
1 parent 48b58ee commit ef38c9c
Showing 1 changed file with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,28 @@
# semantic-release-pypi
semantic-release plugin to publish a python package to PyPI
# 📦🐍 semantic-release-pypi
[semantic-release](https://semantic-release.gitbook.io/semantic-release/) plugin to publish a python package to PyPI

<a href="https://www.npmjs.com/package/semantic-release-pypi">
<img alt="npm latest version" src="https://img.shields.io/npm/v/semantic-release-pypi">
</a>
<a href="https://github.com/abichinger/semantic-release-pypi/actions?query=workflow%3ATest+branch%3Amain">
<img alt="Build states" src="https://github.com/abichinger/semantic-release-pypi/workflows/Test/badge.svg">
</a>

## Requirements

- [Node.js](https://semantic-release.gitbook.io/semantic-release/support/node-version) >= 18.0.0
- Python 3
- setuptools - other packaging tools like Poetry or Hatch are not supported
- `version` must **not be set** inside `setup.py`

## Steps

| Step | Description
| ---- | -----------
| ```verifyConditions``` | <ul><li>verify the environment variable ```PYPI_TOKEN```</li><li>verify ```PYPI_TOKEN``` is authorized to publish on the specified repository</li><li>verify that `version` is not set inside `setup.py` (**version will be set in `setup.cfg`**)</li><li>check if the packages `setuptools`, `wheel` and `twine` are installed</li></ul>
| ```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 | Required | Default
Expand Down Expand Up @@ -79,5 +93,11 @@ source init.sh

- Fork from this repository
- Run `source init.sh`
- Add your changes
- Make sure your code passes all unit tests by running `yarn test`
- Issue a PR
- Run `yarn lint` to ensure your code adheres to the linting rules
- Issue a PR

## Alternatives

[Python Semantic Release](https://github.com/python-semantic-release/python-semantic-release)

0 comments on commit ef38c9c

Please sign in to comment.