From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/nbformat/, dev-python/nbformat/files/
Date: Fri, 22 Jan 2021 09:55:53 +0000 (UTC) [thread overview]
Message-ID: <1611309346.a97111edf2940ad7d52b113afb79a69ed69dfdaa.mgorny@gentoo> (raw)
commit: a97111edf2940ad7d52b113afb79a69ed69dfdaa
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 22 09:34:37 2021 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Jan 22 09:55:46 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a97111ed
dev-python/nbformat: Fix installing package data
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
.../files/nbformat-5.1.2-package-data.patch | 50 ++++++++++++++++++++++
...ormat-5.1.2.ebuild => nbformat-5.1.2-r1.ebuild} | 6 ++-
2 files changed, 55 insertions(+), 1 deletion(-)
diff --git a/dev-python/nbformat/files/nbformat-5.1.2-package-data.patch b/dev-python/nbformat/files/nbformat-5.1.2-package-data.patch
new file mode 100644
index 00000000000..4fd1de2a942
--- /dev/null
+++ b/dev-python/nbformat/files/nbformat-5.1.2-package-data.patch
@@ -0,0 +1,50 @@
+From 6dc17e79be58c3cce66256eec2a565692cf95809 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
+Date: Fri, 22 Jan 2021 10:16:24 +0100
+Subject: [PATCH] Fix installing package_data when --build-base is set
+
+Fix package_data declarations in setup.py to associate every set
+of files with its bottommost package. This is necessary for the 'build'
+command to install files correctly when --build-base is passed
+explicitly. The all-files-for-top-package approach seems to work only
+incidentally.
+
+To reproduce the problem, try:
+
+ setup.py build --build-base=build2
+
+and note that none of the data files were installed.
+---
+ setup.py | 16 +++++++++++-----
+ 1 file changed, 11 insertions(+), 5 deletions(-)
+
+diff --git a/setup.py b/setup.py
+index 22305d3..0a6aa45 100644
+--- a/setup.py
++++ b/setup.py
+@@ -34,11 +34,17 @@ for d, _, _ in os.walk(pjoin(here, name)):
+ packages.append(d[len(here)+1:].replace(os.path.sep, '.'))
+
+ package_data = {
+- 'nbformat' : [
+- 'corpus/*.txt'
+- 'tests/*.ipynb',
+- 'v3/nbformat.v3*.schema.json',
+- 'v4/nbformat.v4*.schema.json',
++ 'nbformat.corpus' : [
++ '*.txt',
++ ],
++ 'nbformat.tests' : [
++ '*.ipynb',
++ ],
++ 'nbformat.v3' : [
++ 'nbformat.v3*.schema.json',
++ ],
++ 'nbformat.v4' : [
++ 'nbformat.v4*.schema.json',
+ ],
+ }
+
+--
+2.30.0
+
diff --git a/dev-python/nbformat/nbformat-5.1.2.ebuild b/dev-python/nbformat/nbformat-5.1.2-r1.ebuild
similarity index 92%
rename from dev-python/nbformat/nbformat-5.1.2.ebuild
rename to dev-python/nbformat/nbformat-5.1.2-r1.ebuild
index 6991991c0a6..2444649ad3e 100644
--- a/dev-python/nbformat/nbformat-5.1.2.ebuild
+++ b/dev-python/nbformat/nbformat-5.1.2-r1.ebuild
@@ -26,13 +26,17 @@ RDEPEND="
>=dev-python/traitlets-4.1[${PYTHON_USEDEP}]
dev-python/jupyter_core[${PYTHON_USEDEP}]
"
-DEPEND="
+BDEPEND="
test? (
dev-python/fastjsonschema[${PYTHON_USEDEP}]
dev-python/testpath[${PYTHON_USEDEP}]
)
"
+PATCHES=(
+ "${FILESDIR}"/nbformat-5.1.2-package-data.patch
+)
+
distutils_enable_sphinx docs \
dev-python/numpydoc
distutils_enable_tests pytest
next reply other threads:[~2021-01-22 9:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-22 9:55 Michał Górny [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-12-20 20:03 [gentoo-commits] repo/gentoo:master commit in: dev-python/nbformat/, dev-python/nbformat/files/ Andrew Ammerlaan
2024-10-30 15:19 Michał Górny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1611309346.a97111edf2940ad7d52b113afb79a69ed69dfdaa.mgorny@gentoo \
--to=mgorny@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox