-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
changelog.yml
183 lines (183 loc) · 9.48 KB
/
changelog.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
changelog:
- version: 0.2.1
release-date: 10 January 2021
changes:
- add: Create ``python-weather``.
- version: 0.2.3
release-date: 11 January 2021
changes:
- fix: Fix an :py:class:`IndexError` while initiating ``Weather``.
- rem: Remove ``__getattribute__`` from ``Weather``.
- version: 0.3.0
release-date: 24 May 2021
changes:
- fix: Use properties instead of directly storing attributes.
- add: Add built-in caching capabilities.
- rem: Rename ``Weather.forecast`` to ``Weather.forecasts``.
- add: Add an exception class ``HTTPException``.
- add: Add ``__slots__`` to class definitions.
- add: Add ``example.py`` in the project root directory.
- fix: Use python's walrus operator to clean up repetitive code.
- fix: Implement Python's inheritance rather than keeping everything in one class.
- fix: Separate :class:`.Client` from ``HTTPClient``.
- fix: Improve the example in README.
- version: 0.3.3
release-date: 18 June 2021
changes:
- add: Add a bundled-in CLI.
- add: Add ``Weather.format`` property.
- add: Add ``Weather.locale`` property.
- fix: Improve the project's typings.
- add: Add ``.gitignore`` in the project's root to remove ``__pycache__`` from appearing.
- fix: Tweaks to the project's documentation.
- version: 0.3.4
release-date: 27 June 2021
changes:
- fix: Fix backwards-compatibility for Python 3.7 users by removing all walrus operators.
- version: 0.3.5
release-date: 29 June 2021
changes:
- fix: Fix typo that causes a :py:class:`NameError`.
- version: 0.3.6
release-date: 26 July 2021
changes:
- fix: Fix bug that causes ``IMPERIAL`` to have no effect.
- version: 0.3.7
release-date: 5 November 2021
changes:
- fix: Fix bug that raises an exception when calling ``HTTPException.__repr__``.
- fix: '``HTTPException`` now derives from the :py:class:`Exception` class.'
- add: Add ``__slots__`` to the class definition for ``HTTPException``.
- version: 0.3.8
release-date: 28 June 2022
changes:
- rem: Remove the bundled-in CLI.
- fix: Fix potential :py:class:`NameError` bug.
- rem: Remove all built-in caching capabilities.
- fix: Update the example with a fix for all Windows systems.
- add: Add GitHub workflows for testing.
- version: 0.4.0
release-date: 6 August 2022
changes:
- fix: Migrate from using Microsoft's MSN API to ``wttr.in``.
- fix: Fix dependabot alerts.
- add: Add ``async with`` support for the client instance.
- add: Add additional installation instructions for debian users.
- version: 0.4.1
release-date: 8 August 2022
changes:
- fix: Fix bug when retrieving ``CurrentForecast.local_time``.
- version: 0.4.2
release-date: 9 September 2022
changes:
- rem: Rename ``DailyForecast.average_temperature`` to :attr:`.DailyForecast.temperature`.
- fix: Printing the forecast result should no longer raise an :py:class:`AttributeError`.
- fix: '``Weather.location`` should not return :py:obj:`None` now, and should return floats insead of ints. (making it consistent to the type-hint)'
- add: Add ``Mist`` property to the ``WeatherType`` enum.
- add: Add an additional :class:`~aiohttp.TCPConnector` argument to the default :class:`~aiohttp.ClientSession`.
- rem: Remove unused ``__slots__`` tuple member in the ``BaseForecast`` abstract class.
- version: 0.4.3
release-date: 23 October 2022
changes:
- fix: The :attr:`.HourlyForecast.time` property should return a :py:class:`datetime.time` object instead of a raw API :py:class:`int`.
- version: 1.0.0
release-date: 28 April 2023
changes:
- add: Add custom locale support.
- add: Add lots of new classes and enums, and improve inheritance use.
- add: Add code testing workflow on every commit.
- add: Add code formatting workflow with ``yapf``.
- add: Add dependabot to automatically bump dependencies weekly.
- version: 1.0.1
release-date: 29 April 2023
changes:
- fix: Fix backwards-compatibility for Python 3.7 users by removing the ``Self`` typing.
- version: 1.0.2
release-date: 18 May 2023
changes:
- fix: Fix ``tempC`` and ``tempF`` :py:class:`KeyError`.
- fix: Fix :class:`.UltraViolet` enum returning incorrect values.
- version: 1.0.3
release-date: 20 June 2023
changes:
- add: Add missing ``index`` property in the :class:`.UltraViolet` enum.
- add: Add more helper methods.
- fix: Improve docstrings of several properties.
- version: 1.1.0
release-date: 23 November 2023
changes:
- add: Add support for Python 3.12 by upgrading the ``aiohttp`` dependency to ``3.9.0``.
- rem: The library no longer supports Python 3.7, which was discontinued in June 2023.
- fix: Removed several instances of copy-pasted code.
- version: 1.1.1
release-date: 20 February 2024
changes:
- rem: Rename ``chances_of_remdry`` to :attr:`~.HourlyForecast.chances_of_remaining_dry` in order to reduce confusion.
- fix: Bump ``aiohttp`` dependency to ``3.9.3``.
- version: 1.1.2
release-date: 25 February 2024
changes:
- add: Add official project documentation in https://python-weather.readthedocs.io/en/latest/.
- version: 2.0.0
release-date: 18 March 2024
changes:
- rem: Rename the main forecast's class name from ``Weather`` to :class:`.Forecast`.
- rem: Merge ``CurrentForecast`` class' properties with :class:`.Forecast`'s. Therefore the ``current`` property is removed.
- rem: Merge ``Area`` class' properties with :class:`.Forecast`.
- rem: Rename ``Weather.forecasts`` to :attr:`.Forecast.daily_forecasts`.
- rem: Rename ``Weather.location`` to :attr:`.Forecast.coordinates`. The former now returns the forecast location's name and the latter is no longer an optional type.
- rem: Rename ``CurrentForecast.chances_of_hightemp`` to ``Forecast.chances_of_high_temperature``.
- rem: Rename ``CurrentForecast.chances_of_remdry`` to ``Forecast.chances_of_remaining_dry``.
- rem: Rename ``CurrentForecast.date`` to :attr:`.Forecast.datetime`.
- rem: Rename ``DailyForecast.hourly`` to :attr:`.DailyForecast.hourly_forecasts`.
- rem: Rename ``Ultraviolet`` to :class:`.UltraViolet`.
- add: ':attr:`.HourlyForecast.heat_index` now returns a convenience enum called :class:`.HeatIndex`.'
- rem: Merge ``Astronomy`` class' properties with :class:`.DailyForecast`.
- rem: Rename ``Astronomy.sun_rise`` to :attr:`.DailyForecast.sunrise`.
- rem: Rename ``Astronomy.sun_set`` to :attr:`.DailyForecast.sunset`.
- rem: Rename ``Astronomy.moon_rise`` to :attr:`.DailyForecast.moonrise`.
- rem: Rename ``Astronomy.moon_set`` to :attr:`.DailyForecast.moonset`.
- version: 2.0.1
release-date: 25 March 2024
changes:
- fix: Migrate from ``yapf`` to ``ruff``.
- fix: Fix potential :py:class:`NameError` while modifying forecast unit or locale.
- fix: Remove several unused imports.
- fix: Fix potential :py:class:`NameError` on some typings.
- version: 2.0.2
release-date: 25 April 2024
changes:
- add: Add a donation link over at https://ko-fi.com/null8626.
- fix: As of 19 April 2024, all GitHub commits sent to the repository (both manual and automated) will be GPG-signed.
- version: 2.0.3
release-date: 5 May 2024
changes:
- fix: Fix potential :py:class:`NameError` while accessing the :attr:`.Phase.emoji` property.
- fix: Refactors on the request delay calculation.
- fix: Fix broken donations redirect in the documentation page.
- version: 2.0.4
release-date: 2 October 2024
changes:
- fix: The :meth:`.Client.close` method now no longer closes the :class:`~aiohttp.ClientSession` if an existing :class:`~aiohttp.ClientSession` was provided in the constructor.
- add: HTTP exceptions are now wrapped under :class:`.RequestError`.
- add: Add ``__iter__`` and ``__list__`` helper implementations for the forecast classes.
- fix: Bump the ``aiohttp`` dependency to be at least version ``3.10.8``.
- add: Add an additional ``raise_for_status`` argument to the default :class:`~aiohttp.ClientSession`.
- fix: Refactor the regex retrieval for the :attr:`.Forecast.local_population` property.
- version: 2.0.5
release-date: 13 October 2024
changes:
- fix: Migrate from using Python properties to raw Python attributes, this should save 50 KB in the size of the :class:`.Forecast` object.
- fix: Fix infinite loop while calling the ``__iter__`` or ``__list__`` helper implementations of the forecast objects.
- fix: Fix no status code error checking on clients using pre-existing :class:`~aiohttp.ClientSession` objects.
- fix: The test workflow now also tests the example code in the README.
- add: Add ``__len__`` helper implementations for the forecast classes.
- fix: Bump the ``aiohttp`` dependency to be at least version ``3.10.10``.
- version: 2.0.7
release-date: 14 October 2024
changes:
- fix: Fix :py:class:`AttributeError` upon calling :class:`.WindDirection` helper functions.
- add: Add ``__int__`` helper implementation for the :class:`.WindDirection` enum.
- add: Add optional ``max_retries`` keyword argument to the :class:`.Client` constructor.
- fix: Refactor the :class:`.Kind` enum to make its code more readable.
- fix: Documentation fixes.