From d63ec84a75291b81049c881dc48ecc1e88ee7dbb Mon Sep 17 00:00:00 2001 From: Pablo Albornoz Date: Wed, 1 Jul 2020 04:42:53 -0400 Subject: [PATCH] release setup and version boost --- .github/workflows/pypi-release.yml | 31 ++++++++++++++++++++++++++++++ setup.py | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/pypi-release.yml diff --git a/.github/workflows/pypi-release.yml b/.github/workflows/pypi-release.yml new file mode 100644 index 0000000..1d8f448 --- /dev/null +++ b/.github/workflows/pypi-release.yml @@ -0,0 +1,31 @@ +# This workflows will upload a Python Package using Twine when a release is created +# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries + +name: Upload Python Package + +on: + release: + types: [created] + +jobs: + deploy: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine + - name: Build and publish + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} + run: | + python setup.py sdist bdist_wheel + twine upload dist/* diff --git a/setup.py b/setup.py index 04d3efc..6a1659f 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ def readme(): return f.read() setup(name='pykhipu', - version='0.1.4', + version='0.1.5', description='Wrapper for the Khipu payment service API v2.0', long_description=readme(), classifiers=[