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]