Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #12179

Re: name change: python-lark-parser -> python-lark

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Thomas Andrejak <thomas.andrejak@gmail.com>
Newsgroups linux.debian.maint.python, linux.debian.bugs.dist
Subject Re: name change: python-lark-parser -> python-lark
Date Mon, 30 Dec 2019 22:20:02 +0100
Message-ID <zjasy-5S2-21@gated-at.bofh.it> (permalink)
References <zibAm-v5-1@gated-at.bofh.it> <yN8yJ-5G1-7@gated-at.bofh.it> <ziP4J-8km-9@gated-at.bofh.it> <zj5VT-31m-5@gated-at.bofh.it> <zj6Ih-3ww-5@gated-at.bofh.it>
X-Original-To Simon McVittie <smcv@debian.org>
X-Mailbox-Line From debian-python-request@lists.debian.org Mon Dec 30 21:15:30 2019
Old-Return-Path <thomas.andrejak@gmail.com>
X-Amavis-Spam-Status No, score=-5.099 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FOURLA=0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=2, LDO_WHITELIST=-5, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no autolearn_force=no
X-Policyd-Weight using cached result; rate: -5.5
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=W+OLhiD7jBinXxYz3hKlNEoZFBimWIq35TwHJRrlngU=; b=RdpKwAQOE7l6l6o9lEbBRFdqAbPxP5U8MOwN5So7KRHf4oXuj8E6OwRmEwhwaWGFQ2 jNunQMDbwSruzsy+jXgENJ8mDtQX3W+SCZqy1kkU1G2KH5EFFZRsJAuULytBH4MNkpUO qBoG9nYz7G7uzaDT/1bfVlqJn5LevirxfUz1DZ4p6FYqDa7X5D/sGjzZ+cnTEixSGkSH PqS2B0SFn5Us2+tFtpQDjV7xu5SwgwgtNXQZYm/FItU4HEHAswelLai3tGmRwxj9tRVm t6K0v+J1YE3u2gAeWtkm/0kxJI8+0KvV1NeWKeSepPs/IoUUxXM6xAf6O3ZBpPCsYXZB cQ/A==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=W+OLhiD7jBinXxYz3hKlNEoZFBimWIq35TwHJRrlngU=; b=QkX+puy3Eky01KF39m0k0bVkjRb1u8/xxDp+e+IcFMCZYPuZILIOTbAqseMcNbcwA7 St4LJ3P33x5cxfcTDlZVXJ9qfRcjT5YAk5l9zO1/Q9cYRKhtHeRCOLK0rwkdfhnjE0YS RePs466ABdUwKRgHrpXgFYYqxT8qIRZwauEK1QfaOcv3hgRcNU+GIamakRxQtj82EQUH lB7OMhZjry2Q4h2w7lpyLM0qIe/ZYDLaWbBZY4uO6jJ7lmJdKyjB8mXvMIb5/wvGxdEf h58F/6+zadnulSUnE0aRK9LMYAOH23c0HZn7UaibYVQ2RTk9rSysC+w8MJ3sqyxYgeNs ijCA==
X-Gm-Message-State APjAAAVufs+tiiIIfoUVGo26oqjDXf+B9m15bQUfGXzpFouPY+N3kx7P ZlPeKS1YzIwYO8anLfctqLTF+OyJ5QNAc66ncec=
X-Google-SMTP-Source APXvYqx6oXOvAR5E7u5gmagEj7HQJhOOmswXU5/WGkEv9lc9YRt53aRZazotDOEjFJe3131sDijW9bqh73B6sc6TTWo=
X-Received by 2002:a67:fc5a:: with SMTP id p26mr33651569vsq.71.1577739523269; Mon, 30 Dec 2019 12:58:43 -0800 (PST)
MIME-Version 1.0
Content-Type multipart/alternative; boundary="000000000000d52b2b059af21bd6"
X-Mailing-List <debian-python@lists.debian.org> archive/latest/17784
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/CABjmheMxNBiL_-5fGPrf53tgpnj3EQS4bQMggTUz5q0NY-jbzQ@mail.gmail.com
Approved robomod@news.nic.it
Lines 170
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Cc Peter Wienemann <fossdev@posteo.de>, debian-python@lists.debian.org, 941657@bugs.debian.org
X-Original-Date Mon, 30 Dec 2019 21:58:32 +0100
X-Original-Message-ID <CABjmheMxNBiL_-5fGPrf53tgpnj3EQS4bQMggTUz5q0NY-jbzQ@mail.gmail.com>
X-Original-References <c4e73c9d-6bec-9b6a-ecd1-468ec2b1a483@posteo.de> <157010587458.28402.9959108423212056872.reportbug@emil.localdomain> <CABjmheNQvOZ7nzndmu=-uP8LMg+c38TvKnT5bFNA5DCzg3ZX1w@mail.gmail.com> <bf44d793-79fa-c183-0e06-9a45fd585e2b@posteo.de> <20191230170451.GA453619@espresso.pseudorandom.co.uk>
Xref csiph.com linux.debian.maint.python:12179 linux.debian.bugs.dist:989214

