Skip to content

Commit 02e8358

Browse files
authored
Swap from poetry to uv (#13)
* swap all examples to uv * swap ai/mcp to uv
1 parent 8ebc4d0 commit 02e8358

File tree

34 files changed

+15659
-5900
lines changed

34 files changed

+15659
-5900
lines changed

python/examples/adapter_autogen/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ First, ensure you have Python 3.10+ installed. Then install the required package
1616
# Using pip
1717
pip install "thirdweb-ai[autogen]"
1818

19-
# Using Poetry
20-
poetry add "thirdweb-ai[autogen]"
19+
# Using uv
20+
uv add "thirdweb-ai[autogen]"
2121
```
2222

2323
## Usage
@@ -46,4 +46,4 @@ You can customize the assistant by modifying the example code:
4646

4747
## Requirements
4848

49-
See `pyproject.toml` for the full list of dependencies.
49+
See `pyproject.toml` for the full list of dependencies.
Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
[tool.poetry]
1+
[project]
22
name = "thirdweb-ai-examples-autogen"
33
version = "0.1.0"
44
description = "Example of using thirdweb_ai with AutoGen"
5-
authors = ["thirdweb <[email protected]>"]
6-
package-mode = false
5+
authors = [{ name = "thirdweb", email = "[email protected]" }]
6+
requires-python = "~=3.10"
7+
dependencies = [
8+
"thirdweb-ai[autogen]",
9+
"autogen-agentchat>=0.4.0,<0.5",
10+
"autogen-ext[openai]>=0.4.0,<0.5",
11+
]
712

8-
[tool.poetry.dependencies]
9-
python = "^3.10"
10-
thirdweb-ai = { version = "*", extras = ["autogen"] }
11-
autogen-agentchat = "^0.4.0"
12-
autogen-ext = { version = "^0.4.0", extras = ["openai"] }
13+
[tool.uv]
14+
package = false
1315

1416
[build-system]
15-
requires = ["poetry-core>=1.0.0"]
16-
build-backend = "poetry.core.masonry.api"
17+
requires = ["hatchling"]
18+
build-backend = "hatchling.build"

python/examples/adapter_autogen/uv.lock

Lines changed: 789 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

python/examples/adapter_coinbase_agentkit/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ First, ensure you have Python 3.10+ installed. Then install the required package
1616
# Using pip
1717
pip install "thirdweb-ai[coinbase_agentkit]"
1818

19-
# Using Poetry
20-
poetry add "thirdweb-ai[coinbase_agentkit]"
19+
# Using uv
20+
uv add "thirdweb-ai[coinbase_agentkit]"
2121
```
2222

2323
## Usage
@@ -50,4 +50,4 @@ You can customize the agent by modifying the example code:
5050

5151
## Requirements
5252

53-
See `pyproject.toml` for the full list of dependencies.
53+
See `pyproject.toml` for the full list of dependencies.
Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
1-
[tool.poetry]
1+
[project]
22
name = "thirdweb-ai-examples-coinbase-agentkit"
33
version = "0.1.0"
44
description = "Example of using thirdweb_ai with Coinbase AgentKit"
5-
authors = ["thirdweb <[email protected]>"]
6-
package-mode = false
5+
authors = [{ name = "thirdweb", email = "[email protected]" }]
6+
requires-python = "~=3.10"
7+
dependencies = [
8+
"thirdweb-ai[agentkit]",
9+
"coinbase-agentkit>=0.1.0,<0.2",
10+
"coinbase-agentkit-langchain>=0.1.0,<0.2",
11+
"langchain-openai>=0.3.8,<0.4",
12+
"langgraph>=0.3.11,<0.4",
13+
]
714

8-
[tool.poetry.dependencies]
9-
python = "^3.10"
10-
thirdweb-ai = { version = "*", extras = ["agentkit"] }
11-
coinbase-agentkit = "^0.1.0"
12-
coinbase-agentkit-langchain = "^0.1.0"
13-
langchain-openai = "^0.3.8"
14-
langgraph = "^0.3.11"
15+
[tool.uv]
16+
package = false
1517

1618
[build-system]
17-
requires = ["poetry-core>=1.0.0"]
18-
build-backend = "poetry.core.masonry.api"
19+
requires = ["hatchling"]
20+
build-backend = "hatchling.build"

python/examples/adapter_coinbase_agentkit/uv.lock

Lines changed: 2437 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

python/examples/adapter_goat/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ First, ensure you have Python 3.10+ installed. Then install the required package
1616
# Using pip
1717
pip install "thirdweb-ai[goat]"
1818

19-
# Using Poetry
20-
poetry add "thirdweb-ai[goat]"
19+
# Using uv
20+
uv add "thirdweb-ai[goat]"
2121
```
2222

2323
## Usage
@@ -50,4 +50,4 @@ You can customize the agent by modifying the example code:
5050

5151
## Requirements
5252

53-
See `pyproject.toml` for the full list of dependencies.
53+
See `pyproject.toml` for the full list of dependencies.
Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
1-
[tool.poetry]
1+
[project]
22
name = "thirdweb-ai-examples-goat"
33
version = "0.1.0"
44
description = "Example of using thirdweb_ai with GOAT SDK"
5-
authors = ["thirdweb <[email protected]>"]
6-
package-mode = false
5+
authors = [{ name = "thirdweb", email = "[email protected]" }]
6+
requires-python = "~=3.10"
7+
dependencies = [
8+
"thirdweb-ai[goat]",
9+
"goat-sdk>=0.1.0,<0.2",
10+
"goat-sdk-adapter-langchain>=0.1.0,<0.2",
11+
"goat-sdk-wallet-evm>=0.1.1,<0.2",
12+
"goat-sdk-wallet-web3>=0.1.0,<0.2",
13+
"web3>=6.20.3",
14+
"langchain>=0.3.0,<0.4",
15+
"langchain-openai>=0.2.0,<0.3",
16+
"goat-sdk-plugin-erc20>=0.1.1,<0.2",
17+
]
718

8-
[tool.poetry.dependencies]
9-
python = "^3.10"
10-
thirdweb-ai = {version = "*", extras = ["goat"]}
11-
goat-sdk = "^0.1.0"
12-
goat-sdk-adapter-langchain = "^0.1.0"
13-
goat-sdk-wallet-evm = "^0.1.1"
14-
goat-sdk-wallet-web3 = "^0.1.0"
15-
web3 = ">=6.20.3"
16-
langchain = "^0.3.0"
17-
langchain-openai = "^0.2.0"
18-
goat-sdk-plugin-erc20 = "^0.1.1"
19+
[tool.uv]
20+
package = false
1921

2022
[build-system]
21-
requires = ["poetry-core>=1.0.0"]
22-
build-backend = "poetry.core.masonry.api"
23+
requires = ["hatchling"]
24+
build-backend = "hatchling.build"

python/examples/adapter_goat/uv.lock

Lines changed: 2068 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

python/examples/adapter_langchain/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ First, ensure you have Python 3.10+ installed. Then install the required package
1616
# Using pip
1717
pip install "thirdweb-ai[langchain]"
1818

19-
# Using Poetry
20-
poetry add "thirdweb-ai[langchain]"
19+
# Using uv
20+
uv add "thirdweb-ai[langchain]"
2121
```
2222

2323
## Usage
@@ -48,4 +48,4 @@ You can customize the agent by modifying the example code:
4848

4949
## Requirements
5050

51-
See `pyproject.toml` for the full list of dependencies.
51+
See `pyproject.toml` for the full list of dependencies.
Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
[tool.poetry]
1+
[project]
22
name = "thirdweb-ai-examples-langchain"
33
version = "0.1.0"
44
description = "Example of using thirdweb_ai with LangChain"
5-
authors = ["thirdweb <[email protected]>"]
6-
package-mode = false
5+
authors = [{ name = "thirdweb", email = "[email protected]" }]
6+
requires-python = "~=3.10"
7+
dependencies = [
8+
"thirdweb-ai[langchain]",
9+
"langchain>=0.3.0,<0.4",
10+
"langchain-openai>=0.3.0,<0.4",
11+
]
712

8-
[tool.poetry.dependencies]
9-
python = "^3.10"
10-
thirdweb-ai = {version = "*", extras = ["langchain"]}
11-
langchain = "^0.3.0"
12-
langchain-openai = "^0.3.0"
13+
[tool.uv]
14+
package = false
1315

1416
[build-system]
15-
requires = ["poetry-core>=1.0.0"]
16-
build-backend = "poetry.core.masonry.api"
17+
requires = ["hatchling"]
18+
build-backend = "hatchling.build"

0 commit comments

Comments
 (0)