File tree Expand file tree Collapse file tree 2 files changed +65
-2
lines changed
Expand file tree Collapse file tree 2 files changed +65
-2
lines changed Original file line number Diff line number Diff line change @@ -4,3 +4,30 @@ project(osmium LANGUAGES CXX)
44set (PYBIND11_FINDPYTHON ON )
55find_package (pybind11 CONFIG REQUIRED)
66
7+ if (SKBUILD_STATE STREQUAL "sdist" )
8+ #######################################################################
9+ # source dist collection
10+ #
11+
12+ include (FetchContent)
13+
14+ FetchContent_Declare(libosmium
15+ GIT_REPOSITORY https://github.com/osmcode/libosmium
16+ GIT_TAG 85aa0ec170d99b432d29a372554b27491d28065e # release 2.22.0
17+ SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR} /contrib/libosmium
18+ SOURCE_SUBDIR cmake
19+ GIT_SUBMODULES_RECURSE OFF )
20+ FetchContent_Declare(protozero
21+ GIT_REPOSITORY https://github.com/mapbox/protozero
22+ GIT_TAG 89a55ad2962cca3adbe8383a4b6d9a8411352ef2 # release 1.8.1
23+ SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR} /contrib/protozero
24+ SOURCE_SUBDIR cmake
25+ GIT_SUBMODULES_RECURSE OFF )
26+
27+ FetchContent_MakeAvailable(libosmium protozero)
28+
29+ else ()
30+ #######################################################################
31+ # wheel build
32+ #
33+ endif ()
Original file line number Diff line number Diff line change 11[build-system ]
2- requires = [" scikit-build-core" , " pybind11" ]
2+ requires = [" scikit-build-core>=0.10 " , " pybind11>=2.9 " ]
33build-backend = " scikit_build_core.build"
44
55[project ]
66name = " osmium"
7+ version = " 4.0.2"
78description = " Python bindings for libosmium, the data processing library for OSM data"
89requires-python = " >=3.8"
910
@@ -36,4 +37,39 @@ dependencies = [
3637 " requests"
3738 ]
3839
39- version = " 0.1.0"
40+
41+ [tool .scikit-build ]
42+ minimum-version = " build-system.requires"
43+ cmake.version = " >=3.15"
44+
45+ [tool .scikit-build .sdist ]
46+ cmake = true
47+ exclude = [' **' ]
48+ include = [' /src/**/*.py' ,
49+ ' /src/**/*.pyi' ,
50+ ' /test/**/*.py' ,
51+ ' /tools/*' ,
52+ ' /lib/**/*.cc' ,
53+ ' /lib/**/*.h' ,
54+ ' /cmake/*' ,
55+ ' /docs/*.md' ,
56+ ' /docs/*/*.md' ,
57+ ' /docs/*/*.css' ,
58+ ' /docs/cookbooks/*ipynb' ,
59+ ' /docs/Makefile' ,
60+ ' /examples/*py' ,
61+ ' /mkdocs.yaml' ,
62+ ' /pyproject.toml' ,
63+ ' /README.*' ,
64+ ' /CHANGELOG.md' ,
65+ ' /CMakeLists.txt' ,
66+ ' /LICENSE.TXT' ,
67+ ' /contrib/libosmium/include' ,
68+ ' /contrib/libosmium/CMakeLists.txt' ,
69+ ' /contrib/libosmium/LICENSE' ,
70+ ' /contrib/libosmium/README.md' ,
71+ ' /contrib/protozero/include' ,
72+ ' /contrib/protozero/CMakeLists.txt' ,
73+ ' /contrib/protozero/LICENSE' ,
74+ ' /contrib/protozero/README.md' ,
75+ ]
You can’t perform that action at this time.
0 commit comments