Cross-posted to 2 groups.

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

Hello

I asked "why changing the name" because (OK, I'm the author of some, but
not all) :
- On Fedora/EPEL : it is lark-parser
https://src.fedoraproject.org/rpms/python-lark-parser
- On gentoo : it is lark-parser
https://github.com/gentoo/gentoo/tree/master/dev-python/lark-parser
- On Arch Linux : it is lark-parser
https://www.archlinux.org/packages/community/any/python-lark-parser/
- On OpenSuse : it is lark-parser
https://software.opensuse.org/package/python-lark-parser

After that, I understand all arguments. I let you choose the final name. In
the end, the most important is to be able to do "import lark" :)

Regards

Thomas

Le lun. 30 déc. 2019 à 21:43, Simon McVittie <smcv@debian.org> a écrit :

> On Mon, 30 Dec 2019 at 17:15:54 +0100, Peter Wienemann wrote:
> > https://bugs.debian.org/945823
> >
> > which says:
> >
> > "use the name you import in preference to the name from the PKG-INFO".
> >
> > That is why I decided to change the name to python-lark. But given the
> > PyPI name clash this is certainly not optimal either. So this seems to
> > be a particular unfortunate case.
>
> If there are two modules on PyPI, both of which you use via
> "import lark", then they cannot both be installed correctly into the
> system-wide module search path on the same Debian system - if they
> were, even if they happen to avoid having directly conflicting files
> (because one is /usr/lib/python3/dist-packages/lark.py and the other is
> /usr/lib/python3/dist-packages/lark/__init__.py, or similar), installing
> both and using "import lark" would not consistently import the one you
> intended to use, leading to broken programs.
>
> So the rule has served its purpose: it has detected a conflict that needs
> to be avoided somehow.
>
> For users of virtualenv there is perhaps no problem, because you can
> install the lark you wanted in a particular virtualenv and avoid installing
> the other lark, but Debian packages are a flat global namespace of modules.
>
> There are two options:
>
> * If "lark" on PyPI is a dead project, or otherwise something that is never
>   going to be useful to package in Debian for some reason, then perhaps
> it's
>   safe for the lark parser to claim the python3-lark name.
>
> * Otherwise, if its PyPI name is lark-parser, then I would personally
>   recommend asking the upstream developer to rename the module you import
>   to lark_parser (or maybe larkparser if that's preferred), and packaging
>   it as python3-lark-parser (or python3-larkparser), optionally with
>   compatibility glue to make "import lark" continue to work (which might
> not
>   get packaged in Debian).
>
> (I'm talking about binary package names python3-foo because those are the
> most important thing for avoiding conflicts, but if the binary package
> name is python3-foo then it probably makes most sense for the source
> package to be python-foo.)
>
>     smcv
>

Back to linux.debian.maint.python | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Re: name change: python-lark-parser -> python-lark Peter Wienemann <fossdev@posteo.de> - 2019-12-30 17:20 +0100
  Re: name change: python-lark-parser -> python-lark Simon McVittie <smcv@debian.org> - 2019-12-30 18:20 +0100
    Re: name change: python-lark-parser -> python-lark Peter Wienemann <fossdev@posteo.de> - 2019-12-30 20:30 +0100
    Re: name change: python-lark-parser -> python-lark Thomas Andrejak <thomas.andrejak@gmail.com> - 2019-12-30 22:20 +0100

csiph-web