FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Feat/static type stubs without engine files by adarshdigievo · Pull Request #34 · serpapi/serpapi-python · GitHub

Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .in  (1) .py  (3) .pyi  (3) .toml  (1) .typed  (1) .yml  (1) All 6 file types selected
Only manifest files
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
1 change: 1 addition & 0 deletions .github/workflows/release.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Back | FazBrowse Home | New Git URL