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


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

Re: Bug#997772: python-cogent: FTBFS: You must configure the bibtex_bibfiles setting

Path csiph.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!bofh.it!news.nic.it!robomod
From Stuart Prescott <stuart@debian.org>
Newsgroups linux.debian.maint.python, linux.debian.bugs.dist
Subject Re: Bug#997772: python-cogent: FTBFS: You must configure the bibtex_bibfiles setting
Date Wed, 03 Nov 2021 10:50:01 +0100
Message-ID <Dfl45-63b-3@gated-at.bofh.it> (permalink)
References <DbKXf-1mk-135@gated-at.bofh.it> <DfaLo-7V2-3@gated-at.bofh.it> <Dfjvj-5cJ-3@gated-at.bofh.it>
X-Mailbox-Line From debian-python-request@lists.debian.org Wed Nov 3 09:49:27 2021
Old-Return-Path <stuart@nanonanonano.net>
X-Amavis-Spam-Status No, score=-4.631 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FOURLA=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, LDO_WHITELIST=-5, MEDS2=2, MURPHY_DRUGS_REL8=0.02, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no autolearn_force=no
X-Policyd-Weight NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .nanonanonano. - helo: .mail-pj1-x102a.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -5.5
X-Gm-Message-State AOAM532Qj170nS43bW9J4M9jCofitkJa6iuyc16jzrVVZlh3amxNXdvX DHGlXKs6ksLdRJmRHmWYg4kOTKinPhPkkA==
X-Google-SMTP-Source ABdhPJy+FtunqymNS0etMJGdESF+dOtmwkqwaASPa+2XlsJ1OwrNapJnujDLoDihFcTOpFQY3iok9Q==
X-Received by 2002:a17:90a:6e41:: with SMTP id s1mr11986554pjm.166.1635932951948; Wed, 03 Nov 2021 02:49:11 -0700 (PDT)
Sender robomod@news.nic.it
MIME-Version 1.0
Content-Transfer-Encoding 7Bit
Content-Type text/plain; charset="utf-8"
X-Mailing-List <debian-python@lists.debian.org> archive/latest/19481
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/3448888.lHj4t04NDQ@simurgh
Approved robomod@news.nic.it
Lines 42
Organization linux.* mail to news gateway
X-Original-Cc 997772@bugs.debian.org, Andreas Tille <tille@debian.org>
X-Original-Date Wed, 03 Nov 2021 20:49:07 +1100
X-Original-Message-ID <3448888.lHj4t04NDQ@simurgh>
X-Original-References <YXVKM2aSga5N6uUa@xanadu.blop.info> <8660337.iU4S45gUHK@simurgh> <YYJBhW5GjH61wUhU@an3as.eu>
X-Original-Sender Stuart Prescott <stuart@nanonanonano.net>
Xref csiph.com linux.debian.maint.python:13679 linux.debian.bugs.dist:1079261

Cross-posted to 2 groups.

Show key headers only | View raw


Hi Andreas

On Wednesday, 3 November 2021 19:00:05 AEDT Andreas Tille wrote:
[...]
>   File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 182, in
> write_pkg_file license = rfc822_escape(self.get_license())
>   File "/usr/lib/python3.9/distutils/util.py", line 476, in rfc822_escape
>     lines = header.split('\n')
> AttributeError: 'list' object has no attribute 'split'

looking at setup.py, it has

    license=["BSD"],

https://salsa.debian.org/med-team/python-cogent/-/blob/master/setup.py#L62 

while the documentation for the setup() function indicates that licence should 
be a string. That would certainly be consistent with the exception that is 
raised with the output of get_license().

https://packaging.python.org/guides/distributing-packages-using-setuptools/
#license

I've not checked that this is indeed the problem, but patching setup.py to 
have instead

    license="BSD",

would be the next thing I'd try.

Incidentally, I see that upstream for cogent has ripped out setup.py entirely 
and now has a flit based build system which will require a few changes to the 
packaging in the future.

cheers
Stuart


-- 
Stuart Prescott    http://www.nanonanonano.net/   stuart@nanonanonano.net
Debian Developer   http://www.debian.org/         stuart@debian.org
GPG fingerprint    90E2 D2C1 AD14 6A1B 7EBB 891D BBC1 7EBB 1396 F2F7

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


Thread

Re: Bug#997772: python-cogent: FTBFS: You must configure the bibtex_bibfiles setting Stuart Prescott <stuart@debian.org> - 2021-11-03 10:50 +0100

csiph-web