Re: Can't manage to fix error ImportError: No module named runtests

2016-08-09 Thread Petr Viktorin

On 08/08/2016 07:10 PM, Germano Massullo wrote:

Hi, I am packaging python-django-model-utils with spec file[1] by the
way I obtain the error message
ImportError: No module named runtests
(full logs at [2]). As you can see from the spec file, to try avoiding
this message I added the dependency python-testtools but the result is
the same.


I don't see the error in the log you posted.
The "python-testtools" package doesn't contain a runtests module, so 
that's not likely to help.


The problem is that the package released on PyPI doesn't include the 
runtests module. You could file a bug with upstream telling them they 
should include it. Or you can use a tarball from Github instead of the 
PyPI one:

https://github.com/carljm/django-model-utils/releases




What can I do?
Thank you for your time

[1]: http://paste.fedoraproject.org/403280/51832147/
[2]: http://paste.fedoraproject.org/404443/6764/



--
Petr Viktorin
___
python-devel mailing list
python-devel@lists.fedoraproject.org
https://lists.fedoraproject.org/admin/lists/python-devel@lists.fedoraproject.org


Python-maint projects roundup

2016-08-09 Thread Petr Viktorin

Hello!

At EuroPython and Flock this year, it became obvious that one thing Red 
Hat's Python maintenance team is doing quite badly is communicating and 
collaborating on this list. We're doing lots of stuff in Fedora, but we 
should really do it as python-sig, rather than as individual contributors.


Please accept my apologies for this situation. We'll try to do better 
from now on, and move Fedora-related talk to here and #fedora-python on IRC.



To get everyone here up to speed, here are some projects and plans, from 
things that are mostly done to wild ideas. If you want more info, please 
ask! (And, preferably, start a new thread...)




## Python 3 Migration

We're getting really close to having 50% Python packages in Fedora 
ported to Python 3. The effort is tracked at 
http://fedora.portingdb.xyz/, which also has a guide for contributing.
Bugs are tracked at https://bugzilla.redhat.com/show_bug.cgi?id=1285816 
which links to mass filing information.



## Python 3 Porting Guides

A guide for updating RPM specs is live at 
http://python-rpm-porting.readthedocs.io


There's a work-in-progress guide for porting Python code, focused on the 
tough nuts and uncooperative upstreams (because others have ported by 
now, right?). Released early here: http://portingguide.readthedocs.io



## Python Packaging Guidelines

The Guidelines could be clearer; hopefully we can:
- fix the mistakes and confusing parts
- modernize them (without sacrificing quality)
- improve the process of contributing to them


## Automation of Packaging

Ideally, packagers should focus on vetting packages, integrating with 
the system, and licence/legal compliance. Spec files tend to have lots 
of boilerplate and, sometimes, arcane magic that distracts from those 
tasks. Hopefully, that can be automated.
The pyp2rpm tool can convert PyPI packages to RPM specs (with varying 
success rates, but Michal is working on that). COPR can automatically 
rebuild packages as they're uploaded to PyPI.


Improving both these tools *and* Python's general packaging story should 
let packagers focus on the tasks suited for humans.



## Packaging Python itself

Python 3.6 is coming out too late for Fedora 25, but we'll get it into 
into Rawhide/26, as soon as possible.


For juggling patches across various Python version in various 
Fedora-related distros, Tomáš created this page: 
https://fedoraproject.org/wiki/User:Torsava/PythonPatches. It should 
really be in a more official location.


Over the years, patches that are obsolete or upstreamable (e.g. stuck on 
review) have piled up. Cleanup efforts should focus on python3 in Rawhide.


System Python is way to get Python with a stripped-down stdlib for 
minimal cloud images. It's in Fedora already; the corresponding Change 
page has more details. We're talking to DNF to adopt it.



## Breaking up the Standard Library

While most Python devs consider the standard library indivisible, pretty 
much all distros break out tests and/or tkinter. Outside Linux, 
py2exe/py2app/pyinstaller work with subsets of the standard library. And 
as Python moves to the mobile workd with its self-contained apps, 
there'll be more and more pressure for a standard way to leave out 
pieces of the stdlib. We should write the PEP for that.



## Making "sudo pip install" Play Nice

"sudo pip install" should not break system-installed packages. Telling 
people not to use "sudo pip" is, unfortunately, not really a solution.
We should look at what Debian does, and standardize in appropriate 
channels (probably PyPA).



## Reviving Python-SIG

The wiki page at https://fedoraproject.org/wiki/SIGs/Python is somewhat 
outdated, and it presents a rather confusing mix of information for 
various audiences.


Experience with portingdb has shown me that a bit of work with HTML and 
CSS can go a long way toward getting people interested, so let's do that 
for the SIG as well.

We can use the fedoralovespython.org domain.


## My other projects

These don't really fall either under Fedora's python-SIG (or Red Hat 
python-maint shared goals, for that matter). But I'll list them here for 
(my?) convenience:


- I'm working to port Samba to Python 3.
- I'm working on isolating CPython subinterpreters; low-level details 
here: https://github.com/encukou/peps/blob/module-state-access/pep-.txt


--
Petr Viktorin
___
python-devel mailing list
python-devel@lists.fedoraproject.org
https://lists.fedoraproject.org/admin/lists/python-devel@lists.fedoraproject.org


Re: Python Patch List

2016-08-09 Thread Petr Viktorin

On 08/08/2016 05:19 PM, Petr Viktorin wrote:

Hello,
We have a policy that patches for the same issue in the python and
python3 packages should share the same number. This informally extends
to EL and other derived distros, so the number of spec files to keep in
sync grows big.

To manage the patch numbers, Tomáš Orsava and a bunch of others have
been maintaining a list of relevant patches on the wiki:
https://fedoraproject.org/wiki/User:Torsava/PythonPatches

I'd like to make that more official by moving it to
[[SIGs/Python/PythonPatches]] and mentioning it in the spec files.

Let me know if you think it's not a good use of the SIG's namespace.



Moved to: https://fedoraproject.org/wiki/SIGs/Python/PythonPatches

Next time you get to edit a Python specfile, you can replace the comment 
after "(New patches go here ^^^)" with this:


# When adding new patches to "python" and "python3" in Fedora, EL, etc.,
# please try to keep the patch numbers in-sync between all specfiles.
#
# More information, and a patch number catalog, is at:
#
# https://fedoraproject.org/wiki/SIGs/Python/PythonPatches


--
Petr Viktorin
___
python-devel mailing list
python-devel@lists.fedoraproject.org
https://lists.fedoraproject.org/admin/lists/python-devel@lists.fedoraproject.org


Orphaning nsnake

2016-08-09 Thread William Moreno
Hello, due to lack of time I'm orphaning the package nsnake

Regards
William
___
python-devel mailing list
python-devel@lists.fedoraproject.org
https://lists.fedoraproject.org/admin/lists/python-devel@lists.fedoraproject.org