-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Luca
committed
Apr 24, 2022
1 parent
f9fd6f2
commit f88786c
Showing
10 changed files
with
83 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
"""Reusable server side python modules""" | ||
__version__ = "0.4.2" | ||
__version__ = "0.4.3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "aio-fluid" | ||
version = "0.4.2" | ||
version = "0.4.3" | ||
description = "Tools for backend python services" | ||
license = "BSD" | ||
authors = ["Luca <[email protected]>"] | ||
|
@@ -34,7 +34,7 @@ classifiers = [ | |
|
||
[tool.poetry.dependencies] | ||
python = ">=3.8,<4" | ||
aio-openapi = "^2.8.0" | ||
aio-openapi = "^2.9.0" | ||
aioredis = "^2.0.0" | ||
ujson = "^5.1.0" | ||
inflection = "^0.5.1" | ||
|
@@ -45,13 +45,13 @@ python-slugify = {version = "^6.1.0", extras = ["unidecode"]} | |
python-json-logger = "^2.0.2" | ||
colorlog = "^6.6.0" | ||
aiohttp_cors = "^0.7.0" | ||
aiobotocore = {version = "^2.1.0", extras=["boto3"]} | ||
s3fs = {version = "^2022.2.0"} | ||
aiobotocore = {version = "~2.2.0", extras=["boto3"]} | ||
s3fs = {version = "^2022.3.0"} | ||
aio-kong = "^0.9.0" | ||
uvloop = "^0.16.0" | ||
|
||
[tool.poetry.dev-dependencies] | ||
pytest = "^6.2.4" | ||
pytest = "^7.1.2" | ||
isort = "^5.9.3" | ||
black = "^22.1.0" | ||
flake8 = "^4.0.1" | ||
|
@@ -60,7 +60,7 @@ flake8-commas = "^2.0.0" | |
pytest-cov = "^3.0.0" | ||
pytest-aiohttp = "^1.0.4" | ||
codecov = "^2.1.12" | ||
mypy = "^0.931" | ||
mypy = "^0.942" | ||
|
||
[build-system] | ||
requires = ["poetry-core>=1.0.0"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import asyncio | ||
from datetime import datetime, timedelta | ||
|
||
from fluid.scheduler import every | ||
|
||
|
||
async def test_delay(): | ||
scheduler = every(timedelta(seconds=10), delay=timedelta(seconds=0.3)) | ||
assert scheduler(datetime.now()) is None | ||
await asyncio.sleep(0.4) | ||
assert scheduler(datetime.now()) is not None |
Oops, something went wrong.