Skip to content

Commit

Permalink
package/python-aiofiles: new package
Browse files Browse the repository at this point in the history
Ordinary local file IO is blocking, and cannot easily and
portably made asynchronous.
This means doing file IO may interfere with asyncio applications,
which shouldn’t block the executing thread. aiofiles helps
with this y introducing asynchronous versions of files
that support delegating operations to a separate thread pool.

More information is available at :
https://pypi.org/project/aiofiles.

Signed-off-by: Jugurtha BELKALEM <[email protected]>
Signed-off-by: Thomas Petazzoni <[email protected]>
  • Loading branch information
jugurthab authored and tpetazzoni committed Sep 6, 2020
1 parent 97d431c commit 0a5fd75
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions DEVELOPERS
Original file line number Diff line number Diff line change
Expand Up @@ -1424,6 +1424,7 @@ N: Joshua Henderson <[email protected]>
F: package/qt5/qt5wayland/

N: Jugurtha BELKALEM <[email protected]>
F: package/python-aiofiles/
F: package/python-crayons/
F: package/python-cycler/
F: package/python-matplotlib/
Expand Down
1 change: 1 addition & 0 deletions package/Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,7 @@ menu "External python modules"
source "package/python-aiocoap/Config.in"
source "package/python-aioconsole/Config.in"
source "package/python-aiodns/Config.in"
source "package/python-aiofiles/Config.in"
source "package/python-aiohttp/Config.in"
source "package/python-aiohttp-cors/Config.in"
source "package/python-aiohttp-debugtoolbar/Config.in"
Expand Down
8 changes: 8 additions & 0 deletions package/python-aiofiles/Config.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
config BR2_PACKAGE_PYTHON_AIOFILES
bool "python-aiofiles"
depends on BR2_PACKAGE_PYTHON3
help
aiofiles aims to handle local disk files in
asyncio applications.

https://pypi.org/project/aiofiles
5 changes: 5 additions & 0 deletions package/python-aiofiles/python-aiofiles.hash
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# md5, sha256 from https://pypi.org/pypi/aiofiles/json
md5 2243eff06072115e8afe8907677ca51d aiofiles-0.5.0.tar.gz
sha256 98e6bcfd1b50f97db4980e182ddd509b7cc35909e903a8fe50d8849e02d815af aiofiles-0.5.0.tar.gz
# Locally computed sha256 checksums
sha256 cb5e8e7e5f4a3988e1063c142c60dc2df75605f4c46515e776e3aca6df976e14 LICENSE
14 changes: 14 additions & 0 deletions package/python-aiofiles/python-aiofiles.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
################################################################################
#
# python-aiofiles
#
################################################################################

PYTHON_AIOFILES_VERSION = 0.5.0
PYTHON_AIOFILES_SOURCE = aiofiles-$(PYTHON_AIOFILES_VERSION).tar.gz
PYTHON_AIOFILES_SITE = https://files.pythonhosted.org/packages/2b/64/437053d6a4ba3b3eea1044131a25b458489320cb9609e19ac17261e4dc9b
PYTHON_AIOFILES_SETUP_TYPE = setuptools
PYTHON_AIOFILES_LICENSE = Apache-2.0
PYTHON_AIOFILES_LICENSE_FILES = LICENSE

$(eval $(python-package))

0 comments on commit 0a5fd75

Please sign in to comment.