Skip to content

Commit c14d432

Browse files
authored
Migrate to use pyproject to simplify setup (#1186)
* Migrate to use pyproject to simplify setup Removed logic in setup.py that parses version etc. and instead use a more simplified pyproject.toml config Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com> * classifiers Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com> --------- Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com>
1 parent 7322ef5 commit c14d432

File tree

3 files changed

+41
-70
lines changed

3 files changed

+41
-70
lines changed

pyproject.toml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,44 @@
1+
[build-system]
2+
requires = ["setuptools>=70"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "skl2onnx"
7+
dynamic = ["version", "dependencies"]
8+
description = "Convert scikit-learn models to ONNX"
9+
readme = "README.md"
10+
license = {text = "Apache License v2.0"}
11+
authors = [
12+
{ name = "ONNX Contributors", email = "onnx-technical-discuss@lists.lfaidata.foundation" }
13+
]
14+
requires-python = ">=3.8"
15+
classifiers = [
16+
"Development Status :: 4 - Beta",
17+
"Environment :: Console",
18+
"Intended Audience :: Developers",
19+
"Operating System :: MacOS :: MacOS X",
20+
"Operating System :: Microsoft :: Windows",
21+
"Programming Language :: Python",
22+
"Programming Language :: Python :: 3.8",
23+
"Programming Language :: Python :: 3.9",
24+
"Programming Language :: Python :: 3.10",
25+
"Programming Language :: Python :: 3.11",
26+
"Programming Language :: Python :: 3.12",
27+
"Programming Language :: Python :: 3.13",
28+
"License :: OSI Approved :: Apache Software License",
29+
]
30+
31+
[project.urls]
32+
Homepage = "https://github.com/onnx/sklearn-onnx"
33+
34+
[tool.setuptools]
35+
packages = ["skl2onnx"]
36+
37+
[tool.setuptools.dynamic]
38+
version = { attr = "skl2onnx.__version__" }
39+
dependencies = { file = "requirements.txt" }
40+
41+
142
[tool.ruff]
243

344
exclude = [

setup.cfg

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

setup.py

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

0 commit comments

Comments
 (0)