Come una piuma

2014-03-12 Thread Daria Ceriani

Questa e' l'occasione giusta per perdere tutti i tuoi chili di troppo!
Siamo presenti nel campo della dietologia da piu di un decenio e sempre con 
risultati favolosi.
Sono milioni le persone soddisfatte.

http://dFL8.me/leggerisubito


Re: pybuild: where to put --test-pytest?

2014-03-12 Thread Piotr Ożarowski
[Nikolaus Rath, 2014-03-12]
> I'm working on a package that uses pytest. Conventiently, pybuild seems
> to have a --test-pytest option -- but I'm completely at a loss where to
> put it.
> 
> Currently my rules file looks like this:

you can add this line in debian/rules:

 export PYBUILD_TEST_PYTEST=1

or you can override dh_auto_test:

 override_dh_auto_test:
dh_auto_test -- --test-pytest

-- 
Piotr Ożarowski Debian GNU/Linux Developer
www.ozarowski.pl  www.griffith.cc   www.debian.org
GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645


-- 
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20140312084954.gj22...@sts0.p1otr.com



Re: Bug#736721: Incorrect dependencies

2014-03-12 Thread Jonas Borgström
On 2014-02-07 15:33 , Jonas Borgström wrote:
> On 2014-02-07 15:08 , Julien Cristau wrote:
>> On Fri, Feb  7, 2014 at 15:04:47 +0100, Jonas Borgström wrote:
>>
>>> On 2014-02-07 12:12 , Jakub Wilk wrote:
 What attic/crypto.py currently does is:

 libcrypto = cdll.LoadLibrary(find_library('crypto'))

 But there is no guarantee that find_library('crypto') returns a library
 that is ABI-compatible with the Python code. For the Debian package, a
 quick&dirty fix is to replace the find_library() call with
 'libcrypto.so.1.0.0', then hardcode libssl1.0.0 in Depends. But that of
 course means that the package would need a sourceful upload by the next
 OpenSSL transition.
>>>
>>> You're right. The "find_library('crypto')" line itself won't guarantee
>>> any ABI-compatibility but a "Depends: libssl1.0.0 (>= 1.0.0)" line will.
>>>
>> No, because it doesn't guarantee that libssl1.1 is not installed, and
>> find_library('crypto') may well pick that one instead of the expected
>> libcrypto.so.1.0.0.
> 
> Ok, I see your point. How about this then:
> 
> - Use "libssl1.0.0 >= 1.0.0" as a dependency
> - I change the code to only fall back on find_library('crypto') if
> libcrypto.so.1.0.0 is not found in the usual place?
> 
> That way we're ready when/if libssl 1.1 is released _and_ ships with a
> different ABI for the 4 libcrypto function used by Attic.
> 
> All of this will hopefully be a non-issue in a not so distant future
> since I'm thinking about to replace all python extension and ctypes code
> with cffi in order to support PyPy.

Hi all,

After a failed attempt at replacing all cython and ctypes usage with
cffi (cffi is about 40% slower than cython for some operations with
cPython), I decided to instead replace ctypes with cython.

So as of this commit:
https://github.com/jborg/attic/commit/0e39acffd3c0dc74738e7acf77994d8a6bffa56e

The "attic.crypto" module is now a regular python extension module that
is properly linked with libcrypto.

This change will be part of Attic 0.12 once released but it also cleanly
applies to the newly released Attic 0.11 if anyone is interested.

/ Jonas



signature.asc
Description: OpenPGP digital signature