Skip to content
Open
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 .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
- name: Build sdist and wheel
run: |
pip install build
python typing/generate_type_stubs.py --check
python -m build
Comment on lines 50 to 54

- uses: actions/upload-artifact@v7
Expand Down
3 changes: 2 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
include README.md HISTORY.md LICENSE
recursive-include tests *.py
recursive-include serpapi *.pyi py.typed
recursive-include tests *.py
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ readme = "README.md"
license = { text = "MIT" }
authors = [{ name = "SerpApi", email = "support@serpapi.com" }]
requires-python = ">=3.6"
dependencies = ["requests"]
dependencies = ["requests", "typing_extensions"]
keywords = [
"scrape", "serp", "api", "serpapi", "scraping", "json", "search",
"localized", "rank", "google", "bing", "baidu", "yandex", "yahoo",
Expand Down Expand Up @@ -39,6 +39,7 @@ classifiers = [
[project.optional-dependencies]
color = ["pygments"]
test = ["pytest"]
dev = ["markdownify"]

[project.urls]
Homepage = "https://github.com/serpapi/serpapi-python"
Expand All @@ -50,6 +51,10 @@ version = { attr = "serpapi.__version__.__version__" }

[tool.setuptools.packages.find]
exclude = ["tests", "tests.*"]
namespaces = false

[tool.setuptools.package-data]
serpapi = ["*.pyi", "py.typed"]

[tool.pytest.ini_options]
testpaths = ["tests"]
6 changes: 6 additions & 0 deletions serpapi/__init__.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# This file is generated by typing/generate_type_stubs.py.
# Do not edit by hand; update typing/engines/*.json and rerun the generator.
from .__version__ import __version__ as __version__
from .core import Client as Client, account as account, locations as locations, search as search, search_archive as search_archive
from .exceptions import APIKeyNotProvided as APIKeyNotProvided, HTTPConnectionError as HTTPConnectionError, HTTPError as HTTPError, SearchIDNotProvided as SearchIDNotProvided, SerpApiError as SerpApiError, TimeoutError as TimeoutError
from .models import SerpResults as SerpResults
Loading