Skip to content

Commit 48ff9cb

Browse files
authored
Merge pull request #234 from MetRonnie/truncated-timepoint-bug
Fix truncated timepoint addition bug
2 parents 37401de + dfe5495 commit 48ff9cb

File tree

5 files changed

+778
-293
lines changed

5 files changed

+778
-293
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
coverage: false
4141
name: ${{ matrix.os }} py-${{ matrix.python-version }} ${{ matrix.tz }} ${{ matrix.coverage && '(coverage)' || '' }}
4242
env:
43-
PYTEST_ADDOPTS: -n 5 -m 'slow or not slow'
43+
PYTEST_ADDOPTS: -n 5 -m 'slow or not slow' --color=yes
4444
steps:
4545
- name: Checkout repo
4646
uses: actions/checkout@v4

CHANGES.md

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,19 @@ creating a new release entry be sure to copy & paste the span tag with the
88
`actions:bind` attribute, which is used by a regex to find the text to be
99
updated. Only the first match gets replaced, so it's fine to leave the old
1010
ones in. -->
11-
--------------------------------------------------------------------------------
11+
## isodatetime 3.2.0 (<span actions:bind='release-date'>Upcoming</span>)
12+
13+
### Breaking changes
14+
15+
[#234](https://github.com/metomi/isodatetime/pull/234):
16+
- Removed public `TimePoint.add_truncated()` method.
17+
- `TimePoint.seconds_since_unix_epoch` is now an `int` instead of `str`.
18+
19+
### Fixes
20+
21+
[#234](https://github.com/metomi/isodatetime/pull/234):
22+
Fixed behaviour of adding a truncated TimePoint to a normal TimePoint.
23+
1224

1325
## isodatetime 3.1.0 (<span actions:bind='release-date'>Released 2023-10-05</span>)
1426

@@ -19,7 +31,6 @@ Requires Python 3.7+
1931
[#231](https://github.com/metomi/isodatetime/pull/231):
2032
Fixed mistakes in the CLI help text.
2133

22-
--------------------------------------------------------------------------------
2334

2435
## isodatetime 3.0.0 (<span actions:bind='release-date'>Released 2022-03-31</span>)
2536

@@ -44,7 +55,6 @@ TimePoints.
4455
Fixed a bug where the `timezone` functions would return incorrect results
4556
for certain non-standard/unusual system time zones.
4657

47-
--------------------------------------------------------------------------------
4858

4959
## isodatetime 2.0.2 (Released 2020-07-01)
5060

@@ -62,7 +72,6 @@ CLI can now read in from piped stdin.
6272
TimePoints can no longer be created with out-of-bounds values, e.g.
6373
`2020-00-00`, `2020-13-32T25:60`, `--02-30` are not valid.
6474

65-
--------------------------------------------------------------------------------
6675

6776
## isodatetime 2.0.1 (Released 2019-07-23)
6877

@@ -86,7 +95,6 @@ Support the CF compatible calendar mode strings `360_day`, `365_day` & `366_day`
8695
[#132](https://github.com/metomi/isodatetime/pull/132):
8796
Change namespace of `isodatetime` to `metomi.isodatetime`
8897

89-
--------------------------------------------------------------------------------
9098

9199
## isodatetime 2.0.0 (Released 2019-01-22)
92100

@@ -119,7 +127,6 @@ Fixed time point dumper time zone inconsistency.
119127
[#118](https://github.com/metomi/isodatetime/pull/118):
120128
Fixed time point dumper date type inconsistency.
121129

122-
--------------------------------------------------------------------------------
123130

124131
## isodatetime 2018.11.0 (Released 2018-11-05)
125132

@@ -143,7 +150,6 @@ Fix for timezone offsets where minutes are not 0.
143150
[#87](https://github.com/metomi/isodatetime/pull/87):
144151
Add `setup.py`.
145152

146-
--------------------------------------------------------------------------------
147153

148154
## isodatetime 2018.09.0 (Released 2018-09-11)
149155

@@ -155,7 +161,6 @@ This is the 10th release of isodatetime.
155161
New TimePoint method to find the next smallest property that is missing from a
156162
truncated representation.
157163

158-
--------------------------------------------------------------------------------
159164

160165
## isodatetime 2018.02.0 (Released 2018-02-06)
161166

@@ -166,7 +171,6 @@ This is the 9th release of isodatetime.
166171
[#82](https://github.com/metomi/isodatetime/pull/82):
167172
Fix subtracting a later timepoint from an earlier one.
168173

169-
--------------------------------------------------------------------------------
170174

171175
## isodatetime 2017.08.0 (Released 2017-08-09)
172176

@@ -180,13 +184,11 @@ Fix error string for bad conversion for strftime/strptime.
180184
[#74](https://github.com/metomi/isodatetime/pull/74):
181185
Slotted the data classes to improve memory footprint.
182186

183-
--------------------------------------------------------------------------------
184187

185188
## isodatetime 2017.02.1 (Released 2017-02-21)
186189

187190
This is the 7th release of isodatetime. Admin only release.
188191

189-
--------------------------------------------------------------------------------
190192

191193
## isodatetime 2017.02.0 (Released 2017-02-20)
192194

@@ -197,7 +199,6 @@ This is the 6th release of isodatetime.
197199
[#73](https://github.com/metomi/isodatetime/pull/73):
198200
Fix adding duration not in weeks and duration in weeks.
199201

200-
--------------------------------------------------------------------------------
201202

202203
## isodatetime 2014.10.0 (Released 2014-10-01)
203204

@@ -216,7 +217,6 @@ Fix `date1 - date2` where `date2` is greater than `date1` and `date1` and
216217
[#60](https://github.com/metomi/isodatetime/pull/60):
217218
Stricter dumper year bounds checking.
218219

219-
--------------------------------------------------------------------------------
220220

221221
## isodatetime 2014.08.0 (Released 2014-08-11)
222222

@@ -235,7 +235,6 @@ digits.
235235
Speeds up calculations involving counting the days over a number of consecutive
236236
years.
237237

238-
--------------------------------------------------------------------------------
239238

240239
## isodatetime 2014.07.0 (Released 2014-07-29)
241240

@@ -253,7 +252,6 @@ More flexible API for calendar mode.
253252
[#48](https://github.com/metomi/isodatetime/pull/48):
254253
`TimeInterval` class: add `get_seconds` method and input prettifying.
255254

256-
--------------------------------------------------------------------------------
257255

258256
## isodatetime 2014.06.0 (Released 2014-06-19)
259257

@@ -279,7 +277,6 @@ Implement subset of strftime/strptime POSIX standard.
279277
[#28](https://github.com/metomi/isodatetime/pull/28):
280278
Fix get next point for single-repetition recurrences.
281279

282-
--------------------------------------------------------------------------------
283280

284281
## isodatetime 2014-03 (Released 2014-03-13)
285282

0 commit comments

Comments
 (0)