From e6ab27da0486fa55157e13c21ebd75d94a125937 Mon Sep 17 00:00:00 2001 From: Christopher Lorton Date: Mon, 3 Feb 2025 15:51:19 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20WIP=20infrastructure=20and=20?= =?UTF-8?q?=F0=9F=93=9D=20docs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/github-actions.yml | 11 ++++++----- MANIFEST.in | 2 ++ docs/reference/laser_generic.rst | 8 ++++++++ pyproject.toml | 5 +++++ 4 files changed, 21 insertions(+), 5 deletions(-) diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index 4475fab..f82bacc 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -89,7 +89,7 @@ jobs: python_arch: 'x64' tox_env: 'py311' cibw_arch: 'x86_64' - cibw_build: false + cibw_build: 'cp39-manylinux_x86_64' os: 'ubuntu-latest' - name: 'py311 (windows/AMD64)' python: '3.11' @@ -97,7 +97,7 @@ jobs: python_arch: 'x64' tox_env: 'py311' cibw_arch: 'AMD64' - cibw_build: false + cibw_build: 'cp39-win_amd64' os: 'windows-latest' - name: 'py311 (macos/x86_64)' python: '3.11' @@ -105,7 +105,7 @@ jobs: python_arch: 'x64' tox_env: 'py311' cibw_arch: 'x86_64' - cibw_build: false + cibw_build: 'cp39-macosx_x86_64' os: 'macos-13' - name: 'py311 (macos/arm64)' python: '3.11' @@ -113,7 +113,7 @@ jobs: python_arch: 'arm64' tox_env: 'py311' cibw_arch: 'arm64' - cibw_build: false + cibw_build: 'cp39-macosx_arm64' os: 'macos-latest' - name: 'py312 (ubuntu/x86_64)' python: '3.12' @@ -199,9 +199,10 @@ jobs: if: matrix.cibw_build run: twine check wheelhouse/*.whl - name: upload wheel - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: matrix.cibw_build with: + name: ${{ matrix.cibw_build }} path: wheelhouse/*.whl finish: needs: test diff --git a/MANIFEST.in b/MANIFEST.in index 35a58fe..3e1543b 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -20,4 +20,6 @@ include LICENSE include README.rst recursive-exclude notebooks *.ipynb +recursive-exclude notebooks *.png + global-exclude *.py[cod] __pycache__/* *.so *.dylib diff --git a/docs/reference/laser_generic.rst b/docs/reference/laser_generic.rst index b5ba6b8..ddd5523 100644 --- a/docs/reference/laser_generic.rst +++ b/docs/reference/laser_generic.rst @@ -33,6 +33,14 @@ laser\_generic.core module :undoc-members: :show-inheritance: +laser\_generic.importation module +--------------------------------- + +.. automodule:: laser_generic.importation + :members: + :undoc-members: + :show-inheritance: + laser\_generic.infection module ------------------------------- diff --git a/pyproject.toml b/pyproject.toml index 51e16d2..3f1f758 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -64,6 +64,11 @@ Changelog = "https://github.com/InstituteforDiseaseModeling/laser-generic/blob/m [project.scripts] generic = "laser_generic.cli:run" +[tool.setuptools] +ext-modules = [ + {name = "_core", sources = ["src/laser_generic/_core.c"]} +] + [tool.ruff] extend-exclude = ["static", "ci/templates"] line-length = 140