Skip to content

Commit

Permalink
Try poetry again
Browse files Browse the repository at this point in the history
  • Loading branch information
Gordon Shotwell committed Dec 19, 2023
1 parent 1145627 commit 37f3bd9
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 31 deletions.
25 changes: 10 additions & 15 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,22 @@ on:
- ci-test

jobs:
pypi-publish:
name: upload release to PyPI
deploy:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v2

- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.11"

python-version: "3.x"
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install build
- name: Build Python package
run: python -m build

poetry install
- name: Build package
run: |
poetry build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
15 changes: 13 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,21 @@ build-backend = "setuptools.build_meta"
[project]
name = "shiny_validate"
version = "0.1"
requires = ["shiny >= 0.6.0", "numpy"]
authors = [{name = "Gordon Shotwell", email = "[email protected]"}]

[tool.setuptools]
packages = ["shiny_validate"]
include-package-data = true
zip-safe = false
zip-safe = false

[tool.poetry]
name = "shiny_validate"
version = "0.1"
authors = ["Gordon Shotwell <[email protected]>"]
description = "Input Validation for Shiny apps"
readme = "README.md"


[tool.poetry.dependencies]
shiny = "0.6"

14 changes: 0 additions & 14 deletions setup.cfg

This file was deleted.

0 comments on commit 37f3bd9

Please sign in to comment.