-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
110 lines (101 loc) · 3.2 KB
/
pyproject.toml
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "langsfer"
version = "0.1.1-dev0"
description = "A library for language transfer methods and algorithms. "
authors = ["Anes Benmerzoug <[email protected]>"]
license = "LGPL-2.1-only"
readme = "README.md"
repository = "https://github.com/AnesBenmerzoug/langsfer"
keywords = [""]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Python Modules",
"Intended Audience :: Science/Research",
]
packages = [
{include = "langsfer", from = "src"}
]
[tool.bumpversion]
current_version = "0.1.1-dev0"
commit = false
tag = false
allow_dirty = true
# https://github.com/callowayproject/bump-my-version?tab=readme-ov-file#add-support-for-pre-release-versions
parse = """(?x)
(?P<major>0|[1-9]\\d*)\\.
(?P<minor>0|[1-9]\\d*)\\.
(?P<patch>0|[1-9]\\d*)
(?:
- # dash separator for pre-release section
(?P<pre_l>[a-zA-Z-]+) # pre-release label
(?P<pre_n>0|[1-9]\\d*) # pre-release version number
)? # pre-release section is optional
"""
serialize = [
"{major}.{minor}.{patch}-{pre_l}{pre_n}",
"{major}.{minor}.{patch}",
]
files = [
{ filename = "src/langsfer/__init__.py", search = '__version__ = "{current_version}"', replace = '__version__ = "{new_version}"' },
{ filename = "pyproject.toml", search = 'version = "{current_version}"', replace = 'version = "{new_version}"' }
]
[tool.bumpversion.parts.pre_l]
values = ["dev", "final"]
optional_value = "final"
[tool.poetry.dependencies]
python = ">=3.10,<3.13"
torch = "^2.0.0"
transformers = "^4.26.0"
gensim = "^4.3.0"
numpy = "<2.0.0"
scipy = "<1.13"
scikit-learn = "^1.2.0"
more-itertools = "^10.5.0"
[tool.poetry.group.dev.dependencies]
bump-my-version = "^0.27.0"
pre-commit = "^4.0.1"
pytest = "^8.3.3"
pytest-cov = "^5.0.0"
pytest-timeout = "^2.3.1"
pytest-profiling = "^1.7.0"
hypothesis = {extras = ["numpy"], version = "^6.115.0"}
huggingface-hub = {extras = ["cli"], version = "^0.25.2"}
jupyterlab = "^4.3.0"
iprogress = "^0.4"
datasets = "^3.1.0"
accelerate = "^1.0.1"
ipywidgets = "^8.1.5"
tensorboard = "^2.18.0"
[tool.pytest.ini_options]
addopts = "-vv --failed-first --durations=10 --profile-svg --cov=langsfer --cov-report=term-missing --cov-report=xml"
testpaths = [
"tests"
]
timeout = 300
log_format = "%(asctime)s %(levelname)s %(message)s"
log_date_format = "%Y-%m-%d %H:%M:%S"
log_cli = true
log_level = "INFO"
[tool.coverage.run]
source_pkgs = ["langsfer", "tests"]
branch = true
parallel = true
[tool.coverage.paths]
langsfer = ["src/langsfer", "*/langsfer/src/langsfer"]
tests = ["tests", "*/langsfer/tests"]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]