Skip to content

Commit 574bad1

Browse files
committed
uv config
1 parent b6584c9 commit 574bad1

2 files changed

Lines changed: 3916 additions & 35 deletions

File tree

pyproject.toml

Lines changed: 13 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
[build-system]
2-
# Use 'hatchling' or 'setuptools' for the build backend.
3-
# We'll stick with setuptools as you had it, but define the metadata in pyproject.toml
4-
# You could easily switch to hatchling or flit here.
5-
requires = ["setuptools>=64.0.0", "setuptools_scm>=8"] # setuptools_scm is good practice for versioning
2+
requires = ["setuptools>=64.0.0", "setuptools_scm>=8"]
63
build-backend = "setuptools.build_meta"
74

85
[project]
96
name = "llms-wrapper"
10-
version = "0.0.0" # This will be managed by setuptools_scm or your existing version.py
7+
dynamic = ["version"]
118
description = "Package for simple usage of diverse LLMs and configuring them using human readable config files"
129
readme = "README.md"
1310
authors = [
1411
{ name = "Johann Petrak", email = "johann.petrak@gmail.com" },
1512
]
1613
license = { text = "Apache Software License" }
1714
requires-python = ">=3.11"
18-
# The 'dependencies' section lists your core requirements (REQUIREMENTS_DEFAULT)
19-
# The full list of dependencies is moved to requirements.txt (see section 2) for better uv integration
20-
# However, for an installable package, this must be defined here for pip/uv install -e .
15+
classifiers = [
16+
"Development Status :: 5 - Production/Stable",
17+
"Intended Audience :: Developers",
18+
"Intended Audience :: Science/Research",
19+
"Topic :: Scientific/Engineering",
20+
"Topic :: Software Development :: Libraries",
21+
]
2122
dependencies = [
2223
"litellm",
2324
"tenacity",
@@ -26,9 +27,7 @@ dependencies = [
2627
"docstring_parser",
2728
]
2829

29-
# This is where your optional dependency groups (extras_require) are defined.
3030
[project.optional-dependencies]
31-
# Note: You can keep 'all' if you want, but it's often better to let users combine the groups.
3231
dev = [
3332
"pdoc3",
3433
"pytest",
@@ -48,47 +47,26 @@ phoenix = [
4847
"arize-phoenix-otel",
4948
]
5049
all = [
51-
# Include all other optional dependencies here, similar to your setup.py
5250
"llms-wrapper[dev,webchat,phoenix]",
5351
]
5452

5553
[project.urls]
56-
# Documentation = "" # Uncomment and fill if needed
57-
# Source = "" # Uncomment and fill if needed
54+
# Documentation = ""
55+
# Source = ""
5856

5957
[project.scripts]
60-
# entry_points={"console_scripts": [...] } is moved here
6158
llms_wrapper_test = "llms_wrapper.llms_wrapper_test:main"
6259
llms_wrapper_llminfo = "llms_wrapper.llms_wrapper_llminfo:main"
6360
llms_wrapper_webchat = "llms_wrapper.llms_wrapper_webchat:main"
6461

65-
[project.classifiers]
66-
# Classifiers from setup.py
67-
dynamic = ["classifiers"]
68-
# Use dynamic if you want to pull from setuptools_scm or other plugins
69-
# Otherwise, manually list:
70-
# classifiers = [
71-
# "Development Status :: 4 - Beta",
72-
# "License :: OSI Approved :: Apache Software License",
73-
# "Programming Language :: Python :: 3.11",
74-
# # ... other classifiers
75-
# ]
76-
7762

78-
# Tool-specific configuration sections
79-
# ---
8063
[tool.setuptools]
81-
# Instead of `packages=find_packages()`, you use `packages = ["llms_wrapper"]`
82-
# or configure setuptools to find them
8364
packages = ["llms_wrapper"]
8465

85-
# [tool.setuptools.dynamic]
86-
# version = {attr = "llms_wrapper.version.__version__"}
87-
# Use this if you want to read version from version.py as you did before
88-
# Alternatively, use setuptools_scm for Git-based versioning (recommended).
66+
[tool.setuptools.dynamic]
67+
version = {attr = "llms_wrapper.version.__version__"}
8968

9069
[tool.pytest.ini_options]
91-
# Configuration from setup.cfg
9270
log_cli = true
9371
log_cli_level = "WARN"
9472
addopts = "-r A"

0 commit comments

Comments
 (0)