fb-python-sdk 1.1.5__tar.gz → 1.1.6__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. {fb-python-sdk-1.1.5/fb_python_sdk.egg-info → fb_python_sdk-1.1.6}/PKG-INFO +24 -9
  2. {fb-python-sdk-1.1.5 → fb_python_sdk-1.1.6}/README.md +6 -6
  3. {fb-python-sdk-1.1.5 → fb_python_sdk-1.1.6/fb_python_sdk.egg-info}/PKG-INFO +24 -9
  4. {fb-python-sdk-1.1.5 → fb_python_sdk-1.1.6}/fb_python_sdk.egg-info/SOURCES.txt +0 -1
  5. {fb-python-sdk-1.1.5 → fb_python_sdk-1.1.6}/fbclient/client.py +2 -2
  6. {fb-python-sdk-1.1.5 → fb_python_sdk-1.1.6}/fbclient/flag_change_notification.py +15 -14
  7. {fb-python-sdk-1.1.5 → fb_python_sdk-1.1.6}/fbclient/utils/rwlock.py +1 -1
  8. fb_python_sdk-1.1.6/release/package.json +3 -0
  9. {fb-python-sdk-1.1.5 → fb_python_sdk-1.1.6}/setup.py +2 -1
  10. fb-python-sdk-1.1.5/fbclient/version.py +0 -1
  11. fb-python-sdk-1.1.5/release/package.json +0 -3
  12. {fb-python-sdk-1.1.5 → fb_python_sdk-1.1.6}/LICENSE +0 -0
  13. {fb-python-sdk-1.1.5 → fb_python_sdk-1.1.6}/MANIFEST.in +0 -0
  14. {fb-python-sdk-1.1.5 → fb_python_sdk-1.1.6}/dev-requirements.txt +0 -0
  15. {fb-python-sdk-1.1.5 → fb_python_sdk-1.1.6}/fb_python_sdk.egg-info/dependency_links.txt +0 -0
  16. {fb-python-sdk-1.1.5 → fb_python_sdk-1.1.6}/fb_python_sdk.egg-info/requires.txt +0 -0
  17. {fb-python-sdk-1.1.5 → fb_python_sdk-1.1.6}/fb_python_sdk.egg-info/top_level.txt +0 -0
  18. {fb-python-sdk-1.1.5 → fb_python_sdk-1.1.6}/fbclient/__init__.py +0 -0
  19. {fb-python-sdk-1.1.5 → fb_python_sdk-1.1.6}/fbclient/category.py +0 -0
  20. {fb-python-sdk-1.1.5 → fb_python_sdk-1.1.6}/fbclient/common_types.py +0 -0
  21. {fb-python-sdk-1.1.5 → fb_python_sdk-1.1.6}/fbclient/config.py +0 -0
  22. {fb-python-sdk-1.1.5 → fb_python_sdk-1.1.6}/fbclient/data_storage.py +0 -0
  23. {fb-python-sdk-1.1.5 → fb_python_sdk-1.1.6}/fbclient/evaluator.py +0 -0
  24. {fb-python-sdk-1.1.5 → fb_python_sdk-1.1.6}/fbclient/event_processor.py +0 -0
  25. {fb-python-sdk-1.1.5 → fb_python_sdk-1.1.6}/fbclient/event_types.py +0 -0
  26. {fb-python-sdk-1.1.5 → fb_python_sdk-1.1.6}/fbclient/interfaces.py +0 -0
  27. {fb-python-sdk-1.1.5 → fb_python_sdk-1.1.6}/fbclient/notice_broadcaster.py +0 -0
  28. {fb-python-sdk-1.1.5 → fb_python_sdk-1.1.6}/fbclient/status.py +0 -0
  29. {fb-python-sdk-1.1.5 → fb_python_sdk-1.1.6}/fbclient/status_types.py +0 -0
  30. {fb-python-sdk-1.1.5 → fb_python_sdk-1.1.6}/fbclient/streaming.py +0 -0
  31. {fb-python-sdk-1.1.5 → fb_python_sdk-1.1.6}/fbclient/update_processor.py +0 -0
  32. {fb-python-sdk-1.1.5 → fb_python_sdk-1.1.6}/fbclient/utils/__init__.py +0 -0
  33. {fb-python-sdk-1.1.5 → fb_python_sdk-1.1.6}/fbclient/utils/exponential_backoff_jitter_strategy.py +0 -0
  34. {fb-python-sdk-1.1.5 → fb_python_sdk-1.1.6}/fbclient/utils/http_client.py +0 -0
  35. {fb-python-sdk-1.1.5 → fb_python_sdk-1.1.6}/fbclient/utils/repeatable_task.py +0 -0
  36. {fb-python-sdk-1.1.5 → fb_python_sdk-1.1.6}/fbclient/utils/variation_splitting_algorithm.py +0 -0
  37. {fb-python-sdk-1.1.5 → fb_python_sdk-1.1.6}/pyproject.toml +0 -0
  38. {fb-python-sdk-1.1.5 → fb_python_sdk-1.1.6}/requirements.txt +0 -0
  39. {fb-python-sdk-1.1.5 → fb_python_sdk-1.1.6}/setup.cfg +0 -0
  40. {fb-python-sdk-1.1.5 → fb_python_sdk-1.1.6}/tests/__init__.py +0 -0
  41. {fb-python-sdk-1.1.5 → fb_python_sdk-1.1.6}/tests/test_data_storage.py +0 -0
  42. {fb-python-sdk-1.1.5 → fb_python_sdk-1.1.6}/tests/test_data_update_status_provider.py +0 -0
  43. {fb-python-sdk-1.1.5 → fb_python_sdk-1.1.6}/tests/test_evaluator.py +0 -0
  44. {fb-python-sdk-1.1.5 → fb_python_sdk-1.1.6}/tests/test_event_processor.py +0 -0
  45. {fb-python-sdk-1.1.5 → fb_python_sdk-1.1.6}/tests/test_fbclient.py +0 -0
  46. {fb-python-sdk-1.1.5 → fb_python_sdk-1.1.6}/tests/test_flag_change_notification.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fb-python-sdk
