From a4d22ab0b66d9847a2c8436e48af0ab4c99b40c1 Mon Sep 17 00:00:00 2001 From: Peter Steiner Date: Sun, 8 Oct 2023 17:20:23 +0200 Subject: [PATCH] Prepare for release 4.2.0 --- .github/workflows/python-app.yml | 4 ++-- CHANGELOG.md | 15 ++++++++++++--- README.md | 10 +++++++--- gcexport.py | 4 ++-- 4 files changed, 23 insertions(+), 10 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 100a2a2..55fa003 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -28,15 +28,15 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install pytest if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Test with pytest run: | + pip install pytest pytest - name: Lint with flake8 run: | pip install flake8 - pip install flake8-import-order + # flake8-import-order not needed anymore, pylint does this now flake8 . - name: Lint with pylint run: | diff --git a/CHANGELOG.md b/CHANGELOG.md index 054dc44..102ce3d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,15 @@ This changelog is inspired by [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). +## 4.2.0 - 2023-10-08 + +- fixed: Use [garth](https://github.com/matin/garth) for OAuth to fix #95 + [Did not find the display name in the profile page](https://github.com/pe-st/garmin-connect-export/issues/95) + ([Pull Request #96](https://github.com/pe-st/garmin-connect-export/pull/96) by @SimonBaars with @geraudloup and @app4g) +- added: date filter flags `--start_date` and `--end_date` + ([Pull Request #73](https://github.com/pe-st/garmin-connect-export/pull/73) by @bxsx) + + ## 4.1.0 - 2023-07-22 - changed: updated the list of parent activities (`PARENT_TYPE_ID`) to the new set Garmin is now using @@ -16,16 +25,16 @@ This changelog is inspired by [Keep a Changelog](https://keepachangelog.com/en/1 - removed: Python 2 leftovers ([Pull Request #73](https://github.com/pe-st/garmin-connect-export/pull/73) by @bxsx) - added: configurations for flake8, pylint and black (including the needed improvements of the code for them) -- changed: Github Actions now execute also flake8, pylint and black tasks +- changed: GitHub Actions now execute also flake8, pylint and black tasks ## 3.3.0 - 2021-12-26 - added: support for time spent in HR zones (feature request) ([Issue #68](https://github.com/pe-st/garmin-connect-export/issues/68) -- fixed: adapt display name parsing because of change Garmin Connect behaviour +- fixed: adapt display name parsing because of changed Garmin Connect behaviour ([Pull Request #69](https://github.com/pe-st/garmin-connect-export/pull/69) by @hannesweisbach) -- added: Github Action to execute the tests automatically +- added: GitHub Action to execute the tests automatically ## 3.2.1 - 2021-08-15 diff --git a/README.md b/README.md index 18da267..8deb394 100644 --- a/README.md +++ b/README.md @@ -181,7 +181,7 @@ For the history of this fork see the [CHANGELOG](CHANGELOG.md) Contributions are welcome, see [CONTRIBUTING.md](CONTRIBUTING.md) -Contributors as of 2021-12 (Hope I didn't forget anyone, +Contributors as of 2023-10 (Hope I didn't forget anyone, see also [Contributors](https://github.com/pe-st/garmin-connect-export/graphs/contributors)): - Kyle Krafka @kjkjava @@ -195,7 +195,7 @@ see also [Contributors](https://github.com/pe-st/garmin-connect-export/graphs/co - Chris McCarty @cmccarty - Julien Rebetez @julienr - Peter Steiner @pe-st -- @lindback +- @ulf-lindback - @TheKiteRunning - Jens Diemer @jedie - Christian Moelders @chmoelders @@ -203,9 +203,13 @@ see also [Contributors](https://github.com/pe-st/garmin-connect-export/graphs/co - Josef K @jkall - Thomas Th @telemaxx - Bart Skowron @bxsx -- @reto +- Reto Conconi @retoborm - Cristian @cristian5th - @hannesweisbach +- @SimonBaars +- @geraudloup +- @app4g +- Simon Ă…gren @agrensimon ## License diff --git a/gcexport.py b/gcexport.py index 47d84f9..bf0a7cb 100644 --- a/gcexport.py +++ b/gcexport.py @@ -53,7 +53,7 @@ COOKIE_JAR = http.cookiejar.CookieJar() OPENER = urllib.request.build_opener(urllib.request.HTTPCookieProcessor(COOKIE_JAR), urllib.request.HTTPSHandler(debuglevel=0)) -SCRIPT_VERSION = '4.1.0' +SCRIPT_VERSION = '4.2.0' # This version here should correspond to what is written in CONTRIBUTING.md#python-3x-versions MINIMUM_PYTHON_VERSION = (3, 8) @@ -971,7 +971,7 @@ def fetch_activity_chunk(args, num_to_download, total_downloaded): search_params['startDate'] = args.start_date if args.end_date != "": search_params['endDate'] = args.end_date - + # Query Garmin Connect print('Querying list of activities ', total_downloaded + 1, '..', total_downloaded + num_to_download, '...', sep='', end='') logging.info('Activity list URL %s', URL_GC_LIST + urlencode(search_params))