Path: csiph.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!news.dns-netz.com!news.freedyn.net!aioe.org!bofh.it!news.nic.it!robomod From: "Michael R. Crusoe" Newsgroups: linux.debian.maint.python,linux.debian.bugs.dist Subject: Re: Python louvain packages naming confusion. Date: Wed, 10 Feb 2021 10:50:02 +0100 Message-ID: References: X-Mailbox-Line: From debian-python-request@lists.debian.org Wed Feb 10 09:45:19 2021 Old-Return-Path: X-Amavis-Spam-Status: No, score=-3.261 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, HTML_MESSAGE=2, LDO_WHITELIST=-5, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SARE_LWSHORTT=1.24] autolearn=no autolearn_force=no X-Policyd-Weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .gmail. - helo: .mail-ua1-f53.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -5.5 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=4ogIv+0OJ47iCVJq1TQ5k6uj0qGbQUKw1GFIv59cXIA=; b=Nl22GouT39+jxNwbgL2Wr9kCC/3DEtp1t48lRvHBbPlR4/J+dlvIG71Lp60oDwzovE R0AshtZvKP6RTxVoEv+lVKayuoLpQ/nDc+bBjoS5doleMhXcZxNUFw9sr0WDCU535t+9 RTuFTt4qSU+kiCzxD9essRQD2Rln5tvHR+mDZIPsOKamo7thd0Ja3D8Ti4oyEuYzOBhw Sqja+5gvHsy/nXUgXJmRFkfjwyWhvhMvyB2OQqCGY+/39Egmv4X6r4kBK1sayHovRxT5 ZXnU2bEYOQZLlM6pCddSa4kMO8X2uRaHWP/eQdf8Cr1uJtxi6NWhwMDLEad5o6b3ghra uEvA== X-Gm-Message-State: AOAM530rOGMAxO1zQaM9Zqk6FUrZfajjUqdh7enzlbatNoFcKJX/Qp1K LpqrjBe7fk95AA+YTrvaB0LbiO1ku0RKTQ== X-Google-SMTP-Source: ABdhPJxvN9728IbeKJSE+35Qf3rjPYaLnLyDlUf1pko88mSo5DlNs1nwrHtZhAgd79JIfrNBxCXmyA== X-Received: by 2002:ab0:6e91:: with SMTP id b17mr1165029uav.50.1612949391277; Wed, 10 Feb 2021 01:29:51 -0800 (PST) X-Received: by 2002:ab0:4244:: with SMTP id i62mr1080244uai.37.1612949383336; Wed, 10 Feb 2021 01:29:43 -0800 (PST) MIME-Version: 1.0 X-Gmail-Original-Message-ID: Content-Type: multipart/alternative; boundary="00000000000008defe05baf80bb8" X-Mailing-List: archive/latest/18967 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/CAD=Wrc+9S6Ev4q4QorcWR-UVMtrhe8jwiwGVoR89e0wb9OKMBw@mail.gmail.com Approved: robomod@news.nic.it Lines: 91 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: Debian Python , Debian Med Project List , 982417@bugs.debian.org X-Original-Date: Wed, 10 Feb 2021 10:29:31 +0100 X-Original-Message-ID: X-Original-References: Xref: csiph.com linux.debian.maint.python:13185 linux.debian.bugs.dist:1047423 --00000000000008defe05baf80bb8 Content-Type: text/plain; charset="UTF-8" On Tue, 9 Feb 2021 at 23:53, Diane Trout wrote: > Hello, > > The fairly popular (in the world of bioinformatics) ScanPy package uses > a Python version of the louvain clustering algorithm implemented by: > > https://github.com/vtraag/louvain-igraph > https://pypi.org/project/louvain/ > > which installs into the "louvain" dist-packages directory. > (from debc) > ./usr/lib/python3/dist-packages/louvain/ > > I have it mostly packaged > > However currently in the Debian archive there's a different louvain > package > > https://github.com/taynaud/python-louvain > https://pypi.org/project/python-louvain/ > https://salsa.debian.org/python-team/packages/python-louvain > > It installs into (according to debc) > ./usr/lib/python3/dist-packages/community/ > > Unfortunately for this package we now automatically run autodep8 which > fails because the import name is community and not louvain. > In the short term I recommend fixing this by adding a file to the Debian python-louvain package named "debian/tests/autopkgtest-pkg-python.conf" with the contents "import_name = community" -- Michael R. Crusoe --00000000000008defe05baf80bb8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Tue, 9 Feb 2021 at 23:53, Diane Tr= out <diane@ghic.org> wrote:
=
Hello,

The fairly popular (in the world of bioinformatics) ScanPy package uses
a Python version of the louvain clustering algorithm implemented by:

https://github.com/vtraag/louvain-igraph
https://pypi.org/project/louvain/

which installs into the "louvain" dist-packages directory.
(from debc)
./usr/lib/python3/dist-packages/louvain/

I have it mostly packaged

However currently in the Debian archive there's a different louvain
package

https://github.com/taynaud/python-louvain
https://pypi.org/project/python-louvain/
https://salsa.debian.org/python-team/pac= kages/python-louvain

It installs into (according to debc)
./usr/lib/python3/dist-packages/community/

Unfortunately for this package we now automatically run autodep8 which
fails because the import name is community and not louvain.

In the short term I recommend fixing= this by adding a file to the Debian python-louvain package named "deb= ian/tests/autopkgtest-pkg-python.conf" with the contents "import_= name =3D community"


--
Michael R. Crusoe
--00000000000008defe05baf80bb8--