File size: 1,341 Bytes
34c8a90
 
 
 
 
 
a5597da
34c8a90
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
[project]
name = "mecari-morpheme"
version = "0.1.0"
description = "Japanese morphological analysis using Graph Neural Networks"
readme = "README.md"
requires-python = ">=3.11,<3.12"
license = { file = "LICENSE" }
dependencies = [
    "torch>=2.2,<2.3",
    "pytorch-lightning>=2.0.0",
    "torch-geometric>=2.4,<2.5",
    "numpy>=1.24,<2.0",
    "pyyaml>=6.0",
    "tqdm>=4.65.0",
    "kyoto-reader>=2.5.0",
    # Optional: enabled by default via config
    "wandb>=0.15.0",
]

[project.optional-dependencies]
dev = [
    "ipython>=8.14.0",
    "jupyter>=1.0.0",
    "notebook>=7.0.0",
    "pytest>=7.4.0",
    "black>=23.0.0",
    "ruff>=0.1.0",
]

[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

[tool.setuptools]
packages = ["mecari"]

[tool.uv]
index-url = "https://pypi.org/simple"
# Use CUDA 12.1 compatible PyG wheels (matches torch 2.2.x + cu121 environment)
find-links = ["https://data.pyg.org/whl/torch-2.2.0+cu121.html"]

# torch-cluster等のビルド時にtorchが必要
[tool.uv.extra-build-dependencies]
# Ensure torch is available when resolving extension wheels
torch-geometric = ["torch"]

[tool.ruff]
line-length = 120
target-version = "py311"

[tool.ruff.lint]
select = ["E", "F", "I"]
ignore = ["E501"]  # line too long

[tool.black]
line-length = 120
target-version = ['py311']