Skip to content

Commit a3713ff

Browse files
committed
ENH: Migrate setup.py to pyproject.toml
Uses scikit-build-core. Signed-off-by: Matt McCormick <[email protected]>
1 parent 1818618 commit a3713ff

File tree

2 files changed

+108
-54
lines changed

2 files changed

+108
-54
lines changed

pyproject.toml

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
[build-system]
2+
requires = ["scikit-build-core"]
3+
build-backend = "scikit_build_core.build"
4+
5+
[project]
6+
name = "itk-phasesymmetry"
7+
version = "1.0.5"
8+
description = "itk-phasesymmetry provides multi-scale steerable filters "
9+
readme = "README.rst"
10+
license = {file = "LICENSE"}
11+
authors = [
12+
{ name = "Charles Hatt", email = "[email protected]" },
13+
]
14+
keywords = [
15+
"itk",
16+
]
17+
classifiers = [
18+
"Development Status :: 4 - Beta",
19+
"Intended Audience :: Developers",
20+
"Intended Audience :: Education",
21+
"Intended Audience :: Healthcare Industry",
22+
"Intended Audience :: Science/Research",
23+
"License :: OSI Approved :: Apache Software License",
24+
"Operating System :: Android",
25+
"Operating System :: MacOS",
26+
"Operating System :: Microsoft :: Windows",
27+
"Operating System :: POSIX",
28+
"Operating System :: Unix",
29+
"Programming Language :: C++",
30+
"Programming Language :: Python",
31+
"Topic :: Scientific/Engineering",
32+
"Topic :: Scientific/Engineering :: Information Analysis",
33+
"Topic :: Scientific/Engineering :: Medical Science Apps.",
34+
"Topic :: Software Development :: Libraries",
35+
]
36+
requires-python = ">=3.8"
37+
dependencies = [
38+
"itk == 5.4.*",
39+
]
40+
41+
[project.urls]
42+
Download = "https://github.com/KitwareMedical/ITKPhaseSymmetry"
43+
Homepage = "https://github.com/KitwareMedical/ITKPhaseSymmetry"
44+
45+
[tool.scikit-build]
46+
# The versions of CMake to allow. If CMake is not present on the system or does
47+
# not pass this specifier, it will be downloaded via PyPI if possible. An empty
48+
# string will disable this check.
49+
cmake.version = ">=3.16.3"
50+
51+
# A list of args to pass to CMake when configuring the project. Setting this in
52+
# config or envvar will override toml. See also ``cmake.define``.
53+
cmake.args = []
54+
55+
# A table of defines to pass to CMake when configuring the project. Additive.
56+
cmake.define = {}
57+
58+
# Verbose printout when building.
59+
cmake.verbose = true
60+
61+
# The build type to use when building the project. Valid options are: "Debug",
62+
# "Release", "RelWithDebInfo", "MinSizeRel", "", etc.
63+
cmake.build-type = "Release"
64+
65+
# The source directory to use when building the project. Currently only affects
66+
# the native builder (not the setuptools plugin).
67+
cmake.source-dir = "."
68+
69+
# The versions of Ninja to allow. If Ninja is not present on the system or does
70+
# not pass this specifier, it will be downloaded via PyPI if possible. An empty
71+
# string will disable this check.
72+
ninja.version = ">=1.11"
73+
74+
# The logging level to display, "DEBUG", "INFO", "WARNING", and "ERROR" are
75+
# possible options.
76+
logging.level = "INFO"
77+
78+
# Files to include in the SDist even if they are skipped by default. Supports
79+
# gitignore syntax.
80+
sdist.include = []
81+
82+
# Files to exclude from the SDist even if they are included by default. Supports
83+
# gitignore syntax.
84+
sdist.exclude = []
85+
86+
# A list of license files to include in the wheel. Supports glob patterns.
87+
wheel.license-files = ["LICEN[CS]E*",]
88+
89+
# Target the platlib or the purelib. If not set, the default is to target the
90+
# platlib if wheel.cmake is true, and the purelib otherwise.
91+
wheel.platlib = "false"
92+
93+
# If CMake is less than this value, backport a copy of FindPython. Set to 0
94+
# disable this, or the empty string.
95+
backport.find-python = "3.26.1"
96+
97+
# Select the editable mode to use. Can be "redirect" (default) or "inplace".
98+
editable.mode = "redirect"
99+
100+
# Rebuild the project when the package is imported. The build-directory must be
101+
# set.
102+
editable.rebuild = false
103+
104+
# If set, this will provide a method for scikit-build-core backward compatibility.
105+
minimum-version = "0.8.2"
106+
107+
# The build directory. Defaults to a temporary directory, but can be set.
108+
build-dir = "build/{wheel_tag}"

setup.py

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)