Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
94 lines (81 loc) · 3.06 KB
/
Copy pathpyproject.toml
File metadata and controls
94 lines (81 loc) · 3.06 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
[build-system]
requires = ["hatchling", "hatch-vcs", "hatch-fancy-pypi-readme"] # hatch-vcs used to sync versioning with latest git tag number
build-backend = "hatchling.build"
[project]
name = "codefinetuner"
dynamic = ["version", "readme"]
description = "Add your description here"
requires-python = ">=3.12"
license = "Apache-2.0"
license-files = ["LICEN[CS]E*"]
authors = [
{ name = "cuolm", email = "cuolm.approach717@passinbox.com" }
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: Apache Software License",
"Typing :: Typed",
]
dependencies = [
"bitsandbytes==0.48.2; sys_platform == 'linux' or sys_platform == 'win32'",
"datasets>=4.3.0",
"evaluate>=0.4.6",
"matplotlib>=3.10.7",
"numpy>=2.3.4",
"peft>=0.17.1",
"scikit-learn>=1.7.2",
"torch>=2.9.0",
"transformers>=4.57.1",
"tree-sitter>=0.22.0,<0.23.0",
"tree-sitter-language-pack>=0.2.0,<1.6.3",
"codebleu>=0.7.0",
"nltk>=3.9.2",
"omegaconf>=2.3.0",
"gguf>=0.18.0",
"sentencepiece>=0.2.1",
"unsloth>=2026.4.8 ; sys_platform == 'linux' or sys_platform == 'win32'",
"rapidfuzz>=3.14.5",
"platformdirs>=4.11.4",
]
[dependency-groups]
dev = [
"mlflow>=3.14.0",
"pytest>=9.0.2",
"pytest-mock>=3.15.1",
]
[project.scripts]
codefinetuner = "codefinetuner.pipeline:main"
[project.urls]
Homepage = "https://github.com/cuolm/codefinetuner"
Repository = "https://github.com/cuolm/codefinetuner.git"
Issues = "https://github.com/cuolm/codefinetuner/issues"
[project.optional-dependencies]
mlflow = [
"mlflow>=3.14.0",
]
[tool.pytest.ini_options]
pythonpath = ["src"] # add src to sys.path when pytest runs
testpaths = ["tests"] # make pytest only discover tests under tests/
addopts = "--import-mode=importlib --ignore=third_party" # importlib-based importing for test modules, avoid third_party module tests
[tool.hatch.version]
source = "vcs"
[tool.hatch.metadata.hooks.fancy-pypi-readme]
content-type = "text/markdown"
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
path = "README.md"
# RULE 1: markdown images  -> raw GitHub content
[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
pattern = '!\[(?P<alt>.*?)\]\((?!https?://)(?:\./|/)?docs/(?P<path>.+?)\)'
replacement = ''
# RULE 2: relative [text](path) links -> GitHub tree view.
# (?<!!) excludes image syntax, so this cannot overlap with RULE 1.
[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
pattern = '(?<!!)\[(?P<text>.+?)\]\((?P<path>(?!https?://)\S+?)\)'
replacement = '[\g<text>](https://github.com/cuolm/codefinetuner/tree/master\g<path>)'
# RULE 3: HTML <img src="docs/..."> -> raw GitHub content
[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
pattern = 'src="(?:\./|/)?docs/(?P<path>[^"]+)"'
replacement = 'src="https://raw.githubusercontent.com/cuolm/codefinetuner/master/docs/\g<path>"'
[tool.hatch.build.targets.wheel]
packages = ["src/codefinetuner"]