[packages/python3-nbformat] - updated python-nbformat to 5.0.5, now python 3.5+ only
qboosh
qboosh at pld-linux.org
Tue Apr 14 20:25:39 CEST 2020
commit 99e5f7afff9dc29861376c662924ef28e4d9c84a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Apr 14 20:25:37 2020 +0200
- updated python-nbformat to 5.0.5, now python 3.5+ only
python3-nbformat-use_setuptools.patch | 11 ++++
python3-nbformat.spec | 101 ++++++++++++++++++++++++++++++++++
2 files changed, 112 insertions(+)
---
diff --git a/python3-nbformat.spec b/python3-nbformat.spec
new file mode 100644
index 0000000..65e940a
--- /dev/null
+++ b/python3-nbformat.spec
@@ -0,0 +1,101 @@
+#
+# Conditional build:
+%bcond_without doc # Sphinx documentation
+%bcond_without tests # unit tests
+
+Summary: The Jupyter Notebook Format
+Summary(pl.UTF-8): Format Jupyter Notebook
+Name: python3-nbformat
+Version: 5.0.5
+Release: 1
+License: BSD
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/nbformat/
+Source0: https://files.pythonhosted.org/packages/source/n/nbformat/nbformat-%{version}.tar.gz
+# Source0-md5: b519838bfe4765cda1885936db4a2bea
+Patch0: %{name}-use_setuptools.patch
+URL: https://pypi.org/project/nbformat/
+BuildRequires: python3-modules >= 1:3.5
+BuildRequires: python3-setuptools
+%if %{with tests}
+BuildRequires: python3-ipython_genutils
+BuildRequires: python3-jsonschema >= 2.5.1
+BuildRequires: python3-jupyter_core
+BuildRequires: python3-pytest
+BuildRequires: python3-pytest-cov
+BuildRequires: python3-testpath
+BuildRequires: python3-traitlets >= 4.1
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+%if %{with doc}
+BuildRequires: sphinx-pdg-3
+BuildRequires: python3-ipython_genutils
+BuildRequires: python3-jsonschema >= 2.5.1
+BuildRequires: python3-jupyter_core
+BuildRequires: python3-traitlets
+%endif
+Requires: python3-modules >= 1:3.5
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+nbformat contains the reference implementation of the Jupyter Notebook
+format and Python APIs for working with notebooks.
+
+%description -l pl.UTF-8
+nbformat zawiera wzorcową implementację formatu Jupyter Notebook oraz
+API Pythona do pracy z takimi notatnikami.
+
+%package apidocs
+Summary: API documentation for Python nbformat module
+Summary(pl.UTF-8): Dokumentacja API modułu Pythona nbformat
+Group: Documentation
+
+%description apidocs
+API documentation for Python nbformat module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona nbformat.
+
+%prep
+%setup -q -n nbformat-%{version}
+%patch0 -p1
+
+%build
+%py3_build
+
+%if %{with tests}
+%{__python3} -m pytest nbformat/tests
+%endif
+
+%if %{with doc}
+PYTHONPATH=$(pwd) \
+%{__make} -C docs html \
+ SPHINXBUILD=sphinx-build-3
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%{__mv} $RPM_BUILD_ROOT%{_bindir}/jupyter-trust{,-3}
+ln -s jupyter-trust-3 $RPM_BUILD_ROOT%{_bindir}/jupyter-trust
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc COPYING.md README.md
+%attr(755,root,root) %{_bindir}/jupyter-trust
+%attr(755,root,root) %{_bindir}/jupyter-trust-3
+%{py3_sitescriptdir}/nbformat
+%{py3_sitescriptdir}/nbformat-%{version}-py*.egg-info
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/_build/html/{_static,*.html,*.js}
+%endif
diff --git a/python3-nbformat-use_setuptools.patch b/python3-nbformat-use_setuptools.patch
new file mode 100644
index 0000000..3f21fe7
--- /dev/null
+++ b/python3-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/python3-nbformat.git/commitdiff/99e5f7afff9dc29861376c662924ef28e4d9c84a
More information about the pld-cvs-commit
mailing list