diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9e12bec..d914901 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,7 @@ jobs: matrix: os: [ubuntu-latest, macos-latest, windows-latest] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: "recursive" @@ -41,9 +41,9 @@ jobs: os: [ubuntu-latest, macos-latest, windows-latest] python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} allow-prereleases: true diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index c2671cb..4ef326e 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -15,8 +15,9 @@ jobs: - name: Build wheels uses: pypa/cibuildwheel@v2.16 - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: + name: wheels-${{ matrix.os }} path: ./wheelhouse/*.whl upload_pypi: @@ -27,9 +28,10 @@ jobs: id-token: write if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/') steps: - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: - name: artifact + pattern: wheels-* + merge-multiple: true path: dist - uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9b7ca99..7395052 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: check-yaml - id: end-of-file-fixer @@ -8,7 +8,7 @@ repos: - id: mixed-line-ending - repo: https://github.com/psf/black - rev: 23.9.1 + rev: 23.12.1 hooks: - id: black @@ -24,12 +24,12 @@ repos: - id: nbstripout - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v16.0.6 + rev: v17.0.6 hooks: - id: clang-format - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.0.3 + rev: v4.0.0-alpha.8 hooks: - id: prettier ci: diff --git a/pyproject.toml b/pyproject.toml index a96b337..c5f3247 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "scikit_build_core.build" [project] name = "pybind11-numpy-example" -version = "0.0.7" +version = "0.0.8" description = "An example of using numpy with pybind11" readme = "README.md" license = {text = "MIT"} @@ -32,7 +32,7 @@ Github = "https://github.com/ssciwr/pybind11-numpy-example" [project.optional-dependencies] test = ["pytest", "numpy"] -docs = ["cmake", "breathe"] +docs = ["cmake", "breathe", "sphinx_rtd_theme"] [tool.scikit-build.cmake.define] BUILD_PYTHON = "ON" diff --git a/python/pytest.ini b/python/pytest.ini deleted file mode 100644 index 39baf33..0000000 --- a/python/pytest.ini +++ /dev/null @@ -1,2 +0,0 @@ -[pytest] -testpaths = tests/ diff --git a/python/requirements-dev.txt b/python/requirements-dev.txt deleted file mode 100644 index 2b6917d..0000000 --- a/python/requirements-dev.txt +++ /dev/null @@ -1,2 +0,0 @@ -numpy -pytest==6.1.2