From dbb46cb4cc8acea8a36407e7ab5dfe819674b3a6 Mon Sep 17 00:00:00 2001 From: Aniket Maurya Date: Mon, 30 Aug 2021 00:53:07 +0530 Subject: [PATCH] =?UTF-8?q?Publish=20Python=20=F0=9F=90=8D=20distributions?= =?UTF-8?q?=20=F0=9F=93=A6=20to=20PyPI=20(#42)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * add pypi release * fix * fix --- .github/workflows/publish-to-test-pypi.yml | 37 ++++++++++++++++++++++ .readthedocs.yaml | 2 +- docs/overrides/main.html | 7 ++-- pyproject.toml | 2 +- 4 files changed, 42 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/publish-to-test-pypi.yml diff --git a/.github/workflows/publish-to-test-pypi.yml b/.github/workflows/publish-to-test-pypi.yml new file mode 100644 index 00000000..9e2f8d8d --- /dev/null +++ b/.github/workflows/publish-to-test-pypi.yml @@ -0,0 +1,37 @@ +name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI + +on: push + +jobs: + build-n-publish: + name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI + runs-on: ubuntu-18.04 + + steps: + - uses: actions/checkout@master + - name: Set up Python 3.9 + uses: actions/setup-python@v1 + with: + python-version: 3.9 + + - name: Install pypa/build + run: >- + python -m + pip install + build flit + --user + - name: Build a binary wheel and a source tarball + run: >- + flit build + +# - 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/ + + - name: Publish distribution 📦 to PyPI + if: startsWith(github.ref, 'refs/tags') + uses: pypa/gh-action-pypi-publish@master + with: + password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 47fdabc9..1d2bd219 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -10,6 +10,6 @@ mkdocs: # Optionally set the version of Python and requirements required to build your docs python: - version: 3.7 + version: 3.8 install: - requirements: docs/requirements.txt diff --git a/docs/overrides/main.html b/docs/overrides/main.html index 51243005..c1143448 100644 --- a/docs/overrides/main.html +++ b/docs/overrides/main.html @@ -10,7 +10,6 @@ An open-source AutoML Library in PyTorch - @@ -22,8 +21,8 @@ - - + + @@ -38,5 +37,5 @@ {% set extracopyright %} - Copyright (c) 2021 GradsFlow, Apache License 2.0 + Copyright (c) 2021 GradsFlow, Apache License 2.0 {% endset %} diff --git a/pyproject.toml b/pyproject.toml index ebf6e2ad..b6f729ad 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,7 +31,7 @@ requires = [ "lightning-flash[image,text]==0.4.0", "pytorch-lightning==1.4.0", "ray[tune]==1.6", - "loguru~=0.5" + "loguru==0.5" ] [tool.flit.metadata.urls]