Skip to content

Commit

Permalink
Created quick PR for USER_AGENT fix (#74)
Browse files Browse the repository at this point in the history
* Updated USER_AGENT string

* Update garth/http.py

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* bump version and lint

* remove support for 3.8

* remove 3.8

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Matin Tamizi <mtamizi@duck.com>
3 people authored Dec 1, 2024
1 parent 87abab3 commit 960d8c0
Showing 4 changed files with 6 additions and 11 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4

@@ -45,7 +45,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu, macos, windows]
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11"]

env:
PYTHON: ${{ matrix.python-version }}
@@ -73,9 +73,8 @@ jobs:
CONTEXT: ${{ runner.os }}-py${{ matrix.python-version }}-with-deps

- name: upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/coverage.xml
flags: unittests
name: codecov-umbrella
5 changes: 1 addition & 4 deletions garth/http.py
Original file line number Diff line number Diff line change
@@ -13,10 +13,7 @@
from .utils import asdict

USER_AGENT = {
"User-Agent": (
"Mozilla/5.0 (iPhone; CPU iPhone OS 16_5 like Mac OS X) "
"AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148"
),
"User-Agent": "GCM-iOS-5.7.2.1",
}


2 changes: 1 addition & 1 deletion garth/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.4.46"
__version__ = "0.4.47"
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -10,13 +10,12 @@ dependencies = [
"pydantic>=1.10.12,<3.0.0",
"requests-oauthlib>=1.3.1,<2.0.0",
]
requires-python = ">=3.8"
requires-python = ">=3.9"
readme = "README.md"
license = {text = "MIT"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",

0 comments on commit 960d8c0

Please sign in to comment.