Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve login by migrating Cloudscraper to Garth #144

Merged
merged 15 commits into from
Sep 14, 2023
Merged
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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
session.json
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down Expand Up @@ -104,6 +103,7 @@ celerybeat.pid

# Environments
.env
.envrc
.venv
env/
venv/
Expand All @@ -128,3 +128,4 @@ dmypy.json

# Pyre type checker
.pyre/

7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"python.testing.pytestArgs": [
"tests"
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true
}
19 changes: 19 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
PATH := ./venv/bin:${PATH}
sources = garminconnect tests setup.py

.PHONY: .venv ## Install virtual environment
.venv:
python -m venv .venv
python -m pip install -qU pip

.PHONY: install ## Install package
install: .venv
pip install -qUe .

.PHONY: install-test ## Install package in development mode
install-test: .venv install
pip install -qU -r requirements-test.txt

.PHONY: test ## Run tests
test:
pytest --cov=garminconnect --cov-report=term-missing
Loading