Skip to content

Commit

Permalink
feat: setup prod pypi workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
rado0x54 committed Feb 13, 2021
1 parent 1df9220 commit 5289e85
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 18 deletions.
26 changes: 10 additions & 16 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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/[email protected]
# 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/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""PySnoo setup script."""
from setuptools import setup

_VERSION = '0.0.3'
_VERSION = '0.1.0'


def readme():
Expand All @@ -22,7 +22,7 @@ def readme():
author_email='[email protected]',
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',
Expand Down

0 comments on commit 5289e85

Please sign in to comment.