Path: csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod From: "Rebecca N. Palmer" Newsgroups: linux.debian.maint.python Subject: Documentation path and Python 2->3 Date: Thu, 18 Jul 2019 09:40:01 +0200 Message-ID: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Thu Jul 18 07:33:08 2019 Old-Return-Path: X-Amavis-Spam-Status: No, score=-7.199 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, FREEMAIL_FROM=0.001, LDO_WHITELIST=-5, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -5.5 Arc-Seal: i=1; a=rsa-sha256; t=1563434198; cv=none; d=zoho.com; s=zohoarc; b=LXZNpqIgzyKV/FKXxxIdg96ntUXxiiySgkjlfRTLSNqNnp24nFmbycFT6ksqGZ1CpVGlc6jTVj6xbBVHF0c8nFkAFDSeMx0vJAeVerIAo8s1jHY4cevAzVpENY41IpBVe7pFI/sycqtYbRps12qSccTKTrWipbydnNf4udRZW/M= Arc-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1563434198; h=Content-Type:Content-Transfer-Encoding:Date:From:MIME-Version:Message-ID:Subject:To:ARC-Authentication-Results; bh=+PCRW0R3RrkFCHahZdmC+WLI6Ov+CJR7Pxhk0BpfcDo=; b=L8knn0AqhfyIijEoMpxwG187D2JhpeKC+Vx2MtoQQjyR8BUM6HhChYjR+MLS9WQ2+RAX7WP6b0nTnLf6N46nU5qnyaQ5TD2FXb79DH0zC+7f0f3WHUWaZM67d2kAl0sX2FJVe2yDUDrsUirNA5l/3vwFeeXKJvlgHz27erVC0+w= Arc-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=zoho.com; spf=pass smtp.mailfrom=rebecca_palmer@zoho.com; dmarc=pass header.from= header.from= Domainkey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=to:from:subject:message-id:date:user-agent:mime-version:content-type; b=NSFl9EXejBWAH8d3i/68nZXZHfhXD4zR53mRXb667omqLJQGHg/5lfa3r2TwwpHcE8k4qxKb+wqX pWrJP+V1GMElDhC3eupQth25YGtQYhNGVakHkjrFGjndSHSNx3or Dkim-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1563434198; s=zm2019; d=zoho.com; i=rebecca_palmer@zoho.com; h=To:From:Subject:Message-ID:Date:MIME-Version:Content-Type:Content-Transfer-Encoding; l=1919; bh=+PCRW0R3RrkFCHahZdmC+WLI6Ov+CJR7Pxhk0BpfcDo=; b=LWxe2UbaDlNcTLRszevsLsNeUec3pWgITFkm2A1V6+LRWQG1WgLE7ErN97+BynZd nLKqNCJutxtA3mXJxdGaXwqZKa1hWL1hEutbXU6TG432ubYel4NOSR7D8daoGRT38Yd g0+iKURVp1U/Hxq/xwTnqd6biaUKv+rxzTSMcBEo= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Zohomailclient: External X-Mailing-List: archive/latest/16981 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/357e8ec7-4c69-e797-b38a-2850d7b61d16@zoho.com Approved: robomod@news.nic.it Lines: 38 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Thu, 18 Jul 2019 08:16:29 +0100 X-Original-Message-ID: <357e8ec7-4c69-e797-b38a-2850d7b61d16@zoho.com> Xref: csiph.com linux.debian.maint.python:11486 (Sorry if this has been discussed before: it's not obvious how to search for it) Policy 12.3 [0] states that documentation for $package should preferably be packaged as $package-doc but still install to /usr/share/doc/$package not /usr/share/doc/$package-doc. By default, debhelper implements this as "if $package (or $package-dev) exists in the same source, install $package-doc to /usr/share/doc/$package(-dev), otherwise install it to /usr/share/doc/$package-doc" [1]. For Python packages, this means that python-$module-doc moves from /usr/share/doc/python-$module to /usr/share/doc/python-$module-doc when the Python 2 $module ceases to exist [2]. This may break links (doc-base [3], users' local bookmarks, etc). Should it instead move to /usr/share/doc/python3-$module? (And if so, should the -doc package be renamed to python3-$module-doc? though that implies a large[4] amount of binary-NEW processing...) Or stay in /usr/share/doc/python-$module to not break links? Should there be symlinks to the documentation in whichever of /usr/share/doc/python3-$module, /usr/share/doc/python-$module-doc and (if it exists) /usr/share/doc/python-$module don't contain the actual documentation? This was suggested for the general /usr/share/doc/$package-doc to /usr/share/doc/$package case in the original Policy discussion [5], but didn't make into actual Policy. [0] https://www.debian.org/doc/debian-policy/ch-docs.html#additional-documentation [1] https://sources.debian.org/src/debhelper/12.2.2/lib/Debian/Debhelper/Dh_Lib.pm/#L2664 [2] e.g. https://packages.debian.org/buster/all/python-django-doc/filelist -> https://packages.debian.org/sid/all/python-django-doc/filelist [3] https://bugs.debian.org/931652 [4] there are currently 661 python-$module-doc (and 19 python3-$module-doc, which appear to be new packages rather than renames) [5] https://bugs.debian.org/106073