Package Details: python-asyncpg 0.18.3-1

Git Clone URL: https://aur.archlinux.org/python-asyncpg.git (read-only)
Package Base: python-asyncpg
Description: An asyncio PosgtreSQL driver
Upstream URL: https://github.com/MagicStack/asyncpg
Licenses: Apache
Submitter: carlwgeorge
Maintainer: thrasibule
Last Packager: thrasibule
Votes: 4
Popularity: 0.910765
First Submitted: 2017-01-07 07:07
Last Updated: 2019-01-19 23:40

Latest Comments

minus commented on 2018-08-18 14:02

The package fails to build for me because the download 404's; looking at the github release page the URL seems to be a bit different:

broken: https://github.com/MagicStack/asyncpg/archive/v0.17.0/asyncpg-0.17.0.tar.gz

working: https://github.com/MagicStack/asyncpg/archive/v0.17.0.tar.gz

Oddly enough, former URL works in the browser though

gosella commented on 2018-08-05 02:40

Version 0.17.0 is out!

https://github.com/MagicStack/asyncpg/releases/tag/v0.17.0

BTW, the tests fail if the system language isn't set to English. You can fix that by calling pytest like this:

LANG=C pytest

Here is a simple patch for PKGBUILD: https://hastebin.com/xiwaqacisa.pl

carlwgeorge commented on 2017-05-13 19:29

@thrasibule I finally remembered why I was removing the "include_package_data=True" line from the setup.py file. That causes the "*.c" and "*.pyx" source files to be installed in the site-packages directory. I added a patch to remove it again and scan for the sub-modules to ensure only the necessary files are included. I also submitted that fix upstream.

https://github.com/MagicStack/asyncpg/pull/141

carlwgeorge commented on 2017-03-02 23:50

@thrasibule Sorry for the delay. I just pushed 0.9.0-1 which should resolve this for you. For some reason that I can't remember now, I was deleting the "include_package_data=True" line from the setup.py file during the prep(). After removing that, the package now contains the /usr/lib/python3.6/site-packages/asyncpg/exceptions directory and related files.

thrasibule commented on 2017-02-07 19:47

By setting include_package=True, the install is incomplete. Doing asyncpg from the prompt errors out with "ImportError: cannot import name 'exceptions'". I suggest to use the following patch to fix it:

diff -urN asyncpg-0.8.4-orig/setup.py asyncpg-0.8.4/setup.py
--- asyncpg-0.8.4-orig/setup.py 2017-02-07 14:27:15.630575969 -0500
+++ asyncpg-0.8.4/setup.py 2017-02-07 14:27:50.773635252 -0500
@@ -197,7 +197,7 @@
author_email='hello@magic.io',
url='https://github.com/MagicStack/asyncpg',
license='Apache License, Version 2.0',
- packages=['asyncpg'],
+ packages=['asyncpg', 'asyncpg.exceptions'],
provides=['asyncpg'],
include_package_data=True,
ext_modules=[