Skip to content

Commit bf4cb8c

Browse files
committed
refactor: migrate from poetry to uv, update pyproject.toml
1 parent 2c72f02 commit bf4cb8c

File tree

2 files changed

+1962
-18
lines changed

2 files changed

+1962
-18
lines changed

pyproject.toml

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
[tool.poetry]
1+
[project]
22
name = "dhg"
33
version = "0.9.5"
44
description = "DHG is a Deep Learning Framework for Graph Neural Network and Hypergraph Neural Networks."
5-
authors = ["yifanfeng97 <[email protected]>"]
6-
license = "Apache-2.0"
5+
authors = [
6+
{name = "yifanfeng97", email = "[email protected]"}
7+
]
8+
license = {text = "Apache-2.0"}
79
readme = "README.md"
8-
homepage = "https://deephypergraph.com"
9-
repository = "https://github.com/iMoonLab/DeepHypergraph"
10-
documentation = "https://deephypergraph.com/docs"
10+
requires-python = ">=3.8,<3.13"
1111
keywords = ["pytorch", "deep learning", "graph neural networks", "hypergraph neural networks"]
1212
classifiers = [
1313
"Development Status :: 4 - Beta",
@@ -29,18 +29,27 @@ classifiers = [
2929
"Topic :: Software Development :: Libraries :: Python Modules",
3030
"License :: OSI Approved :: Apache Software License",
3131
]
32+
dependencies = [
33+
"torch>=1.12.1,<2.0",
34+
"scipy>=1.8",
35+
"optuna",
36+
"numpy<2.0",
37+
"scikit-learn",
38+
"requests",
39+
"matplotlib<3.6",
40+
]
3241

33-
[tool.poetry.dependencies]
34-
python = "^3.8"
35-
torch = ">= 1.12.1, < 2.0"
36-
scipy = "^1.8"
37-
optuna = "*"
38-
numpy = "*"
39-
scikit-learn = "*"
40-
requests = "*"
41-
matplotlib = "*"
42+
[project.urls]
43+
Homepage = "https://deephypergraph.com"
44+
Repository = "https://github.com/iMoonLab/DeepHypergraph"
45+
Documentation = "https://deephypergraph.com/docs"
4246

43-
[tool.poetry.dev-dependencies]
47+
[project.optional-dependencies]
48+
dev = [
49+
"pytest",
50+
"black",
51+
"isort",
52+
]
4453

4554
[tool.black]
4655
include = '\.pyi?$'
@@ -51,5 +60,5 @@ profile = "black"
5160
line_length = 119
5261

5362
[build-system]
54-
requires = ["poetry-core>=1.0.0"]
55-
build-backend = "poetry.core.masonry.api"
63+
requires = ["hatchling"]
64+
build-backend = "hatchling.build"

0 commit comments

Comments
 (0)