diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 82f8dbd..6e4ebd7 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -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 @@ -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 diff --git a/condarecipe/epimodels/meta.yaml b/condarecipe/epimodels/meta.yaml deleted file mode 100644 index 4399a03..0000000 --- a/condarecipe/epimodels/meta.yaml +++ /dev/null @@ -1,34 +0,0 @@ -{% set name = "epimodels" %} -{% set version = "0.3.20" %} - -package: - name: "{{ name|lower }}" - version: "{{ version }}" - -source: - url: "https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz" - sha256: 8424e5487136dadfae92eb620a75a7cb174325c72be941a280900fc365e61ada - -build: - number: 0 - script: "{{ PYTHON }} -m pip install . -vv" - -requirements: - host: - - pip - - python - run: - - python - -about: - home: The package home page - license: mit - license_family: MIT - license_file: - summary: "Library of mathematical epidemic models for use in simulation studies and inference" - doc_url: - dev_url: - -extra: - recipe-maintainers: - - your-github-id-here diff --git a/pyproject.toml b/pyproject.toml index 03fd39d..18bbe15 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 = "fccoelho@gmail.com"} @@ -24,7 +24,7 @@ dependencies = [ "sphinx>=8.1.3", "sympy>=1.13.3", ] -packages = ["epimodels"] +#packages = ["epimodels"] [project.urls] Homepage = "https://github.com/fccoelho/epimodels" @@ -32,8 +32,11 @@ Documentation = "https://epimodels.readthedocs.io" [tool.uv] + +package = ["epimodels"] dev-dependencies = [ "pytest>=8.3.4", "pytest-cov>=6.0.0", "ruff>=0.8.3", ] +