-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
144 lines (122 loc) · 2.81 KB
/
Copy pathpyproject.toml
File metadata and controls
144 lines (122 loc) · 2.81 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
[build-system]
requires = ["setuptools>=64", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "llm-api-client"
description = "A client for interacting with LLM completion APIs and tracking usage."
license = {file = "LICENSE"}
authors = [
{ name = "Andre F. Cruz" },
]
# Keywords to be used by PyPI search
keywords = ["llm", "api", "client"]
# PyPI classifiers, see https://pypi.org/classifiers/
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
version = "0.1.6"
requires-python = ">=3.11" # NOTE: Must use Python 3.11 or higher
# These are defined below dynamically:
dynamic = [
"readme",
"dependencies",
"optional-dependencies",
]
[tool.setuptools.packages.find]
include = ["llm_api_client*"]
exclude = ["tests*"]
[tool.setuptools.dynamic]
readme = { file = "README.md", content-type="text/markdown" }
# Main package dependencies
dependencies = {file = "requirements/main.txt"}
# Optional dependencies
optional-dependencies.tests = {file = "requirements/tests.txt"}
[project.urls]
homepage = "https://github.com/AndreFCruz/llm-api-client"
# flake8
[tool.flake8]
max-complexity = 10
max-line-length = 120
per-file-ignores = """
# imported but unused
**/__init__.py: F401
"""
exclude = [
"docs/",
".tox/",
"build/",
"dist/",
]
[tool.pytest.ini_options]
minversion = "8.0"
testpaths = [
"tests",
]
addopts = "-n auto"
# isort
[tool.isort]
profile = "hug"
force_single_line = false
src_paths = ["llm_api_client", "tests"]
# Coverage
[tool.coverage.run]
branch = true
source = ["llm_api_client"]
omit = ["llm_api_client/_version.py", "tests"]
[tool.coverage.report]
show_missing = true
# MyPy
[tool.mypy]
ignore_missing_imports = true
no_implicit_optional = false
strict_optional = false
exclude = [
"build",
"doc",
"tests",
"notebooks",
]
python_version = "3.11"
# Tox
[tool.tox]
legacy_tox_ini = """
[tox]
env_list =
py311
py312
py313
lint
type
[testenv]
description = run unit tests
deps =
pytest>=8
coverage>=7
pytest-xdist>=3
commands =
coverage erase
coverage run -m pytest {posargs:tests}
coverage report -m
[testenv:type]
description = run type checks
basepython = python3.11
deps =
mypy>=1.0
commands = mypy {posargs:llm_api_client}
[testenv:lint]
description = run linters
skip_install = true
deps =
flake8>=7.0
flake8-pyproject
commands = flake8 {posargs:llm_api_client tests}
"""