Skip to content

Commit 7ad650a

Browse files
jhlegarretahjmjohnson
authored andcommitted
ENH: Transition project configuration to pyproject.toml
Transition project configuration to `pyproject.toml`. Used the `setup-py-to-pyproject-toml.py` script in the `ITKModuleTemplate` repository: https://github.com/InsightSoftwareConsortium/ITKModuleTemplate as a starting base, then made manual changes as necessary. Require `itk == 5.4.*` and bump the package to a new minor version.
1 parent 6f158a7 commit 7ad650a

File tree

2 files changed

+110
-55
lines changed

2 files changed

+110
-55
lines changed

pyproject.toml

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

setup.py

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

0 commit comments

Comments
 (0)