3
- Version: 1.1.5
3
+ Version: 1.1.6
4
4
  Summary: A Python SDK for FeatBit plateform
5
5
  Home-page: https://github.com/featbit/featbit-python-sdk
6
6
  Author: Dian SUN
@@ -19,10 +19,25 @@ Classifier: Programming Language :: Python :: 3.8
19
19
  Classifier: Programming Language :: Python :: 3.9
20
20
  Classifier: Programming Language :: Python :: 3.10
21
21
  Classifier: Programming Language :: Python :: 3.11
22
- Requires-Python: >=3.6, <=3.11
22
+ Classifier: Programming Language :: Python :: 3.12
23
+ Requires-Python: >=3.6, <=3.12
23
24
  Description-Content-Type: text/markdown
24
- Provides-Extra: dev
25
25
  License-File: LICENSE
26
+ Requires-Dist: certifi>=2018.4.16
27
+ Requires-Dist: urllib3>=1.22.0
28
+ Requires-Dist: python-dateutil>=2.8.2
29
+ Requires-Dist: websocket-client>=1.0.0
30
+ Provides-Extra: dev
31
+ Requires-Dist: certifi>=2018.4.16; extra == "dev"
32
+ Requires-Dist: urllib3>=1.22.0; extra == "dev"
33
+ Requires-Dist: websocket-client>=1.0.0; extra == "dev"
34
+ Requires-Dist: python-dateutil>=2.8.2; extra == "dev"
35
+ Requires-Dist: flake8; extra == "dev"
36
+ Requires-Dist: pytest; extra == "dev"
37
+ Requires-Dist: pytest-mock; extra == "dev"
38
+ Requires-Dist: autopep8; extra == "dev"
39
+ Requires-Dist: build; extra == "dev"
40
+ Requires-Dist: twine; extra == "dev"
26
41
 
27
42
  # FeatBit Server-Side SDK for Python
28
43
 
@@ -56,8 +71,8 @@ Before using the SDK, you need to obtain the environment secret and SDK URLs.
56
71
 
57
72
  Follow the documentation below to retrieve these values
58
73
 
