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


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

Re: package_data in python package

Path csiph.com!4.us.feeder.erje.net!feeder.erje.net!goblin1!goblin2!goblin.stu.neva.ru!aioe.org!bofh.it!news.nic.it!robomod
From Scott Kitterman <debian@kitterman.com>
Newsgroups linux.debian.maint.python
Subject Re: package_data in python package
Date Mon, 28 Oct 2019 15:50:01 +0100
Message-ID <yWevf-2Wb-5@gated-at.bofh.it> (permalink)
References <yWelz-2Sv-7@gated-at.bofh.it>
X-Original-To debian-python@lists.debian.org
X-Mailbox-Line From debian-python-request@lists.debian.org Mon Oct 28 14:44:41 2019
Old-Return-Path <debian@kitterman.com>
X-Amavis-Spam-Status No, score=-7.08 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, LDO_WHITELIST=-5, MURPHY_DRUGS_REL8=0.02] autolearn=ham autolearn_force=no
X-Policyd-Weight using cached result; rate:hard: -5.5
Dkim-Signature v=1; a=ed25519-sha256; c=relaxed/simple; d=kitterman.com; i=@kitterman.com; q=dns/txt; s=201903e; t=1572273865; h=from : to : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type : from; bh=kAgWZ1J3chi+jatXC/CJzj/iOg9qHQBzSuU++65i10U=; b=uULlCMeWNBmAgvHkEVN22qGnY54kGOeymyb3nMFf1MwBKl5/EgAjNVvh IGdvthWSVbvHqJ+ULcxbXbdHVHn4AQ==
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/simple; d=kitterman.com; i=@kitterman.com; q=dns/txt; s=201903r; t=1572273865; h=from : to : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type : from; bh=kAgWZ1J3chi+jatXC/CJzj/iOg9qHQBzSuU++65i10U=; b=S1lhBAia8s1EX0Sr2i+8jIckIkaOlaFP9QMBLBeIdAjogzY2hHARavKv xc2xVXoEOYJ/38BQMqZvBGE0+2kjXPMj51eh5cqMC8MEzJ27eOp/S+1m3c 37LdPhJxHd5gpudjhbKJ1/d3ecTcEYleuJ4J5Znr7uZsQ1BjZMyHGtk1WZ vKlY7Z9FfRcADz8pFIuIz0J59Z6LTABGOHSH5Bm+cfjRRXnENLaV/7ERul y6BwhHyaW3zSvgOF6YKNUoUr7a7aStGFMh0tOIpjRR6im9M8kbtwCUuyuE m0P6M3WzpRZAlGYz+2ZOv4Ymtz07/WWIsxzVaLjIbB8YiugFCqU1fQ==
MIME-Version 1.0
Content-Transfer-Encoding quoted-printable
Content-Type text/plain; charset="iso-8859-1"
X-Mailing-List <debian-python@lists.debian.org> archive/latest/17520
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/2505510.ydTWeorpcb@l5580
Approved robomod@news.nic.it
Lines 30
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Mon, 28 Oct 2019 10:44:25 -0400
X-Original-Message-ID <2505510.ydTWeorpcb@l5580>
X-Original-References <20191028142544.zlzgobcvpm3yzbvt@capeo.gueux.org>
Xref csiph.com linux.debian.maint.python:11959

Show key headers only | View raw


On Monday, October 28, 2019 10:25:44 AM EDT Félix Sipma wrote:
> Hi,
> 
> I have a problem with package_data files in a package ("khard", which is
> not currently under the debian-python umbrella but it is on my todo list
> to transfer it, I just didn't find the time yet) not getting installed.
> 
> I submitted an error upstream,
> https://github.com/scheibler/khard/issues/231 but they can't reproduce
> the problem.
> 
> I "fixed" the issue by adding a patch to add "khard/data/" to
> MANIFEST.in (with "recursive-include khard/data/ *"), but I don't get
> why this directory doesn't get installed by default... Is it because of
> a limitation of dh-python? Have I forgot an option somewhere?
> 
> Link to the patch and the source of the package:
> https://sources.debian.org/src/khard/0.15.0-2/debian/patches/0003-add-khard-> data-dir-to-MANIFEST.in.patch/
> 
> Thanks for your help!

It's the way setuptools works.  Looking at the current upstream 
recommendations:

https://python-packaging.readthedocs.io/en/latest/non-code-files.html

your solution seems correct.

Scott K

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


Thread

package_data in python package Félix Sipma <felix+debian@gueux.org> - 2019-10-28 15:40 +0100
  Re: package_data in python package Scott Kitterman <debian@kitterman.com> - 2019-10-28 15:50 +0100
    Re: package_data in python package Félix Sipma <felix+debian@gueux.org> - 2019-10-28 16:10 +0100
      Re: package_data in python package Scott Kitterman <debian@kitterman.com> - 2019-10-28 16:20 +0100
        Re: package_data in python package Félix Sipma <felix+debian@gueux.org> - 2019-10-28 16:30 +0100
          Re: package_data in python package Ole Streicher <olebole@debian.org> - 2019-10-28 17:20 +0100

csiph-web