Skip to content

Commit

Permalink
Added python publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
fccoelho committed Dec 18, 2024
1 parent dcc6a99 commit 6ecd839
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 40 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,18 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v4

- uses: actions/setup-python@v5
with:
python-version: "3.x"
python-version-file: "pyproject.toml"

- name: Build release distributions
run: |
# NOTE: put your own distribution build steps here.
python -m pip install build
python -m build
uv sync --all-extras --dev
uv build
- name: Upload distributions
uses: actions/upload-artifact@v4
Expand All @@ -55,7 +58,7 @@ jobs:
#
# ALTERNATIVE: if your GitHub Release name is the PyPI project version string
# ALTERNATIVE: exactly, uncomment the following line instead:
# url: https://pypi.org/project/YOURPROJECT/${{ github.event.release.name }}
url: https://pypi.org/project/epimodels/${{ github.event.release.name }}

steps:
- name: Retrieve release distributions
Expand Down
34 changes: 0 additions & 34 deletions condarecipe/epimodels/meta.yaml

This file was deleted.

7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "epimodels"
version = "0.4.1"
version = "0.4.2"
description = "Library of mathematical epidemic models for use in simulation studies and inference."
authors = [
{name="Flávio Codeço Coelho", email = "[email protected]"}
Expand All @@ -24,16 +24,19 @@ dependencies = [
"sphinx>=8.1.3",
"sympy>=1.13.3",
]
packages = ["epimodels"]
#packages = ["epimodels"]

[project.urls]
Homepage = "https://github.com/fccoelho/epimodels"
Documentation = "https://epimodels.readthedocs.io"


[tool.uv]

package = ["epimodels"]
dev-dependencies = [
"pytest>=8.3.4",
"pytest-cov>=6.0.0",
"ruff>=0.8.3",
]

0 comments on commit 6ecd839

Please sign in to comment.