Skip to content

Commit 92d1bff

Browse files
committed
Squash merge bk into replace-tox-with-uv
Signed-off-by: Teo <[email protected]>
1 parent 892c843 commit 92d1bff

File tree

3 files changed

+25
-56
lines changed

3 files changed

+25
-56
lines changed

pyproject.toml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ readme = "README.md"
1717
requires-python = ">=3.7"
1818
classifiers = [
1919
"Programming Language :: Python :: 3",
20+
"Programming Language :: Python :: 3.7",
2021
"Programming Language :: Python :: 3.8",
2122
"Programming Language :: Python :: 3.9",
2223
"Programming Language :: Python :: 3.10",
@@ -34,29 +35,25 @@ dependencies = [
3435
"opentelemetry-api>=1.22.0,<2.0.0",
3536
"opentelemetry-sdk>=1.22.0,<2.0.0",
3637
"opentelemetry-exporter-otlp-proto-http>=1.22.0,<2.0.0",
37-
"typing-extensions>=4.9.0; python_version >= '3.8'",
38-
"pydantic>=2.7.4,<3.0.0; python_version < '3.13'",
39-
"pydantic-core>=2.23.4; python_version >= '3.8' and python_version < '3.13'"
38+
# "typing-extensions>=4.9.0; python_version >= '3.8'",
39+
# "pydantic>=2.7.4,<3.0.0; python_version < '3.13'",
40+
# "pydantic-core>=2.23.4; python_version >= '3.8' and python_version < '3.13'"
4041
]
4142

4243
[project.optional-dependencies]
4344
# Optional LangChain integration for end users
4445
langchain = [
4546
"langchain>=0.2.14; python_version >= '3.8.1' and python_version < '3.13'",
4647
"langchain-core>=0.3.0; python_version >= '3.8.1' and python_version < '3.13'",
47-
"openai>=1.58.1; python_version < '3.13'"
48-
]
49-
50-
# LangChain testing dependencies
51-
test-langchain = [
52-
"langchain-core>=0.3.0; python_version >= '3.8.1' and python_version < '3.13'",
53-
"langchain>=0.2.14; python_version >= '3.8.1' and python_version < '3.13'"
48+
"openai>=1.58.1; python_version >= '3.8.1' and python_version < '3.13'",
49+
"openai<1.0.0; python_version < '3.8.1'" # For Python 3.7 compatibility
5450
]
5551

5652
[dependency-groups]
5753
test = [
5854
"openai",
5955
"langchain",
56+
# ... Add all dependencies that are required for testing here
6057
]
6158
# CI dependencies
6259
ci = [
@@ -67,6 +64,9 @@ ci = [
6764
Homepage = "https://github.com/AgentOps-AI/agentops"
6865
Issues = "https://github.com/AgentOps-AI/agentops/issues"
6966

67+
# [project.scripts]
68+
# test-versions = "bash -c 'for v in 3.7 3.8 3.9 3.10 3.11 3.12; do ./test_python_versions.sh $v || exit 1; done'"
69+
7070
[tool.uv]
7171
compile-bytecode = true # Enable bytecode compilation for better performance
7272

test_python_versions.sh

Lines changed: 0 additions & 46 deletions
This file was deleted.

tests/test_packaging.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
echo "Testing installation and dependency satisfaction of all extras including dev packages across Python versions"
4+
echo "----------------------------------------"
5+
for version in 3.7 3.8 3.9 3.10 3.11 3.12 3.13; do
6+
uv sync --dev --quiet --python=$version --all-extras
7+
if [ $? -eq 0 ]; then
8+
echo "✅ Python $version OK"
9+
else
10+
echo "❌ Python $version FAIL"
11+
fi
12+
echo "----------------------------------------"
13+
rm -rf .venv
14+
done
15+
echo "🏁 All Python version tests completed"

0 commit comments

Comments
 (0)