Skip to content

Commit 223d161

Browse files
authored
Merge pull request #73 from browserbase/miguel/stg-460-remove-asyncio-as-a-dependency
cleaned asyncio and updated dependencies structure
2 parents 95ea0e7 + 6ca261c commit 223d161

File tree

4 files changed

+53
-48
lines changed

4 files changed

+53
-48
lines changed

pyproject.toml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,54 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "stagehand-py"
7+
version = "0.3.10"
8+
description = "Python SDK for Stagehand"
9+
readme = "README.md"
10+
license = {text = "MIT"}
11+
authors = [
12+
{name = "Browserbase, Inc.", email = "support@browserbase.com"}
13+
]
14+
classifiers = [
15+
"Programming Language :: Python :: 3",
16+
"License :: OSI Approved :: MIT License",
17+
"Operating System :: OS Independent",
18+
]
19+
requires-python = ">=3.9"
20+
dependencies = [
21+
"httpx>=0.24.0",
22+
"python-dotenv>=1.0.0",
23+
"pydantic>=1.10.0",
24+
"playwright>=1.42.1",
25+
"requests>=2.31.0",
26+
"browserbase>=1.4.0",
27+
]
28+
29+
[project.optional-dependencies]
30+
dev = [
31+
"pytest>=7.3.1",
32+
"pytest-asyncio>=0.21.0",
33+
"pytest-mock>=3.10.0",
34+
"pytest-cov>=4.1.0",
35+
"black>=23.3.0",
36+
"isort>=5.12.0",
37+
"mypy>=1.3.0",
38+
"ruff",
39+
"rich", # Useful for development/debugging
40+
]
41+
42+
[project.urls]
43+
Homepage = "https://github.com/browserbase/stagehand-python"
44+
Repository = "https://github.com/browserbase/stagehand-python"
45+
46+
[tool.setuptools]
47+
packages = ["stagehand"]
48+
49+
[tool.setuptools.package-data]
50+
stagehand = ["domScripts.js"]
51+
152
[tool.ruff]
253
# Same as Black
354
line-length = 88

requirements-dev.txt

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

requirements.txt

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,2 @@
1-
httpx>=0.24.0
2-
asyncio>=3.4.3
3-
python-dotenv>=1.0.0
4-
pydantic>=1.10.0
5-
playwright>=1.42.1
6-
requests>=2.31.0
7-
rich
8-
browserbase
1+
# Installs the package in editable mode with development dependencies
2+
-e .[dev]

setup.py

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

0 commit comments

Comments
 (0)