Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ jobs:
id-token: write
steps:
- uses: actions/checkout@v6
- uses: astral-sh/setup-uv@v6
# build the calculate-liam package and store outputs in dist folder
- run: pipx run build calculate-liam -o dist
- run: uv build calculate-liam -o dist
# check the files in dist are valid
- run: pipx run twine check dist/*
- run: uvx twine check dist/*
# if this commit is tagged, upload the release to (test)PyPI
- if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')
uses: pypa/gh-action-pypi-publish@release/v1
Expand All @@ -39,9 +40,12 @@ jobs:
python-version: ["3.10", "3.14"]
steps:
- uses: actions/checkout@v6
# install the calculate-liam package including the optional test dependencies
- run: pip install -e .[test]
- uses: astral-sh/setup-uv@v6
with:
python-version: ${{ matrix.python-version }}
# install the calculate-liam package including the dev dependencies
- run: uv sync
working-directory: calculate-liam
# run the test suite
- run: pytest -v
working-directory: calculate-liam/test
- run: uv run pytest -v
working-directory: calculate-liam
4 changes: 2 additions & 2 deletions calculate-liam/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ build:

requirements:
host:
- python >=3.8
- python >=3.10
- hatchling
- pip
run:
- python >=3.8
- python >=3.10
- click
- numpy

Expand Down
8 changes: 4 additions & 4 deletions calculate-liam/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "calculate-liam"
version = "0.0.9"
version = "0.0.10"
dependencies = ["click", "numpy"]
authors = [
{ name="Liam Keegan", email="liam@keegan.ch" },
Expand All @@ -13,7 +13,7 @@ license = "MIT"
license-files = ["LICENSE.md"]
description = "An example package from the SSC Python Packaging course"
readme = "README.md"
requires-python = ">=3.8"
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
Expand All @@ -23,8 +23,8 @@ classifiers = [
Github = "https://github.com/ssciwr/python-packaging"
Homepage = "https://ssciwr.github.io/python-packaging"

[project.optional-dependencies]
test = ["pytest"]
[dependency-groups]
dev = ["pytest"]

[project.scripts]
flip-coin = "calculate_liam.cli:flip_coin_cli"
Expand Down
Loading
Loading