Skip to content

Commit 1c13dce

Browse files
committed
Merge branch 'develop'
2 parents 4213d76 + 9c59d60 commit 1c13dce

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+2662
-4814
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ language: python
22

33
python:
44
- "2.7"
5+
- "3.2"
6+
- "3.3"
7+
- "3.4"
58
- "3.5"
69

710
env:

CHANGELOG.md

Lines changed: 116 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,133 @@
1-
### 0.5.5
1+
# Change Log
22

3-
(September 1st, 2016)
3+
## [Unreleased]
44

5-
- [Fix] Fixes local timezone loading for unix systems.
6-
- [Fix] Fixes potential `AttributeError` in `between` method. (Thanks to [iv597](https://github.com/iv597))
5+
### Added
76

8-
### 0.5.4
7+
- Adds an option to control transition normalization behavior.
8+
- Adds a separator keyword argument to `Interval.in_words()` method.
9+
- Adds an alternative formatter.
10+
- Adds support for pretty much any `tzinfo` instance in the `instance()` method.
11+
- Adds an `intersect()` method to the `Period` class.
912

10-
(August 30th, 2016)
13+
### Changed
1114

12-
- [Fix] Fixes broken previous release.
15+
- Improves meridians formatting by supporting minutes.
16+
- Changes behavior of `create*()` methods (time now defaults to `00:00:00`)
1317

14-
(August 29th, 2016)
18+
### Fixed
1519

16-
- [Fix] Fixes setters and modifiers (start_of/end_of) to properly apply DST transitions.
17-
- [Fix] Fixes timezone file loading on some installs (See [#34](https://github.com/sdispater/pendulum/issues/34))
20+
- Fixes setters and modifiers (start_of/end_of) to properly apply transitions.
21+
- Fixes issue when compiling on 32 bit systems. (Thanks to [guyzmo](https://github.com/guyzmo))
22+
- Fixes NameError Exception on Python 3.2. (Thanks to [guyzmo](https://github.com/guyzmo))
23+
- Fixes absolute intervals.
24+
25+
26+
## [0.5.5] - 2016-09-01
27+
28+
### Fixed
29+
30+
- Fixes local timezone loading for unix systems.
31+
- Fixes potential `AttributeError` in `between` method. (Thanks to [iv597](https://github.com/iv597))
32+
33+
34+
## [0.5.4] - 2016-08-30
35+
36+
### Fixed
37+
38+
- Fixes broken previous release.
39+
40+
41+
## [0.5.3] - 2016-08-29
42+
43+
### Fixed
44+
45+
- Fixes setters and modifiers (start_of/end_of) to properly apply DST transitions.
46+
- Fixes timezone file loading on some installs (See [#34](https://github.com/sdispater/pendulum/issues/34))
1847
(Thanks to [mayfield](https://github.com/mayfield))
1948

20-
### 0.5.2
2149

22-
(August 22nd, 2016)
50+
## [0.5.2] - 2016-08-22
51+
52+
### Added
53+
54+
- Adds a small speedup when changing timezones.
55+
56+
### Changed
2357

24-
- [Fix] Fixes `TimezoneInfo.utcoffset()` method.
25-
- [Fix] Fixes arithmetic operations on intervals not returning intervals.
26-
- [Fix] Allows Pendulum instances comparison to None . (Thanks to [jkeyes](https://github.com/jkeyes))
27-
- [Feature] Adds a small speedup when changing timezones.
28-
- [Feature] Makes .offset_hours return a float.
58+
- Makes `.offset_hours` return a float.
2959

60+
### Fixed
3061

31-
### 0.5.1
62+
- Fixes `TimezoneInfo.utcoffset()` method.
63+
- Fixes arithmetic operations on intervals not returning intervals.
64+
- Allows Pendulum instances comparison to None . (Thanks to [jkeyes](https://github.com/jkeyes))
3265

33-
(August 18th, 2016)
3466

35-
- [Fix] Fixes `now()` not behaving properly when given a timezone.
36-
- [Fix] Fixes double file opening when getting local timezone. (Thanks to [yggdr](https://github.com/yggdr))
37-
- [Fix] Fixes `pt_BR` locale. (Thanks to [YomoFuno](https://github.com/YomoFuno))
38-
- [Fix] Fixes `pl` locale. (Thanks to [MichalTHEDUDE](https://github.com/MichalTHEDUDE))
67+
## [0.5.1] - 2016-08-18
3968

69+
### Fixed
4070

41-
### 0.5
71+
- Fixes `now()` not behaving properly when given a timezone.
72+
- Fixes double file opening when getting local timezone. (Thanks to [yggdr](https://github.com/yggdr))
73+
- Fixes `pt_BR` locale. (Thanks to [YomoFuno](https://github.com/YomoFuno))
74+
- Fixes `pl` locale. (Thanks to [MichalTHEDUDE](https://github.com/MichalTHEDUDE))
4275

43-
(August 15th, 2016)
76+
77+
## [0.5] - 2016-08-15
4478

4579
This version introduces a new timezone library which improves
4680
timezone switching and behavior around DST transition times.
4781

82+
### Added
83+
4884
- Adds a new timezone library to properly normalize and localize datetimes.
4985
``Pendulum`` no longer relies on ``pytz``.
50-
Check the [Documentation](/docs/#timezone) to see what has changed exactly.
86+
Check the [Documentation](https://pendulum.eustace.io/docs/#timezones) to see what has changed exactly.
5187

5288

53-
### 0.4
54-
55-
(July 26th, 2016)
89+
## [0.4] - 2016-07-26
5690

5791
This version mostly brings the new ``Period`` class and improves performances overall.
5892

93+
### Added
94+
5995
- Adds the `Period` class, which basically is a datetime-aware interval.
96+
97+
### Changed
98+
6099
- Makes the `format()` method support a `locale` keyword argument.
61100
- Changes custom directives. `%P` becomes `%_z` and `%t` becomes `%_t`.
62-
Basically, all new custom directives will be in the form `%_{directive}`
101+
Basically, all new custom directives will be in the form `%_{directive}`.
102+
103+
### Fixed
104+
63105
- Fixes singular for negative values of intervals.
64106

65-
### 0.3.1
66107

67-
(July 13th, 2016)
108+
## [0.3.1] - 2016-07-13
68109

69-
- Fixes parsing of string with partial offset.
110+
### Fixed
70111

112+
- Fixes parsing of string with partial offset.
71113

72-
### 0.3
73114

74-
(July 11th, 2016)
115+
## [0.3] - 2016-07-11
75116

76117
This version causes major breaking API changes to simplify it and making it more intuitive.
77118

119+
### Added
120+
78121
- Improves testing by providing a `test()` contextmanager.
122+
123+
124+
### Changed
125+
79126
- Makes passing a naive `datetime` to `instance()` default to `UTC`.
80127
- Reduces `add_xxx()`/`sub_xxx()` methods to `add(**kwargs)`/`subtract(**kwargs)`.
81128
- Changes the `for_humans()` method of the `Interval` class to `in_words()` to avoid confusion with the `diff_for_humans()` method.
82129
- Makes more constants and methods available at module level.
83130
- Makes the constructor behave like the standard one. No more `Pendulum()`.
84-
- Fixes "sl" locale.
85131
- Renames the `to()` method to `in_timezone()`.
86132
- Removes the comparison methods to just stick with the basic operators.
87133
- Reduces `first_of_xxx()`/`last_of_xxx()`/`nth_of_xxx()` methods to `first_of(unit)`/`last_of(unit)`/`nth_of(unit, nth)`.
@@ -90,27 +136,50 @@ This version causes major breaking API changes to simplify it and making it more
90136
- Renames the `PendulumInterval` class to simply `Interval`.
91137
- Makes the `Pendulum` class immutable.
92138

139+
### Fixed
140+
141+
- Fixes "sl" locale.
93142

94-
### 0.2
95143

96-
(July 4th, 2016)
144+
## [0.2] - 2016-07-04
97145

98-
- Makes the `Pendulum` class truly inherits from `datetime`
146+
### Changed
99147

148+
- Makes the `Pendulum` class truly inherits from `datetime`.
100149

101-
### 0.1.1
102150

103-
(July 4th, 2016)
151+
## [0.1.1] - 2016-07-04
104152

105-
- Adds support for the `TZ` environment variable
106-
- Adds `closest()`/`farthest()` comparison methods
107-
- Makes `set_test_now()` available at module level
153+
### Added
154+
155+
- Adds support for the `TZ` environment variable.
156+
- Adds `closest()`/`farthest()` comparison methods.
108157
- Adds min/max attributes. Renames min/max methods.
158+
159+
### Changed
160+
161+
- Makes `set_test_now()` available at module level.
162+
163+
### Fixed
164+
109165
- Fixes `diff_for_humans()` method when setting locale.
110166

111167

112-
### 0.1
168+
## [0.1] - 2016-07-04
169+
170+
Initial release
113171

114-
(July 4th, 2016)
115172

116-
- Initial release
173+
[Unreleased]: https://github.com/sdispater/pendulum/compare/0.5.5...HEAD
174+
[0.5.5]: https://github.com/sdispater/pendulum/releases/tag/0.5.5
175+
[0.5.4]: https://github.com/sdispater/pendulum/releases/tag/0.5.4
176+
[0.5.3]: https://github.com/sdispater/pendulum/releases/tag/0.5.3
177+
[0.5.2]: https://github.com/sdispater/pendulum/releases/tag/0.5.2
178+
[0.5.1]: https://github.com/sdispater/pendulum/releases/tag/0.5.1
179+
[0.5]: https://github.com/sdispater/pendulum/releases/tag/0.5
180+
[0.4]: https://github.com/sdispater/pendulum/releases/tag/0.4
181+
[0.3.1]: https://github.com/sdispater/pendulum/releases/tag/0.3.1
182+
[0.3]: https://github.com/sdispater/pendulum/releases/tag/0.3
183+
[0.2]: https://github.com/sdispater/pendulum/releases/tag/0.2
184+
[0.1.1]: https://github.com/sdispater/pendulum/releases/tag/0.1.1
185+
[0.1]: https://github.com/sdispater/pendulum/releases/tag/0.1

0 commit comments

Comments
 (0)