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

chore(deps): bump pendulum from 3.0.0b1 to 3.0.0 #85

Merged
merged 1 commit into from
Jan 14, 2024

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 14, 2024

Bumps pendulum from 3.0.0b1 to 3.0.0.

Release notes

Sourced from pendulum's releases.

3.0.0

New features

instance() now supports all native types (date, time and datetime)

Before this release, only a datetime could be given to the instance() helper to get an equivalent DateTime instance.

Now you can give to instance a date or time as well:

import pendulum
from datetime import date, time
pendulum.instance(date(2023, 12, 15))
pendulum.instance(time(12, 34, 56))

New testing helpers (and removal of the old ones)

This release now provides improved testing helpers that rely internally on time-machine.

These helpers are optional and for them to work, you need to opt-in the test extra when installing Pendulum.

poetry add "pendulum[test]"
# Or directly via pip
pip install "pendulum[test]"

Relative time travel

You can travel in time relatively to the current time

>>> import pendulum
>>> now = pendulum.now()
>>> pendulum.travel(minutes=5)
>>> pendulum.now().diff_for_humans(now)
"5 minutes after"

Note that once you've travelled in time the clock keeps ticking. If you prefer to stop the time completely you can use the freeze parameter:

>>> import pendulum
>>> now = pendulum.now()
>>> pendulum.travel(minutes=5, freeze=True)
</tr></table>

... (truncated)

Changelog

Sourced from pendulum's changelog.

[3.0.0] - 2023-12-16

Changed

  • Relaxed dependency constraints. #760
  • The testing helpers are now optional and must be opted-in via the test extra. #778

Fixed

  • Removed remaining mentions of periods instead of intervals. #757
  • Fixed the behavior of the week_of_month property for edge cases in January and December. #774
  • Fixed the handling of the fold attribute when deep-copying a DateTime instance. #776
  • Fixed errors where hours and days were not handled properly when adding durations. #775
  • Fixed errors where hours and days were not handled properly when adding durations. #775
Commits
  • 0fcd102 Bump version to 3.0.0
  • 6b70ac0 Remove benchmark for format (#779)
  • f6a61db Make the test helpers opt-in via a test extra (#778)
  • 482bb80 Update the documentation to reflect the 3.0 changes (#777)
  • 78fdc33 Fix errors where hours and days were not handled correctly when adding durati...
  • 0a884dd Fix handling of the fold attribute when deep copying DateTime objects (#776)
  • c811ecd Fix behavior of the week_of_month property (#774)
  • 1ff9a1c Update introduction.md (#773)
  • daa2808 Remove upper bounds dependency constraints (#760)
  • 75a87a4 Update README.rst fix small typo. (#748)
  • Additional commits viewable in compare view

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 Dependency updates label Jan 14, 2024
@dependabot dependabot bot requested a review from bow January 14, 2024 00:32
Bumps [pendulum](https://github.com/sdispater/pendulum) from 3.0.0b1 to 3.0.0.
- [Release notes](https://github.com/sdispater/pendulum/releases)
- [Changelog](https://github.com/sdispater/pendulum/blob/master/CHANGELOG.md)
- [Commits](sdispater/pendulum@3.0.0b1...3.0.0)

---
updated-dependencies:
- dependency-name: pendulum
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/pip/pendulum-3.0.0 branch from bb3c9d5 to 2b86759 Compare January 14, 2024 03:44
@bow bow merged commit 32624da into master Jan 14, 2024
7 of 8 checks passed
@bow bow deleted the dependabot/pip/pendulum-3.0.0 branch January 14, 2024 03:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Dependency updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant