Bug#807702: ITP: django-user-accounts -- infrastructure for dealing with user accounts

2015-12-11 Thread Michael Fladischer
Package: wnpp
Severity: wishlist
Owner: Michael Fladischer 

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

* Package name: django-user-accounts
  Version : 1.3.1
  Upstream Author : Brian Rosner 
* URL : https://github.com/pinax/django-user-accounts
* License : Expat
  Programming Lang: Python
  Description : infrastructure for dealing with user accounts

 Provides extensible user accounts to a Django project. django-user-accounts has
 very good default behavior when handling user accounts. It has been designed to
 be customizable in many aspects.
 .
 By default this app will:
  * enable username authentication
  * provide default views and forms for sign up, log in, password reset and
account management
  * handle log out with POST
  * require unique email addresses globally
  * require email verification for performing password resets

-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQIcBAEBCgAGBQJWayL4AAoJEGlMre9Rx7W2abQP/1hf0NjSv5+vA/JeKOnveJyl
EC/5WdQsmL/Ir1JMzT5WUFtByQc8MWy7BYXmm3O8y9q9MHFu18Tbj4Sj29O5Dlpy
xB2SXNDcFPPCBi/0Hi172+aX6RJ22+HKef1HJjeNYGTrxjboetiugRYj4feG25KT
JPsTlCjOA76nLQGMIHQKO8CKrApkKlcHBisEatsdj3Q0CeZe0WhYGK34Xf9Zzlxm
zUiuGhCdxKwLezZK6/0A8ANjWhsDWHkCWQUMnxy4AJjGyH4zGXOop98P1QcQj1hs
d5h7coZUy7hqf0WIKV7wS60p6HqOiNannDjScuL5X+uN5lXlMVZ2ybM6UzRRG+W7
KYXzlQOlTicEVLqEzzFKxbtR1Wrx1PZGT+snO64Q+Kblgyl8/2Giw439jza/JrKr
U55jkl1XpHp29F2QjeLstHHlGQhM/d28aKRTfjb4zXbwr/qumJIhBB6uH7CEQtDN
9ceCSDEcKf8q7n+HDCgnuv1EfHqPX+QLU5y1zFqah7y4FcuaqZcJ7W5eZGKvqqYj
oBL0XCXQoqnlWkCLg9VYMhJAt1qopCCZKABrqT/qe9jO+OIzM8J0AL4NVxiER/z4
4VNpsBiWCvZBZyn+KuawBqu4rBWop7HVQJY3/mp7pLQmTFjfVB7kdEjOcjoVuwH8
neje2Tgn0A6tw4b+ej9R
=LVKr
-END PGP SIGNATURE-



Re: Bug#798066: Multiarch-renamed python extensions not found during autopkgtest testing

2015-12-11 Thread Antonio Terceiro
On Thu, Dec 10, 2015 at 10:52:05PM -0800, Afif Elghraoui wrote:
> Hi,
> 
> على الأربعاء  9 كانون الأول 2015 ‫05:25، كتب Antonio Terceiro:
> > autopkgtest does not do anything special wrt dependencies, it will
> > install exactly what you told it to in debian/tests/control
> [...]
> > 
> > I am therefore closing this bug.
> 
> The problem is not that something is not installed. The problem is that
> the multiarch configuration for python is not right in autopkgtest (or
> schroot). During the package build, dh-python renames the compiled
> extension to contain the multiarch triplet. For some reason, only in
> autopkgtest, python is not properly configured to find the extension
> after it has been renamed, so autopkgtest runs requiring the compiled
> extensions fail.

ci.debian.net does not use schroot anymore, since a few weeks ago. and
autopkgtest does not do anything special to packages, it just installs
them on an otherwise regular testbed, be it a schroot chroot, an lxc
container (what ci.debian.net currently uses), and so on.

> So should we continue to have hacks like this to get autopkgtest to find
> multiarch-renamed extensions?
> 
> cd /usr/lib/python2.7/dist-packages/pysam
> gnutype=`dpkg-architecture -qDEB_TARGET_GNU_TYPE`
> for so in *.${gnutype}.so ; do sudo ln -sf $so `basename $so
> .${gnutype}.so`.so ; done
> 
> http://anonscm.debian.org/cgit/debian-med/python-pysam.git/tree/debian/tests/run-nose-tests

Again, there is nothing special in the autopkgtest test beds. I also
don't see other python packages that contain compiled extensions needing
to do this sort of thing.

I tried python-pysam here, and after some trial and error, I can also reproduce
the same issue outside of autopkgtest. The issue is that Python load path is
being confused by the fact that you are on root of the source package:

# pwd
/tmp/python-pysam-0.8.4+ds
# ls
AUTHORS  INSTALL MANIFEST.in  THANKS debian  install-CGAT-tools.sh  
pysam.py  samtools  setup.cfg  tests
COPYING  KNOWN_BUGS  README.rst   benchmark  doc pysam  
requirements.txt  save  setup.py   win32
# python
Python 2.7.11 (default, Dec  9 2015, 00:29:25) 
[GCC 5.3.1 20151205] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pysam
Traceback (most recent call last):
  File "", line 1, in 
  File "pysam/__init__.py", line 1, in 
from pysam.libchtslib import *
ImportError: No module named libchtslib
>>> 
# cd /
# python
Python 2.7.11 (default, Dec  9 2015, 00:29:25) 
[GCC 5.3.1 20151205] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pysam 
>>> 
# 

So your problem has nothing to do autopkgtest, other than the fact that
autopkgtest always starts the tests from the root of the source package.

-- 
Antonio Terceiro 


signature.asc
Description: PGP signature