Skip to content

Commit 7d0ca24

Browse files
committed
Merge branch 'using-nest-asyncio' into 0.16
2 parents 34887f8 + dbca4da commit 7d0ca24

File tree

5 files changed

+17
-8
lines changed

5 files changed

+17
-8
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

99
## [unreleased]
1010

11+
## [0.16.1] - 2023-09-19
12+
13+
- Uses `nest_asyncio` patch in event loop - sync to async
14+
- Retry Querier request on `AsyncLibraryNotFoundError`
1115

1216
## [0.16.0] - 2023-09-13
1317

@@ -535,6 +539,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
535539
}
536540
```
537541

542+
## [0.14.10] - 2023-09-31
543+
544+
- Uses nest_asyncio patch in event loop - sync to async
545+
546+
## [0.14.9] - 2023-09-28
547+
548+
- Add logic to retry network calls if the core returns status 429
549+
538550
## [0.14.8] - 2023-07-07
539551
## Fixes
540552

addDevTag

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
#!/bin/bash
22

3-
# check if we need to merge master into this branch------------
4-
if [[ $(git log origin/master ^HEAD) ]]; then
5-
echo "You need to merge master into this branch. Exiting"
6-
exit 1
7-
fi
8-
93
# get version------------
104
version=`cat setup.py | grep -e 'version='`
115
while IFS='"' read -ra ADDR; do

html/supertokens_python/constants.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,4 @@ <h2>Index</h2>
8787
<p>Generated by <a href="https://pdoc3.github.io/pdoc" title="pdoc: Python API documentation generator"><cite>pdoc</cite> 0.10.0</a>.</p>
8888
</footer>
8989
</body>
90-
</html>
90+
</html>

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070

7171
setup(
7272
name="supertokens_python",
73-
version="0.16.0",
73+
version="0.16.1",
7474
author="SuperTokens",
7575
license="Apache 2.0",
7676
author_email="[email protected]",
@@ -112,6 +112,7 @@
112112
"twilio==7.9.1",
113113
"aiosmtplib==1.1.6",
114114
"pkce==1.0.3",
115+
"nest-asyncio==1.5.1",
115116
],
116117
python_requires=">=3.7",
117118
include_package_data=True,

supertokens_python/async_to_sync_wrapper.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# License for the specific language governing permissions and limitations
1313
# under the License.
1414

15+
import nest_asyncio # type: ignore
1516
import asyncio
1617
from typing import Any, Coroutine, TypeVar
1718

@@ -24,6 +25,7 @@ def check_event_loop():
2425
except RuntimeError as ex:
2526
if "There is no current event loop in thread" in str(ex):
2627
loop = asyncio.new_event_loop()
28+
nest_asyncio.apply(loop) # type: ignore
2729
asyncio.set_event_loop(loop)
2830

2931

0 commit comments

Comments
 (0)