Overview

Request 787803 accepted

- version update to 2.1.0
Added
Added better typing and PEP-561 compliance (#320).
Added the is_anniversary() method as an alias of is_birthday() (#298).
Changed
Dropped support for Python 3.4.
is_utc() will now return True for any datetime with an offset of 0, similar to the behavior in the 1.* versions (#295)
Duration.in_words() will now return 0 milliseconds for empty durations.
Fixed
Fixed various issues with timezone transitions for some edge cases (#321, (#350)).
Fixed out of bound detection for nth_of("month") (#357).
Fixed an error where extra text was accepted in from_format() (#372).
Fixed a recursion error when adding time to a DateTime with a fixed timezone (#431).
Fixed errors where Period instances were not properly compared to other classes, especially timedelta instances (#427).
Fixed deprecation warnings due to internal regexps (#427).
Fixed an error where the test() helper would not unset the test instance when an exception was raised (#445).
Fixed an error where the week_of_month attribute was not returning the correct value (#446).
Fixed an error in the way the Z ISO-8601 UTC designator was not parsed as UTC (#448).


Axel Braun's avatar

Hi Petr,, thanks for the submit! I see you added python-dephell, which is only python3 - currently pendulum is py2 and 3. Why do we need it suddenly? https://github.com/sdispater/pendulum/issues/453 is not a valid source. can you pls remove it? Thanks!


Petr Gajdos's avatar
author source maintainer

We need dephell only temporarily until https://github.com/sdispater/pendulum/issues/453 is resolved. github tarball does not contain setup.py, it has to be generated from pyproject.toml by %{dephell_gensetup}. It is called only once in %prep, no matter whether for what favor of python.


Axel Braun's avatar

As python-dephell is not in Leap, packages fail to build (see: https://build.opensuse.org/project/show/Application:ERP:GNUHealth:Factory )

Request History
Petr Gajdos's avatar

pgajdos created request

- version update to 2.1.0
Added
Added better typing and PEP-561 compliance (#320).
Added the is_anniversary() method as an alias of is_birthday() (#298).
Changed
Dropped support for Python 3.4.
is_utc() will now return True for any datetime with an offset of 0, similar to the behavior in the 1.* versions (#295)
Duration.in_words() will now return 0 milliseconds for empty durations.
Fixed
Fixed various issues with timezone transitions for some edge cases (#321, (#350)).
Fixed out of bound detection for nth_of("month") (#357).
Fixed an error where extra text was accepted in from_format() (#372).
Fixed a recursion error when adding time to a DateTime with a fixed timezone (#431).
Fixed errors where Period instances were not properly compared to other classes, especially timedelta instances (#427).
Fixed deprecation warnings due to internal regexps (#427).
Fixed an error where the test() helper would not unset the test instance when an exception was raised (#445).
Fixed an error where the week_of_month attribute was not returning the correct value (#446).
Fixed an error in the way the Z ISO-8601 UTC designator was not parsed as UTC (#448).


Tomáš Chvátal's avatar

scarabeus_iv accepted request

As petr explains the python3 dep is used just in %prep to generate, rest of the submit looks ok, the comment above URL reflect the reason for switch to github tag from the pypi url.

openSUSE Build Service is sponsored by