From 5289e852a757b28eb41ecd0e7d4f2349b65a1aae Mon Sep 17 00:00:00 2001 From: Martin Riedel Date: Sat, 13 Feb 2021 13:20:53 -0500 Subject: [PATCH] feat: setup prod pypi workflow. --- .github/workflows/publish.yaml | 26 ++++++++++---------------- setup.py | 4 ++-- 2 files changed, 12 insertions(+), 18 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 2549c35..640cc58 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -1,12 +1,8 @@ name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI on: - push: - tags: - - v[0-9]+.[0-9]+.* # add .* to allow dev releases - branches: - - develop - - master + release: + types: [created] jobs: publish: @@ -34,17 +30,15 @@ jobs: - name: Build Distribution run: | python setup.py sdist bdist_wheel - - name: Publish package to TestPyPI - if: github.event_name == 'push' && !startsWith(github.ref, 'refs/tags') - uses: pypa/gh-action-pypi-publish@master - with: - user: __token__ - password: ${{ secrets.TEST_PYPI_API_TOKEN }} - skip_existing: true - repository_url: https://test.pypi.org/legacy/ +# - name: Publish package to TestPyPI +# uses: pypa/gh-action-pypi-publish@v1.4.2 +# with: +# user: __token__ +# password: ${{ secrets.TEST_PYPI_API_TOKEN }} +# skip_existing: true +# repository_url: https://test.pypi.org/legacy/ - name: Publish package - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') - uses: pypa/gh-action-pypi-publish@master + uses: pypa/gh-action-pypi-publish@v1.4.2 with: user: __token__ password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/setup.py b/setup.py index 4b44367..4a96017 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ """PySnoo setup script.""" from setuptools import setup -_VERSION = '0.0.3' +_VERSION = '0.1.0' def readme(): @@ -22,7 +22,7 @@ def readme(): author_email='web@riedel-it.de', url='https://github.com/rado0x54/pysnoo', license='MIT', - python_requires='>=3.7', + python_requires='>=3.7, <4', include_package_data=True, install_requires=['oauthlib', 'aiohttp', 'pubnub>=5.0.0'], test_suite='tests',