Re: [gentoo-dev] New Python application with multiple new dependencies

2019-04-14 Thread Ralph Seichter
* Mike Gilbert:

> Speaking on behalf of the python team, we are not particularly keen on
> maintaining libraries that are only used by a single package. We have
> too many packages to care for already.

I agree. I know about the various risks of dynamically installing
dependencies, but "pip install X" in virtual environments is very useful
nonetheless. Gentoo does not offer an equivalent (I'm not judging, just
saying), and it seems to me that is causing the Python team a large
amount of work, eating up resources that could be spent elsewhere.

> Not everything needs to be handled in an ebuild; often it just
> increases the amount of busy work you end up doing.

Ebuilds are great when an application needs config files, init scripts,
users/groups, and when app A connects to app B (for example, if there is
a milter there will also be an MTA calling it).

Two of the milters I am using happen to be written in Python. One
requires pymilter, so I created a PR introducing a pymilter ebuild. I'd
rather avoid that ebuild, because pymilter is an interface to libmilter
and of little use of its own, but other apps depend on it.

-Ralph



Re: [gentoo-dev] New Python application with multiple new dependencies

2019-04-14 Thread Mike Gilbert
On Sun, Apr 14, 2019 at 8:44 AM Ralph Seichter  wrote:
>
> * Michał Górny:
>
> > I presume you want to proxy-maintain all of those packages.
>
> I would want to maintain the "monty" application because it offers
> functionality useful to me. I'm not particularly keen on maintaining
> Python ebuilds required as dependencies by only one application.

Speaking on behalf of the python team, we are not particularly keen on
maintaining libraries that are only used by a single package. We have
too many packages to care for already.

> Like everybody else, I have only a finite amount of time I can spend on
> Gentoo packages. I usually start with a separate venv for Python apps so
> I can "pip install ..." and make do without ebuilds.

This is actually the approach I would suggest for most applications.
Not everything needs to be handled in an ebuild; often it just
increases the amount of busy work you end up doing.



Re: [gentoo-dev] New Python application with multiple new dependencies

2019-04-14 Thread Ralph Seichter
* Michał Górny:

> I presume you want to proxy-maintain all of those packages.

I would want to maintain the "monty" application because it offers
functionality useful to me. I'm not particularly keen on maintaining
Python ebuilds required as dependencies by only one application.

Like everybody else, I have only a finite amount of time I can spend on
Gentoo packages. I usually start with a separate venv for Python apps so
I can "pip install ..." and make do without ebuilds.

-Ralph

P.S.: Thanks to you and Brian for your answers.



Re: [gentoo-dev] New Python application with multiple new dependencies

2019-04-13 Thread Brian Dolbec
On Sat, 13 Apr 2019 23:03:53 +0200
Michał Górny  wrote:

> On Sat, 2019-04-13 at 22:27 +0200, Ralph Seichter wrote:
> > Hi folks,
> > 
> > imagine a Python application "monty" with the following requirements
> > listed in setup.py:
> > 
> >   install_requires=[  
> > 'ham>=1.0',
> > 'spam>=2.0',
> > 'eggs>=1.5'  
> >   ]
> > 
> > If I want to add "monty" as a new Gentoo package, and if none of
> > "ham", "spam" and "eggs" are so far available as Gentoo packages,
> > what is the recommended way of handling this situation?  
> 
> I presume you want to proxy-maintain all of those packages.
> 
> > 
> > 1. Create one pull request that contains separate commits for adding
> > each of the four Python packages?  
> 
> This one.  We generally find it easier when we see the big picture
> in one place.
> 
> By the way, there's gentoo-proxy-maint@ ml for this kind of questions.
> 


Also, it is best to state that these new pkgs are a depencency of
"monty" in their commit messages.  It can be clearer as to why these
are in the tree if "monty" drops them as a dependency later and there
are no other reverse deps for them in the tree.

ie: app-foo/ham: New pkg, depencency of app-foo/monty-1.2.3



Re: [gentoo-dev] New Python application with multiple new dependencies

2019-04-13 Thread Michał Górny
On Sat, 2019-04-13 at 22:27 +0200, Ralph Seichter wrote:
> Hi folks,
> 
> imagine a Python application "monty" with the following requirements
> listed in setup.py:
> 
>   install_requires=[
> 'ham>=1.0',
> 'spam>=2.0',
> 'eggs>=1.5'
>   ]
> 
> If I want to add "monty" as a new Gentoo package, and if none of "ham",
> "spam" and "eggs" are so far available as Gentoo packages, what is the
> recommended way of handling this situation?

I presume you want to proxy-maintain all of those packages.

> 
> 1. Create one pull request that contains separate commits for adding
> each of the four Python packages?

This one.  We generally find it easier when we see the big picture
in one place.

By the way, there's gentoo-proxy-maint@ ml for this kind of questions.

-- 
Best regards,
Michał Górny



signature.asc
Description: This is a digitally signed message part