emmett-framework / emmett

The web framework for inventors
BSD 3-Clause "New" or "Revised" License
1.06k stars 71 forks source link

Python Pendulum was updated to 2.0, "import weppy" fails #223

Closed advh67 closed 6 years ago

advh67 commented 6 years ago

https://pendulum.eustace.io/history/

2.0.0 - 2018-05-08 Added

Added years and months support to durations.
Added the test_local_timezone() and set_local_timezone() helpers to ease testing.
Added support of ISO 8601 duration parsing.
Added support of ISO 8601 interval parsing.
Added a local() helper.
Added a naive() helper and a naive() method.
Added support for POSIX specification to extend timezones DST transitions.

Changed

Pendulum class has been renamed to DateTime.
Interval class has been renamed to Duration.
Changed and improved the timezone system.
Removed the create() helper.
Removed the utcnow() helper.
strict keyword argument for parse has been renamed to exact.
at() now supports setting partial time.
local, utc and is_dst are now methods rather than properties (is_local(), is_utc(), is_dst()).
Changed the repr of most common objects.
Made the strict keyword argument for parse false by default, which means it will not fallback on the dateutil parser.
Improved performances of the precise_diff() helper.
The alternative formatter is now the default one.
set_to_string_format()/reset_to_string_format() methods have been removed.
from_format() now uses the alternative formatter tokens.
Removed xrange() method of the Period class and made range() a generator.
New locale system which uses CLDR data for most of the translations.
diff_for_humans() now returns a few seconds where appropriate.
Removed Period.intersect().
gi0baro commented 6 years ago

@advh67 thanks for reporting this. Will push a fixed 1.2 later in this week.

gi0baro commented 6 years ago

@advh67 this is fixed in 1.2.11