Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ yalc.lock
./build/
playwright-report/
.env/
_version.pyi

# codecov binary
codecov
Expand Down
34 changes: 25 additions & 9 deletions python/thirdweb-ai/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "thirdweb-ai"
version = "0.1.10"
dynamic = ["version", "dependencies"]
description = "thirdweb AI"
authors = [{ name = "thirdweb", email = "support@thirdweb.com" }]
requires-python = ">=3.10,<4.0"
Expand All @@ -15,13 +15,6 @@ keywords = [
"web3",
"onchain",
]
dependencies = [
"pydantic>=2.10.6,<3",
"jsonref>=1.1.0,<2",
"httpx>=0.28.1,<0.29",
"aiohttp>=3.11.14",
"web3>=7.9.0",
]

[project.optional-dependencies]
all = [
Expand Down Expand Up @@ -66,9 +59,32 @@ include = ["src/thirdweb_ai"]
"src/thirdweb_ai" = "thirdweb_ai"

[build-system]
requires = ["hatchling"]
requires = ["hatchling", "uv-dynamic-versioning"]
build-backend = "hatchling.build"

[tool.hatch.version]
source = "uv-dynamic-versioning"

[tool.hatch.build.hooks.version]
path = "src/thirdweb_ai/_version.py"
template = '''
version = "{version}"
'''

[tool.hatch.metadata.hooks.uv-dynamic-versioning]
dependencies = [
"thirdweb-mcp=={{ version }}",
"pydantic>=2.10.6,<3",
"jsonref>=1.1.0,<2",
"httpx>=0.28.1,<0.29",
"aiohttp>=3.11.14",
"web3>=7.9.0",
]

[tool.uv-dynamic-versioning]
vcs = "git"
style = "semver"

[tool.pyright]
include = ["src"]
typeCheckingMode = "strict"
Expand Down
2 changes: 2 additions & 0 deletions python/thirdweb-ai/src/thirdweb_ai/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
from ._version import version
from .services.engine import Engine
from .services.insight import Insight
from .services.nebula import Nebula
from .services.storage import Storage
from .tools.tool import Tool

__version__ = version
__all__ = ["Engine", "Insight", "Nebula", "Storage", "Tool"]
1 change: 1 addition & 0 deletions python/thirdweb-ai/src/thirdweb_ai/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
version = "0.0.0.post33+25eccbd"
29 changes: 22 additions & 7 deletions python/thirdweb-mcp/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
[project]
name = "thirdweb-mcp"
version = "0.1.14"
dynamic = ["version", "dependencies"]
description = "thirdweb MCP"
authors = [{ name = "thirdweb", email = "support@thirdweb.com" }]
requires-python = "~=3.10"
readme = "README.md"
license = "Apache-2.0"
dependencies = [
"mcp>=1.3.0,<2",
"click>=8.1.8,<9",
"thirdweb-ai[mcp]==0.1.10",
]

[project.scripts]
thirdweb-mcp = "src.mcp:main"
Expand All @@ -28,5 +23,25 @@ include = ["src"]
include = ["src"]

[build-system]
requires = ["hatchling"]
requires = ["hatchling", "uv-dynamic-versioning"]
build-backend = "hatchling.build"

[tool.hatch.version]
source = "uv-dynamic-versioning"

[tool.hatch.build.hooks.version]
path = "src/_version.py"
template = '''
version = "{version}"
'''

[tool.hatch.metadata.hooks.uv-dynamic-versioning]
dependencies = [
"mcp>=1.3.0,<2",
"click>=8.1.8,<9",
"thirdweb-ai[mcp]=={{ version }}",
]

[tool.uv-dynamic-versioning]
vcs = "git"
style = "semver"
3 changes: 3 additions & 0 deletions python/thirdweb-mcp/src/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from ._version import version

__version__ = version
1 change: 1 addition & 0 deletions python/thirdweb-mcp/src/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
version = "0.0.0.post33.dev0+25eccbd"