[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opensuse-packaging
Subject:    Re: [opensuse-packaging] Re: Python packages naming rules
From:       Thomas Bechtold <tbechtold () suse ! com>
Date:       2017-08-18 14:41:09
Message-ID: 266611d9-08e6-e3a8-a3ea-631ed03130f6 () suse ! com
[Download RAW message or body]

Hi,

On 18.08.2017 15:34, jan matejek wrote:
> hello,
> 
> On 18.8.2017 10:07, Sebastian wrote:
>> First there are the generic naming guidelines which say that the dash
>> '-' must not be used "as the delimiter for name parts".[2]
> 
> ISTM you misread the part of the wiki, it says quite the opposite: you should use "-" (dash), you
> should NOT use other separators (such as "_", "+" and ".")
> 
>> Then there is the more specific naming policy for python packages which
>> says the package must be called "python-$pypiname". It does not mention
>> any exceptions (at least I haven't found any). In the above example the
>> pypi's name is "gogs-client" and results in
> 
> The issue with your request is the discrepancy in the package's PyPI identifier. Upstream seems to
> think the name should be "gogs_client", but uploaded as "gogs-client", except the filename is still
> "gogs_client".
> 
> Upstream sometimes does that, and PyPI does nothing to stop them.
> Such is the world we live in.
> 
> As I wrote on the request, "_" and "-" are treated the same by PyPI ecosystem. "pip install
> gogs-client" and "pip install gogs_client" are identical. So IMHO using "python-gogs-client" as the
> package name is equally correct as "python-gogs_client".

There is a difference if we translate pip requirements (eg via 
metaextract[1]) to rpm requires (assuming that other pip packages use 
the correct name). The name we should use is then one that is written in 
the setup.py/setup.cfg file. Which is "gogs_client". So the correct name 
is imo python-gogs_client .

Best,

Tom

[1] https://pypi.python.org/pypi/metaextract

> 
> m.
> 
-- 
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org
To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic