[packages/python-nbformat] - added use_setuptools patch: force use of setuptools to autogenerate pythonegg dependencies - enabl

qboosh qboosh at pld-linux.org
Tue Oct 1 05:36:09 CEST 2019


commit c21ec74803dac769e8364babc887da64289ef8ee
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Oct 1 05:39:18 2019 +0200

    - added use_setuptools patch: force use of setuptools to autogenerate pythonegg dependencies
    - enable tests by default

 python-nbformat-use_setuptools.patch | 11 +++++++++++
 python-nbformat.spec                 |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/python-nbformat.spec b/python-nbformat.spec
index ea4c648..f045ff8 100644
--- a/python-nbformat.spec
+++ b/python-nbformat.spec
@@ -1,7 +1,7 @@
 #
 # Conditional build:
 %bcond_without	doc	# Sphinx documentation
-%bcond_with	tests	# unit tests (waiting for fulfilling dependencies in PLD)
+%bcond_without	tests	# unit tests
 %bcond_without	python2 # CPython 2.x module
 %bcond_without	python3 # CPython 3.x module
 
@@ -15,6 +15,7 @@ Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/nbformat/
 Source0:	https://files.pythonhosted.org/packages/source/n/nbformat/nbformat-%{version}.tar.gz
 # Source0-md5:	2d5f873138d9fbc2a3f9eaaebca3b8a1
+Patch0:		%{name}-use_setuptools.patch
 URL:		https://pypi.org/project/nbformat/
 %if %{with python2}
 BuildRequires:	python-modules >= 1:2.7
@@ -88,6 +89,7 @@ Dokumentacja API modułu Pythona nbformat.
 
 %prep
 %setup -q -n nbformat-%{version}
+%patch0 -p1
 
 %build
 %if %{with python2}
diff --git a/python-nbformat-use_setuptools.patch b/python-nbformat-use_setuptools.patch
new file mode 100644
index 0000000..3f21fe7
--- /dev/null
+++ b/python-nbformat-use_setuptools.patch
@@ -0,0 +1,11 @@
+--- nbformat-4.4.0/setup.py.orig	2017-06-06 18:55:25.000000000 +0200
++++ nbformat-4.4.0/setup.py	2019-10-01 05:33:40.480776705 +0200
+@@ -83,7 +83,7 @@
+     ],
+ )
+ 
+-if 'develop' in sys.argv or any(a.startswith('bdist') for a in sys.argv):
++if True:
+     import setuptools
+ 
+ setuptools_args = {}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-nbformat.git/commitdiff/c21ec74803dac769e8364babc887da64289ef8ee



More information about the pld-cvs-commit mailing list