Skip to content

Commit a0b84f9

Browse files
committed
change to pyproject.toml based setup
1 parent 88cf229 commit a0b84f9

File tree

9 files changed

+80
-85
lines changed

9 files changed

+80
-85
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,11 @@ jobs:
197197
python-version: "3.10"
198198
- name: Build sdist package
199199
run: |
200-
python -m pip install --upgrade pip setuptools wheel
200+
python -m pip install --upgrade pip build
201201
cd python/interpret-core
202-
python setup.py sdist -d ../../bld/sdist
202+
python -m build --sdist --outdir ../../bld/sdist
203203
cd ../interpret
204-
python setup.py sdist -d ../../bld/sdist
204+
python -m build --sdist --outdir ../../bld/sdist
205205
- name: Publish sdist package
206206
uses: actions/upload-artifact@v7
207207
with:
@@ -293,11 +293,11 @@ jobs:
293293
path: python/interpret-core/interpret/root/bld/lib/
294294
- name: Build bdist package
295295
run: |
296-
python -m pip install --upgrade pip setuptools wheel
296+
python -m pip install --upgrade pip build
297297
cd python/interpret-core
298-
python setup.py bdist_wheel -d ../../bld/bdist
298+
python -m build --wheel --outdir ../../bld/bdist
299299
cd ../interpret
300-
python setup.py bdist_wheel -d ../../bld/bdist
300+
python -m build --wheel --outdir ../../bld/bdist
301301
- name: Publish bdist package
302302
uses: actions/upload-artifact@v7
303303
with:
@@ -320,9 +320,9 @@ jobs:
320320
python-version: "3.10"
321321
- name: Build powerlift package
322322
run: |
323-
python -m pip install --upgrade pip setuptools wheel
323+
python -m pip install --upgrade pip build
324324
cd python/powerlift
325-
python setup.py bdist_wheel -d ../../bld/powerlift
325+
python -m build --wheel --outdir ../../bld/powerlift
326326
- name: Publish powerlift package
327327
uses: actions/upload-artifact@v7
328328
with:

python/interpret-core/interpret-core.pyproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
<Content Include="interpret\visual\assets\udash.css" />
3030
<Content Include="interpret\visual\assets\udash.js" />
3131
<Content Include="MANIFEST.in" />
32+
<Content Include="pyproject.toml" />
3233
</ItemGroup>
3334
<ItemGroup>
3435
<Compile Include="interpret\api\base.py" />
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["setuptools>=42", "wheel"]
3+
build-backend = "setuptools.build_meta"

python/interpret-core/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ def run(self):
135135
136136
https://github.com/interpretml/interpret
137137
""",
138+
long_description_content_type="text/plain",
138139
url="https://github.com/interpretml/interpret",
139140
cmdclass={
140141
"sdist": SDistCommand,
@@ -180,7 +181,6 @@ def run(self):
180181
"Programming Language :: Python :: 3.14",
181182
"Topic :: Scientific/Engineering :: Artificial Intelligence",
182183
"Development Status :: 5 - Production/Stable",
183-
"License :: OSI Approved :: MIT License",
184184
"Operating System :: OS Independent",
185185
],
186186
entry_points={

python/interpret/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["setuptools>=42", "wheel"]
3+
build-backend = "setuptools.build_meta"

python/interpret/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
author_email="interpret@microsoft.com",
3535
description="Fit interpretable models. Explain blackbox machine learning.",
3636
long_description=long_description,
37+
long_description_content_type="text/plain",
3738
url="https://github.com/interpretml/interpret",
3839
packages=find_packages(),
3940
classifiers=[
@@ -46,7 +47,6 @@
4647
"Programming Language :: Python :: 3.14",
4748
"Topic :: Scientific/Engineering :: Artificial Intelligence",
4849
"Development Status :: 5 - Production/Stable",
49-
"License :: OSI Approved :: MIT License",
5050
"Operating System :: OS Independent",
5151
],
5252
install_requires=[

python/powerlift/pyproject.toml

Lines changed: 60 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,62 @@
11
[build-system]
2-
requires = [
3-
"setuptools>=42",
4-
"wheel"
2+
requires = ["setuptools>=61", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "powerlift"
7+
version = "0.1.12"
8+
description = "Interactive Benchmarking for Machine Learning."
9+
readme = "README.md"
10+
requires-python = ">=3.7"
11+
authors = [
12+
{ name = "The InterpretML Contributors", email = "interpret@microsoft.com" },
513
]
6-
build-backend = "setuptools.build_meta"
14+
classifiers = [
15+
"Programming Language :: Python :: 3",
16+
"Operating System :: OS Independent",
17+
]
18+
dependencies = [
19+
"SQLAlchemy>=1.4",
20+
"sqlalchemy-utils>=0.38",
21+
"tqdm",
22+
"fastparquet",
23+
"pandas",
24+
"numpy",
25+
"pytz",
26+
]
27+
28+
[project.urls]
29+
Homepage = "https://github.com/interpretml/interpret"
30+
"Bug Tracker" = "https://github.com/interpretml/interpret/issues"
31+
32+
[project.optional-dependencies]
33+
datasets = [
34+
"pmlb>=1.0",
35+
"openml>=0.12",
36+
"catboost",
37+
]
38+
docker = ["docker"]
39+
postgres = ["psycopg2>=2.9"]
40+
mssql = ["pyodbc"]
41+
aci = [
42+
"msrestazure",
43+
"azure-common",
44+
"azure-mgmt-sql",
45+
"azure-mgmt-resource",
46+
"azure-mgmt-containerinstance",
47+
"azure-mgmt-authorization",
48+
"azure-mgmt-compute",
49+
"azure-mgmt-network",
50+
"azure-identity",
51+
"cryptography",
52+
]
53+
testing = [
54+
"pytest",
55+
"pytest-cov",
56+
"scikit-learn",
57+
"python-dotenv",
58+
"pytest-xdist",
59+
]
60+
61+
[tool.setuptools.packages.find]
62+
exclude = ["tests", "tests.*"]

python/powerlift/setup.py

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

shared/libebm/interpret.sln

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Microsoft Visual Studio Solution File, Format Version 12.00
2-
# Visual Studio Version 17
3-
VisualStudioVersion = 17.7.34202.233
2+
# Visual Studio Version 18
3+
VisualStudioVersion = 18.3.11527.330 d18.3
44
MinimumVisualStudioVersion = 10.0.40219.1
55
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libebm_test", "tests\libebm_test.vcxproj", "{B1F39CA2-B315-45AC-8D98-C2271EE3B46D}"
66
EndProject
@@ -18,6 +18,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "root", "root", "{F5894036-A
1818
..\..\codecov.yml = ..\..\codecov.yml
1919
..\..\CONTRIBUTING.md = ..\..\CONTRIBUTING.md
2020
..\..\docs\interpret\hyperparameters.md = ..\..\docs\interpret\hyperparameters.md
21+
..\..\python\interpret\pyproject.toml = ..\..\python\interpret\pyproject.toml
2122
..\..\README.md = ..\..\README.md
2223
..\..\.github\workflows\release_interpret.yml = ..\..\.github\workflows\release_interpret.yml
2324
..\..\.github\workflows\release_powerlift.yml = ..\..\.github\workflows\release_powerlift.yml

0 commit comments

Comments
 (0)