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

Bump stravalib from 1.2.0 to 2.1 #64

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 9, 2024

Bumps stravalib from 1.2.0 to 2.1.

Release notes

Sourced from stravalib's releases.

v2.1

This release fixes a bunch of small bugs associated with stravalib 2.0. It looks like our changelog is not as current as it could be so below are the generated release notes with the full scope of changes!

What's Changed

New Contributors

Full Changelog: stravalib/stravalib@v2.0...v2.1

✨ 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.

... (truncated)

Changelog

Sourced from stravalib's changelog.

Change Log

Unreleased

Added

  • Add: Add more information about how our mock fixture works (@​lwasser, #292)

Fixed

v2.1.0

Added

Fixed

Changed

Contributors to this release

@​yotam5 made their first contribution to stravalib! @​jsamoocha, @​lwasser, @​enadeau, @​yotam5

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

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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 <dependency name> 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)

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Dec 9, 2024
@dependabot dependabot bot force-pushed the dependabot/pip/stravalib-2.1 branch 6 times, most recently from 5de7b00 to 0dc133a Compare December 31, 2024 20:26
@dependabot dependabot bot force-pushed the dependabot/pip/stravalib-2.1 branch from 0dc133a to dd9bb3c Compare December 31, 2024 21:43
obscurerichard added a commit that referenced this pull request Jan 1, 2025
Upgrade `stravalib` from version 1.2 to 2.1 and refactor the code accordingly.

* **requirements.txt**
  - Update `stravalib` version to `2.1.0`.

* **freezing/sync/data/activity.py**
  - Update import statement for `Activity` to `DetailedActivity`.
  - Replace `Activity` with `DetailedActivity` in `update_ride_basic`, `write_ride_efforts`, `write_ride_photo_primary`, `update_ride_complete`, `check_activity`, `list_rides`, and `write_ride` methods.

* **freezing/sync/data/streams.py**
  - Update import statement for `Stream` to `StreamSet`.
  - Replace `Stream` with `StreamSet` in `write_ride_streams` method.

* **freezing/sync/utils/cache.py**
  - Update import statement for `Activity` to `DetailedActivity`.
  - Replace `Activity` with `DetailedActivity` in `CachingActivityFetcher` class.

Resolves #64
Resolves #45

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/freezingsaddles/freezing-sync?shareId=XXXX-XXXX-XXXX-XXXX).
@dependabot dependabot bot changed the base branch from master to main January 3, 2025 17:31
@dependabot dependabot bot force-pushed the dependabot/pip/stravalib-2.1 branch from dd9bb3c to dfd63ee Compare January 5, 2025 20:44
@dependabot dependabot bot force-pushed the dependabot/pip/stravalib-2.1 branch 4 times, most recently from 17ae1f2 to c5f4103 Compare January 6, 2025 02:22
@obscurerichard obscurerichard added help wanted Extra attention is needed and removed no-rush-on-this-one labels Jan 6, 2025
Bumps [stravalib](https://github.com/stravalib/stravalib) from 1.2.0 to 2.1.
- [Release notes](https://github.com/stravalib/stravalib/releases)
- [Changelog](https://github.com/stravalib/stravalib/blob/main/changelog.md)
- [Commits](stravalib/stravalib@v1.2.0...v2.1)

---
updated-dependencies:
- dependency-name: stravalib
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/pip/stravalib-2.1 branch from c5f4103 to 8bf1d35 Compare January 6, 2025 04:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file help wanted Extra attention is needed
Projects
Status: In progress
Development

Successfully merging this pull request may close these issues.

1 participant