Skip to content

Commit ea229af

Browse files
Replace setup.py with pyproject.toml for uv compatibility
Co-authored-by: AlexeyKozhevin <[email protected]>
1 parent be08aa8 commit ea229af

File tree

2 files changed

+59
-66
lines changed

2 files changed

+59
-66
lines changed

pyproject.toml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "py-nbtools"
7+
dynamic = ["version"]
8+
description = "A collection of tools for using inside Jupyter Notebooks"
9+
readme = "README.md"
10+
license = {text = "Apache License 2.0"}
11+
authors = [
12+
{name = "Sergey Tsimfer", email = "[email protected]"}
13+
]
14+
classifiers = [
15+
"Development Status :: 4 - Beta",
16+
"Intended Audience :: Developers",
17+
"Intended Audience :: Science/Research",
18+
"License :: OSI Approved :: Apache Software License",
19+
"Operating System :: OS Independent",
20+
"Programming Language :: Python",
21+
"Programming Language :: Python :: 3.6",
22+
"Programming Language :: Python :: 3.7",
23+
"Programming Language :: Python :: 3.8",
24+
"Programming Language :: Python :: 3.9",
25+
"Programming Language :: Python :: 3.10",
26+
"Topic :: System :: Monitoring",
27+
]
28+
requires-python = ">=3.6"
29+
dependencies = [
30+
"pynvml>=11.5.0",
31+
"blessed>=1.17",
32+
"psutil>=5.6",
33+
"requests>=2.24",
34+
]
35+
36+
[project.optional-dependencies]
37+
nbrun = [
38+
"ipython>=7.10.0",
39+
"nbconvert>=5.6.1",
40+
]
41+
dev = [
42+
"ruff>=0.1.0",
43+
]
44+
45+
[project.scripts]
46+
nbstat = "nbtools.nbstat.cli:nbstat"
47+
nbwatch = "nbtools.nbstat.cli:nbwatch"
48+
devicestat = "nbtools.nbstat.cli:devicestat"
49+
devicewatch = "nbtools.nbstat.cli:devicewatch"
50+
51+
[project.urls]
52+
Homepage = "https://github.com/analysiscenter/nbtools"
53+
Repository = "https://github.com/analysiscenter/nbtools"
54+
55+
[tool.setuptools.dynamic]
56+
version = {attr = "nbtools.__version__"}
57+
58+
[tool.setuptools.packages.find]
59+
include = ["nbtools*"]

setup.py

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

0 commit comments

Comments
 (0)