-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modernize with scikit-build-core (#5)
* modernize with scikit-build-core * remove Werror from cmake config * adjust build settings * typo * scikit_build_core.builder.wheel_tag * scikit-build-core needed * -m not -c * turn up cmake logging * override python-version * link against Python3_LIBRARIES * windows fixes? * conditionalize tests * build_type * proper condition variables
- Loading branch information
Showing
202 changed files
with
177 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ name: test | |
channels: | ||
- conda-forge | ||
dependencies: | ||
- scikit-build | ||
- scikit-build-core | ||
- numpy | ||
- pdal | ||
- compilers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
on: | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
pypi-publish: | ||
name: Upload release to PyPI | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: release | ||
url: https://pypi.org/p/pdal-plugins | ||
permissions: | ||
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.x' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install build | ||
pip install build twine | ||
python -m build . --sdist | ||
- name: Publish package distributions to PyPI | ||
if: github.event_name == 'release' && github.event.action == 'published' | ||
uses: pypa/gh-action-pypi-publish@release/v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,74 @@ | ||
[project] | ||
name = "pdal-plugins" | ||
description = "Point cloud data processing Python plugins" | ||
readme = "README.rst" | ||
requires-python = ">=3.9" | ||
license = {file = "LICENSE"} | ||
keywords = ["point", "cloud", "spatial"] | ||
authors = [ | ||
{email = "[email protected]"}, | ||
{name = "Howard Butler"} | ||
] | ||
maintainers = [ | ||
{name = "Howard Butler", email = "[email protected]"} | ||
] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: BSD License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Topic :: Scientific/Engineering :: GIS", | ||
] | ||
|
||
dependencies = [ | ||
"numpy" | ||
] | ||
|
||
#dynamic = ["version"] | ||
|
||
#[tool.scikit-build.dynamic] | ||
#version = { attr = "pdal.__version__" } | ||
version="1.4.0" | ||
|
||
[project.optional-dependencies] | ||
test = [ | ||
] | ||
|
||
[tool.setuptools] | ||
package-dir = {"" = "src"} | ||
zip-safe = false | ||
|
||
[project.urls] | ||
homepage = "https://pdal.io" | ||
documentation = "https://pdal.io" | ||
repository = "https://github.com/PDAL/python-plugins" | ||
changelog = "https://github.com/PDAL/python-plugins/blob/main/README.rst" | ||
|
||
[build-system] | ||
requires = ["scikit-build", "cmake", "ninja", "numpy"] | ||
requires = ["scikit-build-core", "numpy", "pybind11[global]"] | ||
build-backend = "scikit_build_core.build" | ||
|
||
#[tool.scikit-build-core] | ||
#wheel.py-api = "cp12" | ||
#wheel.cmake = true | ||
|
||
|
||
[tool.scikit-build] | ||
build-dir = "build/{wheel_tag}/{build_type}" | ||
sdist.exclude = [".github"] | ||
sdist.cmake = true | ||
cmake.build-type = "Release" | ||
sdist.include = [ | ||
"src", | ||
"CMakeLists.txt" | ||
] | ||
cmake.verbose = true | ||
logging.level = "INFO" | ||
|
||
#[tool.scikit-build.cmake.define] | ||
#WITH_TESTS = "ON" |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.