Skip to content

Commit ddf0e7a

Browse files
authored
Merge pull request #50 from jhlegarreta/TransitionToPyprojectToml
ENH: Transition project configuration to `pyproject.toml`
2 parents b615ce1 + ad32c14 commit ddf0e7a

File tree

2 files changed

+109
-49
lines changed

2 files changed

+109
-49
lines changed

pyproject.toml

+109
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-totalvariation"
7+
version = "1.0.0"
8+
description = "TotalVariation algorithms, providing a wrap for the external project: https://github.com/albarji/proxTV"
9+
readme = "README.rst"
10+
license = {file = "LICENSE"}
11+
authors = [
12+
{ name = "Pablo Hernandez-Cerdan", 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.*",
40+
]
41+
42+
[project.urls]
43+
Download = "https://github.com/InsightSoftwareConsortium/ITKTotalVariation"
44+
Homepage = "https://github.com/InsightSoftwareConsortium/ITKTotalVariation"
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

-49
This file was deleted.

0 commit comments

Comments
 (0)