fortysix2ahead / tracs

Command line application for managing GPS tracks
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Update stravalib requirement from ~=1.7.0 to ~=2.0 #307

Closed dependabot[bot] closed 3 weeks ago

dependabot[bot] commented 3 months ago

Updates the requirements on stravalib to permit the latest version.

Release notes

Sourced from stravalib's releases.

✨ Stravalib Release -- v2.0 ✨

v2.0.0

Attention users: breaking changes + many enhancements!

Major Changes in This Release

  1. Breaking: Added support for Pydantic 2.x; 1.x behavior is no longer supported. Refer to Pydantic’s V2 migration guide if you use extensions of Stravalib model classes or Pydantic’s serialization mechanisms (parse_obj(), dict(), json()).

  2. Removed deprecated (de-)serialization methods deserialize(), from_dict(), and to_dict(). Use Pydantic’s serialization mechanisms.

  3. Renamed unithelper module to unit_helper. Helper functions like feet() and miles() now return a Pint Quantity object.

  4. Introduced new types for distances, velocities, durations, and time zones. activity.distance now returns a Distance type. Retrieve distance in meters with activity.distance or as a Quantity using activity.distance.quantity.

Please see the migration guide in our docs for more details on the changes.

Added

Fixed

... (truncated)

Changelog

Sourced from stravalib's changelog.

Change Log

Unreleased

v2.0.0

Major Changes in This Release

  1. Breaking: Added support for Pydantic 2.x; 1.x behavior is no longer supported. Refer to Pydantic’s V2 migration guide if you use extensions of Stravalib model classes or Pydantic’s serialization mechanisms (parse_obj(), dict(), json()).

  2. Removed deprecated (de-)serialization methods deserialize(), from_dict(), and to_dict(). Use Pydantic’s serialization mechanisms.

  3. Renamed unithelper module to unit_helper. Helper functions like feet() and miles() now return a Pint Quantity object.

  4. Introduced new types for distances, velocities, durations, and time zones. activity.distance now returns a Distance type. Retrieve distance in meters with activity.distance or as a Quantity using activity.distance.quantity.

Please see the migration guide in our docs for more details on the changes.

Added

Fixed

... (truncated)

Commits
  • ef78fc6 Stravalib 2.0 changelog update (#558)
  • 0836b02 BREAKING CHANGES: stravalib 2.x + pydantic 2.x support
  • 6ee7f78 fix(codecov): relax code coverage requirements
  • 8e656bc Fix: cleanup
  • 6f7f340 Fix: update strava_model to align with 310
  • 296fdea Fix: migrate to python 310+ typing
  • 1199b49 Fits unit conversion documentation to new quantity and duration types
  • 7bb9dbe Removes section that becomes irrelevant in stravalib 2.0
  • 83ec09f Fix: bad link & a few other doc issues (#545)
  • 9067c6b Docs: cleanup api docs and add migration guide
  • Additional commits viewable in compare view


You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

dependabot[bot] commented 3 weeks ago

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.