Skip to content

Commit

Permalink
install and publish with poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
thevincentadam committed Sep 15, 2021
1 parent 92e07a9 commit a9ba03a
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 11 deletions.
35 changes: 24 additions & 11 deletions .github/workflows/upload-pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,29 @@ jobs:
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

# ------------ build and install package
- name: Install package
# ------------ Install poetry
- name: Setup pip/poetry
run: |
pip install -e .
python setup.py sdist
pip wheel . -w dist
# ------------ publish to pypi
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
pip install -U pip poetry twine
poetry config virtualenvs.create false
# ------------ build and install package
# - name: Install package
# run: |
# poetry install
# poetry build
- name: Build and publish to pypi
uses: JRubics/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
python_version: "3.7"
poetry_version: "==1.1.6" # (PIP version specifier syntax)
pypi_token: ${{ secrets.PYPI_TOKEN }}
build_format: "sdist"
repository_name: "markovflow"
repository_url: "https://github.com/secondmind-labs/markovflow"
ignore_dev_requirements: "yes"
# # ------------ publish to pypi
# - name: Publish to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# user: __token__
# password: ${{ secrets.PYPI_TOKEN }}
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "markovflow"
version = "0.0.7"
description = "A Tensorflow based library for Time Series Modelling with Gaussian Processes"
long_description = "A Tensorflow based library for Time Series Modelling with Gaussian Processes"
authors = ["Markovflow Contributors <[email protected]>"]
packages = [{include = "markovflow"}]

Expand Down

0 comments on commit a9ba03a

Please sign in to comment.