Skip to content

Commit

Permalink
Publish Python 🐍 distributions πŸ“¦ to PyPI (#42)
Browse files Browse the repository at this point in the history
* add pypi release

* fix

* fix
  • Loading branch information
aniketmaurya authored Aug 29, 2021
1 parent 8f20162 commit dbb46cb
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 6 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/publish-to-test-pypi.yml
Original file line number Diff line number Diff line change
@@ -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 }}
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 3 additions & 4 deletions docs/overrides/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

<meta charset="utf-8">
<title>An open-source AutoML Library in PyTorch</title>
<link rel="canonical" href="https://chitra.readthedocs.io/" />

<meta property="og:type" content="website" />
<meta property="og:title" content="{{ title }}" />
Expand All @@ -22,8 +21,8 @@
<meta property="og:image:height" content="630" />

<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="<username>" />
<meta name="twitter:creator" content="<username>" />
<meta name="twitter:site" content="gradsflow" />
<meta name="twitter:creator" content="gradsflow" />
<meta name="twitter:title" content="{{ title }}" />
<meta name="twitter:description" content="{{ config.site_description }}" />
<meta name="twitter:image" content="{{ config.banner_url }}" />
Expand All @@ -38,5 +37,5 @@


{% set extracopyright %}
Copyright (c) 2021 GradsFlow, <a href="https://github.com/aniketmaurya/chitra/blob/master/LICENSE">Apache License 2.0</a>
Copyright (c) 2021 GradsFlow, <a href="https://github.com/gradsflow/gradsflow/blob/master/LICENSE">Apache License 2.0</a>
{% endset %}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit dbb46cb

Please sign in to comment.