Skip to content

Commit

Permalink
github action for pypi build.
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasRuppert committed Jan 22, 2025
1 parent 22b4beb commit 7fd7a5e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 19 deletions.
31 changes: 14 additions & 17 deletions .github/workflows/ci.yaml → .github/workflows/pypi-build.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Compile
name: PyPI Build

on:
workflow_dispatch:
Expand Down Expand Up @@ -37,19 +37,16 @@ jobs:
with:
python-version: ${{ matrix.python }}

- name: Install the latest CMake
uses: lukka/get-cmake@latest

- name: Install Nanobind
run: |
python -m pip install nanobind typing_extensions
- name: Configure
run: >
cmake -S . -B build
- name: Build C++
run: cmake --build build -j 2

- name: Build Wheel
run: python -m pip wheel .
- name: Install pypa/build
run: >-
python3 -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Store the distribution packages
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
build*/
dist/
.vscode
data/**
evaluation/
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ requires-python = ">=3.8"
license = { "file" = "LICENSE" }
authors = [
{"name" = "Lukas Ruppert", "email" = "[email protected]"},
{"name" = "Deborah Kornwolf", "email" = "[email protected]"},]
{"name" = "Deborah Kornwolf", "email" = "deborah.kornwolf@student.uni-tuebingen.de"},]
keywords = ["kNN", "cuda", "nearest-neighbor", "graph", "GPU"]
classifiers = [
"Development Status :: 4 - Beta",
Expand Down Expand Up @@ -42,7 +42,7 @@ build-backend = "py_build_cmake.build"
directory = "python-src"

[tool.py-build-cmake.sdist] # What to include in source distributions
include = ["CMakeLists.txt", "python-src/*", "src/*", "include/*"]
include = ["CMakeLists.txt", "python-src/*", "src/*", "include/*", "examples/*"]

[tool.py-build-cmake.cmake] # How to build the CMake project
build_type = "Release"
Expand Down

0 comments on commit 7fd7a5e

Please sign in to comment.