Re: "How to package additional files under site-packages "

2019-03-04 Thread dieter
Saba Kauser writes: > ... > I want data_files to be copied under my package install path. > How do I achieve this? You could look at one of my packages (i.e. "dm.*", e.g. "dm.pdb"). Essentially, I have the data files besides the Python sources and let "setuptools" determine the relevant files (s

Re: Decodificar base64 en Odoo 12

2019-03-04 Thread angiielovee177
El lunes, 4 de marzo de 2019, 11:07:40 (UTC-6), Peter Otten escribió: > Angie GL wrote: > > > Hola a todos, tengo un problema al decodificar el contenido de una > > variable base64. > > > > De esta manera lo hago: > > > > cfdi = base64.b64decode(inv.l10n_mx_edi_cfdi) > > > > > > > > Al moment

Re: Totally Legit Signing Key?

2019-03-04 Thread Thomas Jollans
On 04/03/2019 20:37, Peter Otten wrote: > For once I tried to verify a download from python.org, following the steps > outlined at > > https://www.python.org/downloads/#pubkeys > > """ > You can import the release manager public keys by either downloading the > public key file from here and the

Re: Totally Legit Signing Key?

2019-03-04 Thread Chris Angelico
On Tue, Mar 5, 2019 at 9:06 AM Ben Finney wrote: > > Peter Otten <__pete...@web.de> writes: > > > $ gpg --import pubkeys.txt > > […] > > gpg: Schlüssel 487034E5: "Steve Dower (Python Release Signing) > > " 8 neue Signaturen > > gpg: Schlüssel 10250568: Öffentlicher Schlüssel "Łukasz Langa (GPG >

Re: Totally Legit Signing Key?

2019-03-04 Thread Ben Finney
Peter Otten <__pete...@web.de> writes: > $ gpg --import pubkeys.txt > […] > gpg: Schlüssel 487034E5: "Steve Dower (Python Release Signing) > " 8 neue Signaturen > gpg: Schlüssel 10250568: Öffentlicher Schlüssel "Łukasz Langa (GPG langa.pl) > " importiert > gpg: Schlüssel 487034E5: Öffentlicher

Re: about types.new_class and module

2019-03-04 Thread Peter Otten
MRAB wrote: > On 2019-03-04 18:02, Jimmy Girardet wrote: >> Hello, >> >> I'm looking for an explanation where live classes created by >> types.new_class() : >> >> py> import types >> >> py> types.new_class('A') >> >> types.A >> >> py> types.A >> >> AttributeError: module 'types' has no attri

Re: about types.new_class and module

2019-03-04 Thread Jimmy Girardet
Thank you for the clarification. I thought everything was bounded to anything. Shouldn't the name be changed from `types.A` to `unbound.A` to be less confusing ? Le 04/03/2019 à 20:31, MRAB a écrit : 'new_class' creates a new class with the given name and returns a reference to it. The c

Totally Legit Signing Key?

2019-03-04 Thread Peter Otten
For once I tried to verify a download from python.org, following the steps outlined at https://www.python.org/downloads/#pubkeys """ You can import the release manager public keys by either downloading the public key file from here and then running gpg --import pubkeys.txt """ When I ran the

Re: about types.new_class and module

2019-03-04 Thread MRAB
On 2019-03-04 18:02, Jimmy Girardet wrote: Hello, I'm looking for an explanation where live classes created by types.new_class() : py> import types py> types.new_class('A') types.A py> types.A AttributeError: module 'types' has no attribute 'A' py> _.__module__ 'types' The new class com

about types.new_class and module

2019-03-04 Thread Jimmy Girardet
Hello, I'm looking for an explanation where live classes created by types.new_class() : py> import types py> types.new_class('A') types.A py> types.A AttributeError: module 'types' has no attribute 'A' py> _.__module__ 'types' The new class comes from `types` module without being inside.

Re: Decodificar base64 en Odoo 12

2019-03-04 Thread Peter Otten
Angie GL wrote: > Hola a todos, tengo un problema al decodificar el contenido de una > variable base64. > > De esta manera lo hago: > > cfdi = base64.b64decode(inv.l10n_mx_edi_cfdi) > > > > Al momento de decodificar el resultado que me envía es esto: > > b'\n\n \n \n \n \n \n \n \n \n \n \n

Decodificar base64 en Odoo 12

2019-03-04 Thread Angie GL
Hola a todos, tengo un problema al decodificar el contenido de una variable base64. De esta manera lo hago: cfdi = base64.b64decode(inv.l10n_mx_edi_cfdi) Al momento de decodificar el resultado que me envía es esto: b'\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n' Alguien que me pue

"How to package additional files under site-packages "

2019-03-04 Thread Saba Kauser
Hello, I have a setup.py that has this: package_data = { 'tests': [ '*.png', '*.jpg']} data_files = [ ('', ['./README.md']), ('', ['./CHANGES']), ('', ['./LICENSE']) ] setup( name= PACKAGE, version = VERSION, . . packages = find_packages(),

Re: pyz and concurrent.futures

2019-03-04 Thread Mark
I've now just tried with Python 3.7.1 and the same problem persists, so I'll now try to use a second thread for the console app. PS For these CPU-intensive apps which use multiprocessing to use all the CPUs, compared with Python 3.4, 3.6 is 13% faster, and 3.7 is 33% faster! -- https://mail.pyt

[RELEASED] Python 3.4.10rc1 and Python 3.5.7rc1 are now available

2019-03-04 Thread Larry Hastings
On behalf of the Python development community, I'm chuffed to announce the availability of Python 3.4.10rc1 and Python 3.5.7rc1. Both Python 3.4 and 3.5 are in "security fixes only" mode.  Both versions only accept security fixes, not conventional bug fixes, and both releases are source-only

pyz and concurrent.futures

2019-03-04 Thread Mark
I have two apps, one GUI one console, both using PySide2 bindings to Qt 5. Both use concurrent.futures and a processing pool to spread their work over multiple CPUs. I've written my own deployment script (since I can't get a successfull deploy with cx-freeze, py2exe, or pyinstaller) which create