diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml new file mode 100644 index 0000000..dd9c05a --- /dev/null +++ b/.github/workflows/publish-to-pypi.yml @@ -0,0 +1,37 @@ +name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI +on: [push, release] + +jobs: + build-n-publish: + name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI + runs-on: ubuntu-18.04 + strategy: + matrix: + python-version: [3.8] + + steps: + - uses: actions/checkout@master + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + + - name: Install pypa/build + run: python -m pip install setuptools build wheel --user + + - name: Build a binary wheel + run: python setup.py sdist bdist_wheel + + - name: Publish distribution 📦 to Test PyPI + uses: pypa/gh-action-pypi-publish@master + with: + password: ${{ secrets.TEST_PYPI_API_TOKEN }} + repository_url: https://test.pypi.org/legacy/ + skip_existing: true + + - name: Publish distribution 📦 to PyPI + if: startsWith(github.ref, 'refs/tags') + uses: pypa/gh-action-pypi-publish@master + with: + password: ${{ secrets.PYPI_API_TOKEN }} \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 8977c45..49ae61c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,7 +2,7 @@ nose pandas pysftp pygrok -prefect==0.14.5 +prefect==0.14.11 sqlalchemy cx_Oracle pyarrow diff --git a/setup.py b/setup.py index db1b66f..90e8c59 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ # This call to setup() does all the work setuptools.setup( name="cupyopt", - version="0.14.5.3", + version="0.14.11.1", description="CU Python Opinionated Prefect Tasks", long_description=README, long_description_content_type="text/x-rst",