Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Commit

Permalink
Update version and add automatic upload to PyPI in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mondeja committed Jun 7, 2021
1 parent 01871e9 commit 12e7601
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 7 deletions.
6 changes: 1 addition & 5 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
[bumpversion]
current_version = 0.0.2
current_version = 0.2.0

[bumpversion:file:waves/__init__.py]

[bumpversion:file:setup.cfg]
search = version = {current_version}
replace = version = {new_version}

[bumpversion:file:docs/install.rst]
search = v{current_version}/waves-{current_version}
replace = v{new_version}/waves-{new_version}
18 changes: 18 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,24 @@ jobs:
with:
path: ./dist/*.whl

pypi-upload:
name: Upload to PyPI
needs:
- build-sdist
- build-wheel
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
with:
name: artifact
path: dist
- uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
# repository_url: https://test.pypi.org/legacy/
skip_existing: true

release:
name: Release
needs:
Expand Down
6 changes: 6 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
waves
=====

.. image:: https://img.shields.io/pypi/v/waves?logo=pypi&logoColor=white
:target: https://pypi.org/project/waves/
:alt: PyPI
.. image:: https://img.shields.io/pypi/pyversions/waves?logo=python&colorColor=white
:target: https://pypi.org/project/waves/
:alt: Python versions
.. image:: https://img.shields.io/github/workflow/status/mondeja/waves/CI?logo=github
:target: https://github.com/mondeja/waves/actions?query=workflow%3A%22CI%22
:alt: Build status on Github Actions
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = waves
version = 0.0.2
version = 0.2.0
description = Utility to work with WAV files in a simple way.
long_description = file: README.rst
long_description_content_type = text/x-rst
Expand Down
2 changes: 1 addition & 1 deletion waves/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
__all__ = ("Sound",)

__title__ = "waves"
__version__ = "0.0.2"
__version__ = "0.2.0"

0 comments on commit 12e7601

Please sign in to comment.