Skip to content

Commit

Permalink
Initial rework into scikit-build-core
Browse files Browse the repository at this point in the history
  • Loading branch information
dudoslav committed May 17, 2024
1 parent 3abea77 commit 678f50d
Show file tree
Hide file tree
Showing 8 changed files with 120 additions and 793 deletions.
6 changes: 0 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# project.toml: Forces build isolation and other problems; ecosystem still spotty.
pyproject.toml

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down Expand Up @@ -108,9 +105,6 @@ ENV/
# mypy
.mypy_cache/

# setuptools-scm
tiledb/_generated_version.py

# IntelliJ
.idea

Expand Down
17 changes: 17 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
cmake_minimum_required(VERSION 3.15...3.26)

project(${SKBUILD_PROJECT_NAME})

set(PYBIND11_NEWPYTHON ON)

find_package(
Python
COMPONENTS Interpreter Development.Module NumPy
REQUIRED
)

find_package(pybind11 CONFIG REQUIRED)

find_package(TileDB REQUIRED)

add_subdirectory(tiledb)
12 changes: 0 additions & 12 deletions MANIFEST.in

This file was deleted.

12 changes: 8 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[build-system]
requires = ["setuptools>=64", "wheel", "pybind11", "Cython"]
build-backend = "setuptools.build_meta"
requires = ["scikit-build-core", "numpy", "pybind11", "Cython"]
build-backend = "scikit_build_core.build"

[project]
requires-python = ">=3.8"
Expand Down Expand Up @@ -48,10 +48,14 @@ exclude = ["*.pyc", ".pytest_cache/*", ".hypothesis/*"]
homepage = "https://github.com/TileDB-Inc/TileDB-Py"

[tool.setuptools_scm]
version_scheme = "guess-next-dev"
local_scheme = "no-local-version"
version_file = "tiledb/_generated_version.py"

[tool.scikit-build]
wheel.expand-macos-universal-tags = true
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
wheel.packages = ["tiledb"]
wheel.exclude = ["tiledb/cc/"]

[tool.pytest.ini_options]
python_classes = "*Test*"
python_files = "test_*.py"
Expand Down
4 changes: 0 additions & 4 deletions setup.cfg

This file was deleted.

Loading

0 comments on commit 678f50d

Please sign in to comment.