forked from celery/vine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Changelog
211 lines (139 loc) · 4.45 KB
/
Changelog
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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
Changes
=======
.. _version-5.1.0:
5.1.0
=====
:release-date: 2023-11-05 2:45 P.M UTC+6:00
:release-by: ASIF SAIF UDDIN
- Dropped Python 3.6 support.
- Added new Python versions support.
- Dropped old dependencies.
- Added new GHA based CI.
- Added slots support and impproved dynamic assignment.
Contributed by **Asif Saif Uddin**
.. _version-5.0.0:
5.0.0
=====
:release-date: 2020-09-06 6:10 P.M UTC+3:00
:release-by: Omer Katz
- Dropped Python 3.5 support.
Contributed by **Omer Katz**
.. _version-5.0.0a1:
5.0.0a1
=======
:release-date: 2019-04-01 4:30 P.M UTC+3:00
:release-by: Omer Katz
- Dropped Python 2.x support.
Contributed by **Omer Katz**
- Dropped Python 3.4 support.
Contributed by **Omer Katz**
- Removed the :mod:`vine.five` module.
Contributed by **Omer Katz**
- Removed the :mod:`vine.backports.weakref_backports` module.
Contributed by **Omer Katz**
.. _version-1.3.0:
1.3.0
=====
:release-date: 2019-03-19 11:00 A.M UTC+2
:release-by: Omer Katz
- Added the option to ignore the result of a function and simply
call the callback without arguments.
Contributed by **Omer Katz**
.. _version-1.2.0:
1.2.0
=====
:release-date: 2018-01-06 4:30 P.M UTC+2
:release-by: Omer Katz
- Added Python 3.7 support.
Contributed by **Jon Dufresne** & **:github_user:`dequis`**
- Handle bound methods in weak reference promise instances.
Contributed by **George Psarakis**
Documentation fixes, CI adjustments and cleanups by:
- **Omer Katz**
- **Jon Dufresne**
- **Edward Betts**
- **Jacopo Notarstefano**
- **Christopher Hoskin**
- **Fahad Siddiqui**
.. _version-1.1.4:
1.1.4
=====
:release-date: 2017-07-16 10:30 P.M UTC+2
:release-by: Ask Solem
- Added official support for Python 3.5 & 3.6.
- Improve Python 2/3 compatibility.
- Don't set mutable default values to keyword arguments.
.. _version-1.1.3:
1.1.3
=====
:release-date: 2016-10-13 06:02 P.M PDT
:release-by: Ask Solem
- New ``promise(fun, weak=True)`` argument, creates weakref to callback.
.. _version-1.1.2:
1.1.2
=====
:release-date: 2016-09-07 04:18 P.M PDT
:release-by: Ask Solem
- barrier: now handles the case where len(promises) returns NotImplemented.
.. _version-1.1.1:
1.1.1
=====
:release-date: 2016-06-30 12:05 P.M PDT
:release-by: Ask Solem
- Requirements: Tests now depends on :pypi:`case` 1.2.2
- Five: python_2_unicode_compatible now ensures `__repr__` returns
bytes on Python 2.
.. _version-1.1.0:
1.1.0
=====
:release-date: 2016-04-21 01:30 P.M PDT
:release-by: Ask Solem
- :meth:`promise.throw() <vine.promises.promise.throw>` now passes partial
args/kwargs to the errback:
.. code-block:: pycon
>>> p = promise(args=(self,), on_error=handle_error)
>>> p.throw(exc) # --> handle_error(self, exc)
- New :class:`vine.abstract.ThenableProxy` can be used to add
promise-capabilities to a class by forwarding to a different promise.
.. code-block:: python
from vine import promise
from vine.abstract import ThenableProxy
class P(ThenableProxy):
def __init__(self, on_success=None, on_error=None):
self._set_promise_target(promise(
args=(self,), callback=on_success, on_error=on_error,
))
p = P()
p.then(download_file(url)).then(extract_file)
- :meth:`promise.throw() <vine.promises.promise.throw>` now supports a propagate
argument that can be set to False to never reraise the exception.
- :meth:`promise.throw() <vine.promises.promise.throw>` now also reraises the
current exception from the stack, if the exc argument is passed and that
value is the same as the current exception.
- :meth:`Thenable.register() <vine.abstract.Thenable.register>` can now be
used as a decorator.
- Argument to :meth:`promise.throw1(exc) <vine.promises.promise.throw1>` can now be
:const:`None` to use the current exception.
- ``monotonic()`` now uses ``librt.so.0`` as an alternative if ``librt.so.1``
does not exist.
Contributed by Fahad Siddiqui.
.. _version-1.0.2:
1.0.2
=====
:release-date: 2016-04-11 05:30 P.M PDT
:release-by: Ask Solem
- ``promise.throw()`` now supports second ``traceback`` argument to
throw exception with specific traceback.
Contributed by Ionel Cristian Mărieș.
.. _version-1.0.1:
1.0.1
=====
:release-date: 2016-04-11 03:00 P.M PDT
:release-by: Ask Solem
- Adds vine.five.python_2_unicode_compatible.
.. _version-1.0.0:
1.0.0
=====
:release-date: 2016-04-07 06:02 P.M PDT
:release-by: Ask Solem
- Initial release.