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

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 2021-11-03 10:50 +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>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | 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