Skip to content

Commit d658e87

Browse files
author
Kenneth Reitz
authored
Merge pull request #4 from serpapi/kr-improvements
re-write of python client
2 parents c67bcf4 + 7473fcf commit d658e87

64 files changed

Lines changed: 2919 additions & 2278 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,18 @@ jobs:
1818
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
1919

2020
steps:
21-
- uses: actions/checkout@v3
21+
- name: Checkout repository
22+
uses: actions/checkout@v3
23+
2224
- name: Set up Python ${{ matrix.python-version }}
2325
uses: actions/setup-python@v4
2426
with:
2527
python-version: ${{ matrix.python-version }}
28+
29+
2630
- name: Install dependencies
27-
run: |
28-
python -m pip install --upgrade pip
29-
pip install flake8 pytest
30-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
31-
- name: Lint with flake8
32-
run: |
33-
# stop the build if there are Python syntax errors or undefined names
34-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
35-
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
36-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
31+
run: pip install -e .[test]
32+
3733
- name: Test with pytest
3834
run: pytest
3935
env:

.gitignore

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
1+
.vscode/**
2+
13
script/
24
.coverage
35
docs/build
46
dist/
7+
build/
58
.pytest_cache/
69
serpapi.egg-info/
710

8-
serpapi/__pycache__
9-
tests/__pycache__
11+
12+
__pycache__
1013
*.pyc
1114
.DS_Store
15+
.envrc
16+
17+
.vscode
18+
t.py

.readthedocs.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# .readthedocs.yaml
2+
# Read the Docs configuration file
3+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4+
5+
# Required
6+
version: 2
7+
8+
# Set the OS, Python version and other tools you might need
9+
build:
10+
os: ubuntu-22.04
11+
tools:
12+
python: "3.11"
13+
# You can also specify other tool versions:
14+
# nodejs: "19"
15+
# rust: "1.64"
16+
# golang: "1.19"
17+
18+
# Build documentation in the "docs/" directory with Sphinx
19+
sphinx:
20+
configuration: docs/conf.py
21+
22+
# Optionally build your docs in additional formats such as PDF and ePub
23+
formats:
24+
- pdf
25+
- epub
26+
27+
# Optional but recommended, declare the Python requirements required
28+
# to build your documentation
29+
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
30+
python:
31+
install:
32+
- requirements: docs/requirements.txt

HISTORY.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Release History
2+
===============
3+
4+
dev
5+
---
6+
7+
* Initial release
8+
9+
1.0.0 (planned)
10+
---------------
11+
12+
- First planned release

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2018-2022 SerpApi
3+
Copyright (c) 2018-2023 SerpApi
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include README.md HISTORY.md LICENSE
2+
recursive-include tests *.py

MIT-LICENSE.txt

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

Makefile

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

Pipfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[[source]]
2+
url = "https://pypi.org/simple"
3+
verify_ssl = true
4+
name = "pypi"
5+
6+
[packages]
7+
serpapi = {editable = true, path = "."}
8+
9+
[dev-packages]
10+
alabaster = "*"
11+
sphinx = "*"
12+
pytest = "*"
13+
black = "*"

0 commit comments

Comments
 (0)