Skip to content

Commit 2216e1b

Browse files
authored
Merge pull request #22 from effigies/pyproject
chore: Convert from setup.py to pyproject.toml
2 parents cc4f5ef + 1d2ca3e commit 2216e1b

File tree

2 files changed

+109
-49
lines changed

2 files changed

+109
-49
lines changed

pyproject.toml

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

setup.py

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

0 commit comments

Comments
 (0)