Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Bump pendulum from 2.1.2 to 3.0.0 #193

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

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 20, 2024

Bumps pendulum from 2.1.2 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

[3.0.0b1] - 2023-10-01

Added

  • Made instance() support all native types (date, time, datetime). #732

Changed

  • Dropped support for Python 3.7. #734
  • Rewrote extensions in Rust. #721
  • Made day of week convention more consistent across the codebase. #731

Fixed

  • Fixed datetime string representation to match the native library. #733
  • Fixed issues on some system when retrieving the local timezone. #733
  • Fixed DST handling in start_of()/end_of() methods. #713

[3.0.0a1] - 2022-11-23

Added

  • Added new testing helpers to time travel. #626

Changed

  • Dropped support for Python 2.7, 3.5 and 3.6. #569
  • The Timezone class now relies on the native zoneinfo.ZoneInfo class. #569
  • Renamed the Period class to Interval. #676
  • Renamed the period helper to interval. #676
  • Removed existing testing helpers: test() and set_test_now(). #626

Locales

... (truncated)

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)

Bumps [pendulum](https://github.com/sdispater/pendulum) from 2.1.2 to 3.0.0.
- [Release notes](https://github.com/sdispater/pendulum/releases)
- [Changelog](https://github.com/sdispater/pendulum/blob/master/CHANGELOG.md)
- [Commits](python-pendulum/pendulum@2.1.2...3.0.0)

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

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot requested a review from a team as a code owner September 20, 2024 00:39
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Sep 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants