Skip to content

Commit 46d3d7d

Browse files
committed
Update docs
Signed-off-by: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
1 parent 57fc7df commit 46d3d7d

File tree

3 files changed

+280
-2
lines changed

3 files changed

+280
-2
lines changed

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Welcome to DateTimeRange's documentation!
1616
pages/introduction/index
1717
pages/examples/index
1818
pages/reference/index
19+
pages/CHANGELOG
1920
pages/links
2021

2122

docs/pages/CHANGELOG.rst

Lines changed: 277 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,277 @@
1+
#
2+
`v2.2.1 <https://github.com/thombashi/DateTimeRange/releases/tag/v2.2.1>`__
3+
- 07 Apr 2024
4+
5+
What’s Changed
6+
==============
7+
8+
- Bump actions/setup-python from 4 to 5 by
9+
[@dependabot](https://github.com/dependabot) in
10+
https://github.com/thombashi/DateTimeRange/pull/47
11+
- Fix an error that ``DateTimeRange.intersection`` method failed when
12+
the ranges are not overlapped and the ``intersection_threshold`` is
13+
not ``None``:
14+
`#48 <https://github.com/thombashi/DateTimeRange/issues/48>`__
15+
(Thanks to [@wernersa](https://github.com/wernersa))
16+
- Keep the timezone when perform ``__iadd__`` or ``__isub__``
17+
operations
18+
- Add a build and publish workflow
19+
- Add Sigstore signatures to release assets
20+
21+
New Contributors
22+
================
23+
24+
- [@dependabot](https://github.com/dependabot) made their first
25+
contribution in https://github.com/thombashi/DateTimeRange/pull/47
26+
27+
**Full Changelog**:
28+
https://github.com/thombashi/DateTimeRange/compare/v2.2.0…v2.2.1
29+
30+
`Changes <https://github.com/thombashi/DateTimeRange/compare/v2.2.0...v2.2.1>`__
31+
32+
#
33+
`v2.2.0 <https://github.com/thombashi/DateTimeRange/releases/tag/v2.2.0>`__
34+
- 03 Oct 2023
35+
36+
- Add ``timezone`` as an optional argument to ``set_time_range``
37+
method, ``from_range_text`` method and the ``DateTimeRange`` class
38+
constructor
39+
- Add ``timezone`` property to ``DateTimeRange`` class
40+
- Add support for Python 3.12
41+
- Change ``start_time_format`` and ``end_time_format`` of the
42+
``DateTimeRange`` class constructor to optional arguments
43+
44+
- Default format value would not be changed
45+
46+
- Fix type annotations of ``set_start_datetime`` and
47+
``set_end_datetime`` methods
48+
- Bump minimum ``typepy`` version to 1.3.2
49+
50+
`Changes <https://github.com/thombashi/DateTimeRange/compare/v2.1.1...v2.2.0>`__
51+
52+
#
53+
`v2.1.1 <https://github.com/thombashi/DateTimeRange/releases/tag/v2.1.1>`__
54+
- 01 Oct 2023
55+
56+
- Add ``__all__`` to ``__init__.py``
57+
- Add ``docs`` extras
58+
- Add ``zip_safe=False``
59+
- Add a classifier
60+
- Update ``[build-system]``
61+
- Modify to use ``pypa/build`` for package build
62+
63+
**Full Changelog**:
64+
https://github.com/thombashi/DateTimeRange/compare/v2.1.0…v2.1.1
65+
66+
`Changes <https://github.com/thombashi/DateTimeRange/compare/v2.1.0...v2.1.1>`__
67+
68+
#
69+
`v2.1.0 <https://github.com/thombashi/DateTimeRange/releases/tag/v2.1.0>`__
70+
- 19 Feb 2023
71+
72+
.. _whats-changed-1:
73+
74+
What’s Changed
75+
==============
76+
77+
- Add type annotations by
78+
[@hauntsaninja](https://github.com/hauntsaninja) in
79+
https://github.com/thombashi/DateTimeRange/pull/45
80+
- Changes to make ``datetime.timedelta`` and
81+
``dateutil.relativedelta.relativedelta`` transparently usable for
82+
arguments.
83+
84+
.. _new-contributors-1:
85+
86+
New Contributors
87+
================
88+
89+
- [@hauntsaninja](https://github.com/hauntsaninja) made their first
90+
contribution in https://github.com/thombashi/DateTimeRange/pull/45
91+
92+
**Full Changelog**:
93+
https://github.com/thombashi/DateTimeRange/compare/v2.0.0…v2.1.0
94+
95+
`Changes <https://github.com/thombashi/DateTimeRange/compare/v2.0.0...v2.1.0>`__
96+
97+
#
98+
`v2.0.0 <https://github.com/thombashi/DateTimeRange/releases/tag/v2.0.0>`__
99+
- 11 Feb 2023
100+
101+
- Add ``intersection_threshold`` argument to
102+
``intersection``/``is_intersection`` methods:
103+
`#43 <https://github.com/thombashi/DateTimeRange/issues/43>`__
104+
(Thanks to [@usman5251](https://github.com/usman5251))
105+
- Modify to accept regular expression for separator argument of
106+
``from_range_text`` method:
107+
`#41 <https://github.com/thombashi/DateTimeRange/issues/41>`__
108+
(Thanks to [@pantierra](https://github.com/pantierra))
109+
- Fix the behavior of range when traversing from end to start:
110+
`#44 <https://github.com/thombashi/DateTimeRange/issues/44>`__
111+
(Thanks to [@4l1fe](https://github.com/4l1fe))
112+
- Drop support for Python 3.6
113+
- Add support for Python 3.11
114+
115+
**Full Changelog**:
116+
https://github.com/thombashi/DateTimeRange/compare/v1.2.0…v2.0.0
117+
118+
`Changes <https://github.com/thombashi/DateTimeRange/compare/v1.2.0...v2.0.0>`__
119+
120+
#
121+
`v1.2.0 <https://github.com/thombashi/DateTimeRange/releases/tag/v1.2.0>`__
122+
- 10 Jul 2021
123+
124+
- Add ``DateTimeRange.from_range_text`` class method:
125+
`#38 <https://github.com/thombashi/DateTimeRange/issues/38>`__
126+
(Thanks to [@noamsgl](https://github.com/noamsgl))
127+
128+
`Changes <https://github.com/thombashi/DateTimeRange/compare/v1.1.0...v1.2.0>`__
129+
130+
#
131+
`v1.1.0 <https://github.com/thombashi/DateTimeRange/releases/tag/v1.1.0>`__
132+
- 09 Jun 2021
133+
134+
- Add ``subtract`` method to ``DateTimeRange`` class:
135+
`#36 <https://github.com/thombashi/DateTimeRange/issues/36>`__
136+
(Thanks to [@bramski](https://github.com/bramski))
137+
- Add ``split`` method to ``DateTimeRange`` class
138+
- Add support for Python 3.10
139+
- Drop support for Python 3.5
140+
141+
`Changes <https://github.com/thombashi/DateTimeRange/compare/v0.5.0...v1.1.0>`__
142+
143+
#
144+
`v0.5.0 <https://github.com/thombashi/DateTimeRange/releases/tag/v0.5.0>`__
145+
- 31 Oct 2018
146+
147+
- Change to return a new instance instead of changing the instance
148+
value itself when using ``intersection``/``encompass`` methods
149+
`#31 <https://github.com/thombashi/DateTimeRange/issues/31>`__
150+
(Thanks to [@camelia-c](https://github.com/camelia-c))
151+
152+
`Changes <https://github.com/thombashi/DateTimeRange/compare/v0.4.0...v0.5.0>`__
153+
154+
#
155+
`v0.4.0 <https://github.com/thombashi/DateTimeRange/releases/tag/v0.4.0>`__
156+
- 30 Oct 2018
157+
158+
- Add support for ``datetime.date`` class
159+
160+
`Changes <https://github.com/thombashi/DateTimeRange/compare/v0.3.6...v0.4.0>`__
161+
162+
#
163+
`v0.3.6 <https://github.com/thombashi/DateTimeRange/releases/tag/v0.3.6>`__
164+
- 15 Sep 2018
165+
166+
- Add support for Python 3.7
167+
- Update the package metadata
168+
169+
`Changes <https://github.com/thombashi/DateTimeRange/compare/v0.2.6...v0.3.6>`__
170+
171+
#
172+
`v0.2.6 <https://github.com/thombashi/DateTimeRange/releases/tag/v0.2.6>`__
173+
- 17 Nov 2016
174+
175+
- Fix to apply dependent package update
176+
177+
`Changes <https://github.com/thombashi/DateTimeRange/compare/v0.2.5...v0.2.6>`__
178+
179+
#
180+
`v0.2.5 <https://github.com/thombashi/DateTimeRange/releases/tag/v0.2.5>`__
181+
- 11 Aug 2016
182+
183+
- Refactoring
184+
185+
`Changes <https://github.com/thombashi/DateTimeRange/compare/v0.2.4...v0.2.5>`__
186+
187+
#
188+
`v0.2.4 <https://github.com/thombashi/DateTimeRange/releases/tag/v0.2.4>`__
189+
- 09 Jul 2016
190+
191+
- Drop support for Python 2.6
192+
- Fix datetime detection error with version strings
193+
194+
`Changes <https://github.com/thombashi/DateTimeRange/compare/v0.2.3...v0.2.4>`__
195+
196+
#
197+
`v0.2.3 <https://github.com/thombashi/DateTimeRange/releases/tag/v0.2.3>`__
198+
- 03 Jul 2016
199+
200+
`Changes <https://github.com/thombashi/DateTimeRange/compare/v0.2.2...v0.2.3>`__
201+
202+
#
203+
`v0.2.2 <https://github.com/thombashi/DateTimeRange/releases/tag/v0.2.2>`__
204+
- 19 Jun 2016
205+
206+
- Make pytest-runner a conditional requirement
207+
- Drop support for Python 2.5
208+
209+
`Changes <https://github.com/thombashi/DateTimeRange/compare/v0.2.1...v0.2.2>`__
210+
211+
#
212+
`v0.2.1 <https://github.com/thombashi/DateTimeRange/releases/tag/v0.2.1>`__
213+
- 15 Mar 2016
214+
215+
Enhancement
216+
===========
217+
218+
`#12 <https://github.com/thombashi/DateTimeRange/issues/12>`__: Added
219+
support for datetimerange inclusion. Thanks to
220+
[@guyzmo](https://github.com/guyzmo)
221+
222+
`Changes <https://github.com/thombashi/DateTimeRange/compare/v0.2.0...v0.2.1>`__
223+
224+
#
225+
`v0.2.0 <https://github.com/thombashi/DateTimeRange/releases/tag/v0.2.0>`__
226+
- 10 Mar 2016
227+
228+
.. _enhancement-1:
229+
230+
Enhancement
231+
===========
232+
233+
- Add range method to support iterator.
234+
235+
`Changes <https://github.com/thombashi/DateTimeRange/compare/v0.1.3...v0.2.0>`__
236+
237+
#
238+
`v0.1.3 <https://github.com/thombashi/DateTimeRange/releases/tag/v0.1.3>`__
239+
- 04 Mar 2016
240+
241+
Fix
242+
===
243+
244+
- Fix `#8 <https://github.com/thombashi/DateTimeRange/issues/8>`__:
245+
correct daylight savings time processing. Thanks to
246+
[@tweyter](https://github.com/tweyter)
247+
248+
`Changes <https://github.com/thombashi/DateTimeRange/compare/v0.1.2...v0.1.3>`__
249+
250+
#
251+
`v0.1.2 <https://github.com/thombashi/DateTimeRange/releases/tag/v0.1.2>`__
252+
- 25 Feb 2016
253+
254+
.. _enhancement-2:
255+
256+
Enhancement
257+
-----------
258+
259+
- add operator support: ``!=``, ``+``, ``+=``, ``-``, ``-=``
260+
261+
`Changes <https://github.com/thombashi/DateTimeRange/compare/v0.1.1...v0.1.2>`__
262+
263+
#
264+
`v0.1.1 <https://github.com/thombashi/DateTimeRange/releases/tag/v0.1.1>`__
265+
- 20 Feb 2016
266+
267+
`Changes <https://github.com/thombashi/DateTimeRange/compare/v0.1.0...v0.1.1>`__
268+
269+
#
270+
`v0.1.0 <https://github.com/thombashi/DateTimeRange/releases/tag/v0.1.0>`__
271+
- 19 Feb 2016
272+
273+
`Changes <https://github.com/thombashi/DateTimeRange/tree/v0.1.0>`__
274+
275+
.. raw:: html
276+
277+
<!-- Generated by https://github.com/rhysd/changelog-from-release v3.7.2 -->

docs/pages/introduction/badges.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
|PyPI pkg ver| |conda pkg ver| |Supported Python versions| |CI status| |Test coverage| |CodeQL|
1+
|PyPI pkg ver| |conda pkg ver| |Supported Python ver| |CI status| |Test coverage| |CodeQL|
22

33
.. |PyPI pkg ver| image:: https://badge.fury.io/py/DateTimeRange.svg
44
:target: https://badge.fury.io/py/DateTimeRange
@@ -8,7 +8,7 @@
88
:target: https://anaconda.org/conda-forge/datetimerange
99
:alt: conda-forge package version
1010

11-
.. |Supported Python versions| image:: https://img.shields.io/pypi/pyversions/DateTimeRange.svg
11+
.. |Supported Python ver| image:: https://img.shields.io/pypi/pyversions/DateTimeRange.svg
1212
:target: https://pypi.org/project/DateTimeRange
1313
:alt: Supported Python versions
1414

0 commit comments

Comments
 (0)