59
- - [How to get the environment secret](https://docs.featbit.co/docs/sdk/faq#how-to-get-the-environment-secret)
60
- - [How to get the SDK URLs](https://docs.featbit.co/docs/sdk/faq#how-to-get-the-sdk-urls)
74
+ - [How to get the environment secret](https://docs.featbit.co/sdk/faq#how-to-get-the-environment-secret)
75
+ - [How to get the SDK URLs](https://docs.featbit.co/sdk/faq#how-to-get-the-sdk-urls)
61
76
 
62
77
  ### Quick Start
63
78
 
@@ -191,7 +206,7 @@ Note that a flag value change listener is bound to a specific user and flag key.
191
206
  The flag value change listener will be notified whenever the SDK receives any change to any feature flag's configuration,
192
207
  or to a user segment that is referenced by a feature flag. To register a flag value change listener, use `add_flag_value_may_changed_listener` or `add_flag_value_changed_listener`
193
208
 
194
- When you track a flag change using `add_flag_value_may_changed_listener`, this does not necessarily mean the flag's value has changed for any particular flag, only that some part of the flag configuration was changed so that it *_MAY_* return a different value than it previously returned for some user.
209
+ When you track a flag change using `add_flag_value_maybe_changed_listener`, this does not necessarily mean the flag's value has changed for any particular flag, only that some part of the flag configuration was changed so that it *_MAY_* return a different value than it previously returned for some user.
195
210
 
196
211
  If you want to track a flag whose value *_MUST_* be changed, `add_flag_value_changed_listener` will register a listener that will be notified if and only if the flag value changes.
197
212
 
@@ -201,9 +216,9 @@ If the SDK is in offline mode, then it cannot know when there is a change, becau
201
216
  ```python
202
217
  if client.initialize:
203
218
  # flag value may be changed
204
- client.flag_tracker.add_flag_value_may_changed_listener(flag_key, user, callback_fn)
219
+ client.flag_tracker.add_flag_value_maybe_changed_listener(flag_key, user, flag_value_maybe_changed_callback_fn)
205
220
  # flag value must be changed
206
- client.flag_tracker.add_flag_value_changed_listener(flag_key, user, callback_fn)
221
+ client.flag_tracker.add_flag_value_changed_listener(flag_key, user, flag_value_changed_callback_fn)
207
222
 
208
223
  ```
209
224
  `flag_key`: the key of the feature flag to track
@@ -261,4 +276,4 @@ otherwise, the custom event may not be included into the experiment result.
261
276
  feature, [submit an issue](https://github.com/featbit/featbit-python-sdk/issues/new).
262
277
 
263
278
  ## See Also
264
- - [Connect To Python Sdk](https://docs.featbit.co/docs/getting-started/4.-connect-an-sdk/server-side-sdks/python-sdk)
279
+ - [Connect To Python Sdk](https://docs.featbit.co/sdk/overview#python)
@@ -30,8 +30,8 @@ Before using the SDK, you need to obtain the environment secret and SDK URLs.
30
30
 
31
31
  Follow the documentation below to retrieve these values
32
32
 
33
- - [How to get the environment secret](https://docs.featbit.co/docs/sdk/faq#how-to-get-the-environment-secret)
34
- - [How to get the SDK URLs](https://docs.featbit.co/docs/sdk/faq#how-to-get-the-sdk-urls)
33
+ - [How to get the environment secret](https://docs.featbit.co/sdk/faq#how-to-get-the-environment-secret)
34
+ - [How to get the SDK URLs](https://docs.featbit.co/sdk/faq#how-to-get-the-sdk-urls)
35
35
 
36
36
  ### Quick Start
37
37
 
@@ -165,7 +165,7 @@ Note that a flag value change listener is bound to a specific user and flag key.
165
165
  The flag value change listener will be notified whenever the SDK receives any change to any feature flag's configuration,
166
166
  or to a user segment that is referenced by a feature flag. To register a flag value change listener, use `add_flag_value_may_changed_listener` or `add_flag_value_changed_listener`
167
167
 
168
- When you track a flag change using `add_flag_value_may_changed_listener`, this does not necessarily mean the flag's value has changed for any particular flag, only that some part of the flag configuration was changed so that it *_MAY_* return a different value than it previously returned for some user.
168
+ When you track a flag change using `add_flag_value_maybe_changed_listener`, this does not necessarily mean the flag's value has changed for any particular flag, only that some part of the flag configuration was changed so that it *_MAY_* return a different value than it previously returned for some user.
169
169
 
170
170
  If you want to track a flag whose value *_MUST_* be changed, `add_flag_value_changed_listener` will register a listener that will be notified if and only if the flag value changes.
171
171
 
@@ -175,9 +175,9 @@ If the SDK is in offline mode, then it cannot know when there is a change, becau
175
175
  ```python
176
176
  if client.initialize:
177
177
  # flag value may be changed
178
- client.flag_tracker.add_flag_value_may_changed_listener(flag_key, user, callback_fn)
178
+ client.flag_tracker.add_flag_value_maybe_changed_listener(flag_key, user, flag_value_maybe_changed_callback_fn)
179
179
  # flag value must be changed
180
- client.flag_tracker.add_flag_value_changed_listener(flag_key, user, callback_fn)
180
+ client.flag_tracker.add_flag_value_changed_listener(flag_key, user, flag_value_changed_callback_fn)
181
181
 
182
182
  ```
183
183
  `flag_key`: the key of the feature flag to track
@@ -235,4 +235,4 @@ otherwise, the custom event may not be included into the experiment result.
235
235
  feature, [submit an issue](https://github.com/featbit/featbit-python-sdk/issues/new).
236
236
 
237
237
  ## See Also
238
- - [Connect To Python Sdk](https://docs.featbit.co/docs/getting-started/4.-connect-an-sdk/server-side-sdks/python-sdk)
238
+ - [Connect To Python Sdk](https://docs.featbit.co/sdk/overview#python)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fb-python-sdk
3
- Version: 1.1.5
3
+ Version: 1.1.6
4
4
  Summary: A Python SDK for FeatBit plateform
5
5
  Home-page: https://github.com/featbit/featbit-python-sdk
6
6
  Author: Dian SUN
@@ -19,10 +19,25 @@ Classifier: Programming Language :: Python :: 3.8
19
19
  Classifier: Programming Language :: Python :: 3.9
20
20
  Classifier: Programming Language :: Python :: 3.10
21
21
  Classifier: Programming Language :: Python :: 3.11
22
- Requires-Python: >=3.6, <=3.11
22
+ Classifier: Programming Language :: Python :: 3.12
23
+ Requires-Python: >=3.6, <=3.12
23
24
  Description-Content-Type: text/markdown
24
- Provides-Extra: dev
25
25
  License-File: LICENSE
26
+ Requires-Dist: certifi>=2018.4.16
27
+ Requires-Dist: urllib3>=1.22.0
28
+ Requires-Dist: python-dateutil>=2.8.2
29
+ Requires-Dist: websocket-client>=1.0.0
30
+ Provides-Extra: dev
31
+ Requires-Dist: certifi>=2018.4.16; extra == "dev"
32
+ Requires-Dist: urllib3>=1.22.0; extra == "dev"
33
+ Requires-Dist: websocket-client>=1.0.0; extra == "dev"
34
+ Requires-Dist: python-dateutil>=2.8.2; extra == "dev"
35
+ Requires-Dist: flake8; extra == "dev"
36
+ Requires-Dist: pytest; extra == "dev"
37
+ Requires-Dist: pytest-mock; extra == "dev"
38
+ Requires-Dist: autopep8; extra == "dev"
39
+ Requires-Dist: build; extra == "dev"
40
+ Requires-Dist: twine; extra == "dev"
26
41
 
27
42
  # FeatBit Server-Side SDK for Python
28
43
 
@@ -56,8 +71,8 @@ Before using the SDK, you need to obtain the environment secret and SDK URLs.
56
71
 
57
72
  Follow the documentation below to retrieve these values
58
73
 
59
- - [How to get the environment secret](https://docs.featbit.co/docs/sdk/faq#how-to-get-the-environment-secret)
60
- - [How to get the SDK URLs](https://docs.featbit.co/docs/sdk/faq#how-to-get-the-sdk-urls)
74
+ - [How to get the environment secret](https://docs.featbit.co/sdk/faq#how-to-get-the-environment-secret)
75
+ - [How to get the SDK URLs](https://docs.featbit.co/sdk/faq#how-to-get-the-sdk-urls)
61
76
 
62
77
  ### Quick Start
63
78
 
@@ -191,7 +206,7 @@ Note that a flag value change listener is bound to a specific user and flag key.
191
206
  The flag value change listener will be notified whenever the SDK receives any change to any feature flag's configuration,
192
207
  or to a user segment that is referenced by a feature flag. To register a flag value change listener, use `add_flag_value_may_changed_listener` or `add_flag_value_changed_listener`
193
208
 
194
- When you track a flag change using `add_flag_value_may_changed_listener`, this does not necessarily mean the flag's value has changed for any particular flag, only that some part of the flag configuration was changed so that it *_MAY_* return a different value than it previously returned for some user.
209
+ When you track a flag change using `add_flag_value_maybe_changed_listener`, this does not necessarily mean the flag's value has changed for any particular flag, only that some part of the flag configuration was changed so that it *_MAY_* return a different value than it previously returned for some user.
195
210
 
196
211
  If you want to track a flag whose value *_MUST_* be changed, `add_flag_value_changed_listener` will register a listener that will be notified if and only if the flag value changes.
197
212
 
@@ -201,9 +216,9 @@ If the SDK is in offline mode, then it cannot know when there is a change, becau
201
216
  ```python
202
217
  if client.initialize:
203
218
  # flag value may be changed
204
- client.flag_tracker.add_flag_value_may_changed_listener(flag_key, user, callback_fn)
219
+ client.flag_tracker.add_flag_value_maybe_changed_listener(flag_key, user, flag_value_maybe_changed_callback_fn)
205
220
  # flag value must be changed
206
- client.flag_tracker.add_flag_value_changed_listener(flag_key, user, callback_fn)
221
+ client.flag_tracker.add_flag_value_changed_listener(flag_key, user, flag_value_changed_callback_fn)
207
222
 
208
223
  ```
209
224
  `flag_key`: the key of the feature flag to track
@@ -261,4 +276,4 @@ otherwise, the custom event may not be included into the experiment result.
261
276
  feature, [submit an issue](https://github.com/featbit/featbit-python-sdk/issues/new).
262
277
 
263
278
  ## See Also
264
- - [Connect To Python Sdk](https://docs.featbit.co/docs/getting-started/4.-connect-an-sdk/server-side-sdks/python-sdk)
279
+ - [Connect To Python Sdk](https://docs.featbit.co/sdk/overview#python)
@@ -26,7 +26,6 @@ fbclient/status.py
26
26
  fbclient/status_types.py
27
27
  fbclient/streaming.py
28
28
  fbclient/update_processor.py
29
- fbclient/version.py
30
29
  fbclient/utils/__init__.py
31
30
  fbclient/utils/exponential_backoff_jitter_strategy.py
32
31
  fbclient/utils/http_client.py
@@ -343,7 +343,7 @@ class FBClient:
343
343
  :param event_name: the name of the event, which may correspond to a goal in A/B tests
344
344
  :param metric_value: a numeric value used by the experiment, default value is 1.0
345
345
  """
346
- if not event_name or metric_value <= 0:
346
+ if not event_name:
347
347
  log.warning('FB Python SDK: event/metric invalid')
348
348
  return
349
349
  try:
@@ -375,7 +375,7 @@ class FBClient:
375
375
 
376
376
  metric_event = MetricEvent(fb_user)
377
377
  for event_name, metric_value in metrics.items():
378
- if event_name and metric_value > 0:
378
+ if event_name:
379
379
  metric_event.add(Metric(event_name, metric_value))
380
380
  self._event_handler(metric_event)
381
381
 
@@ -38,7 +38,7 @@ class FlagValueChangedListener(FlagChangedListener):
38
38
  flag_key: str,
39
39
  user: dict,
40
40
  evaluate_fn: Callable[[str, dict, Any], Any],
41
- flag_value_changed_fn: Callable[[str, Any], None]):
41
+ flag_value_changed_fn: Callable[[str, Any, Any], None]):
42
42
  self.__flag_key = flag_key
43
43
  self.__user = user
44
44
  self.__evaluate_fn = evaluate_fn
@@ -51,20 +51,20 @@ class FlagValueChangedListener(FlagChangedListener):
51
51
  prev_flag_value = self.__prvious_flag_value
52
52
  curr_flag_value = self.__evaluate_fn(self.__flag_key, self.__user, None)
53
53
  if prev_flag_value != curr_flag_value:
54
- self.__fn(self.__flag_key, curr_flag_value)
54
+ self.__fn(self.__flag_key, prev_flag_value, curr_flag_value)
55
55
  self.__prvious_flag_value = curr_flag_value
56
56
 
57
57
 
58
- class FlagValueMayChangedListener(FlagChangedListener):
58
+ class FlagValueMaybeChangedListener(FlagChangedListener):
59
59
  def __init__(self,
60
60
  flag_key: str,
61
61
  user: dict,
62
62
  evaluate_fn: Callable[[str, dict, Any], Any],
63
- flag_value_changed_fn: Callable[[str, Any], None]):
63
+ flag_value_maybe_changed_fn: Callable[[str, Any], None]):
64
64
  self.__flag_key = flag_key
65
65
  self.__user = user
66
66
  self.__evaluate_fn = evaluate_fn
67
- self.__fn = flag_value_changed_fn
67
+ self.__fn = flag_value_maybe_changed_fn
68
68
 
69
69
  def on_flag_change(self, notice: FlagChangedNotice):
70
70
  if notice.flag_key == self.__flag_key:
@@ -95,7 +95,7 @@ class FlagTracker:
95
95
  def add_flag_value_changed_listener(self,
96
96
  flag_key: str,
97
97
  user: dict,
98
- flag_value_changed_fn: Callable[[str, Any], None]) -> FlagValueChangedListener:
98
+ flag_value_changed_fn: Callable[[str, Any, Any], None]) -> FlagValueChangedListener:
99
99
  """
100
100
  Registers a listener to be notified of a change in a specific feature flag's value for a specific FeatBit user.
101
101
 
@@ -110,7 +110,8 @@ class FlagTracker:
110
110
  :param user: The user to evaluate the flag value
111
111
  :param flag_value_changed_fn: The function to be called only when this flag value changes
112
112
  * the first argument is the flag key
113
- * the second argument is the latest flag value, this value must be different from the previous value
113
+ * the second argument is the previous flag value
114
+ * the third argument is the current flag value
114
115
 
115
116
  :return: A listener object that can be used to remove it later on.
116
117
  """
@@ -128,10 +129,10 @@ class FlagTracker:
128
129
  self.add_flag_changed_listener(listener)
129
130
  return listener
130
131
 
131
- def add_flag_value_may_changed_listener(self,
132
- flag_key: str,
133
- user: dict,
134
- flag_value_changed_fn: Callable[[str, Any], None]) -> FlagValueMayChangedListener:
132
+ def add_flag_value_maybe_changed_listener(self,
133
+ flag_key: str,
134
+ user: dict,
135
+ flag_value_maybe_changed_fn: Callable[[str, Any], None]) -> FlagValueMaybeChangedListener:
135
136
  """
136
137
  Registers a listener to be notified of a change in a specific feature flag's value for a specific FeatBit user.
137
138
 
@@ -145,7 +146,7 @@ class FlagTracker:
145
146
 
146
147
  :param flag_key: The key of the feature flag to track
147
148
  :param user: The user to evaluate the flag value
148
- :param flag_value_changed_fn: The function to be called only if any changes to a specific flag
149
+ :param flag_value_maybe_changed_fn: The function to be called if any changes to a specific flag
149
150
  * the first argument is the flag key
150
151
  * the second argument is the latest flag value, this value may be same as the previous value
151
152
 
@@ -159,10 +160,10 @@ class FlagTracker:
159
160
  # check user
160
161
  FBUser.from_dict(user)
161
162
  # check flag_value_changed_fn
162
- if not isinstance(flag_value_changed_fn, Callable) or not flag_value_changed_fn:
163
+ if not isinstance(flag_value_maybe_changed_fn, Callable) or not flag_value_maybe_changed_fn:
163
164
  raise ValueError('flag_value_changed_fn must be a callable function')
164
165
 
165
- listener = FlagValueMayChangedListener(flag_key, user, self.__evaluate_fn, flag_value_changed_fn)
166
+ listener = FlagValueMaybeChangedListener(flag_key, user, self.__evaluate_fn, flag_value_maybe_changed_fn)
166
167
  self.add_flag_changed_listener(listener)
167
168
  return listener
168
169
 
@@ -25,7 +25,7 @@ class ReadWriteLock:
25
25
  with self._read_ready:
26
26
  self._readers = self._readers - 1 if self._readers > 0 else 0
27
27
  if self._readers == 0:
28
- self._read_ready.notifyAll()
28
+ self._read_ready.notify_all()
29
29
 
30
30
  def write_lock(self):
31
31
  """ Acquire a write lock. Blocks until there are no
@@ -0,0 +1,3 @@
1
+ {
2
+ "version":"1.1.6"
3
+ }
@@ -50,10 +50,11 @@ setup(
50
50
  'Programming Language :: Python :: 3.9',
51
51
  'Programming Language :: Python :: 3.10',
52
52
  'Programming Language :: Python :: 3.11',
53
+ 'Programming Language :: Python :: 3.12',
53
54
  ],
54
55
  extras_require={
55
56
  "dev": dev_reqs
56
57
  },
57
58
  tests_require=dev_reqs,
58
- python_requires='>=3.6, <=3.11'
59
+ python_requires='>=3.6, <=3.12'
59
60
  )
@@ -1 +0,0 @@
1
- VERSION = "1.1.5"
@@ -1,3 +0,0 @@
1
- {
2
- "version":"1.1.5"
3
- }
File without changes
File without changes
File without changes