diff --git a/nbclient-0.7.0.tar.gz b/nbclient-0.7.0.tar.gz new file mode 100644 index 0000000..9ec3f09 --- /dev/null +++ b/nbclient-0.7.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a1d844efd6da9bc39d2209bf996dbd8e07bf0f36b796edfabaa8f8a9ab77c3aa +size 79032 diff --git a/nbclient-0.7.2.tar.gz b/nbclient-0.7.2.tar.gz deleted file mode 100644 index 01382a3..0000000 --- a/nbclient-0.7.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:884a3f4a8c4fc24bb9302f263e0af47d97f0d01fe11ba714171b320c8ac09547 -size 59103 diff --git a/python-nbclient.changes b/python-nbclient.changes index 8364959..20e2e20 100644 --- a/python-nbclient.changes +++ b/python-nbclient.changes @@ -1,14 +1,3 @@ -------------------------------------------------------------------- -Sun Jan 8 09:32:12 UTC 2023 - Ben Greiner - -- Update to 0.7.2 - * Allow space after In #264 (@davidbrochart) - * Fix jupyter_core pinning #263 (@davidbrochart) - * Update README, add Python 3.11 #260 (@davidbrochart) -- Release 0.7.1 - * Remove nest-asyncio #259 (@davidbrochart) -- Use PEP517 hatchling build - ------------------------------------------------------------------- Sun Oct 9 17:10:22 UTC 2022 - Arun Persaud diff --git a/python-nbclient.spec b/python-nbclient.spec index d59b41b..3deafd8 100644 --- a/python-nbclient.spec +++ b/python-nbclient.spec @@ -1,7 +1,7 @@ # # spec file # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -29,23 +29,21 @@ %else %bcond_with libalternatives %endif - Name: python-nbclient%{psuffix} -Version: 0.7.2 +Version: 0.7.0 Release: 0 Summary: A client library for executing notebooks License: BSD-3-Clause URL: https://github.com/jupyter/nbclient Source: https://files.pythonhosted.org/packages/source/n/nbclient/nbclient-%{version}.tar.gz BuildRequires: %{python_module base >= 3.7} -BuildRequires: %{python_module hatchling >= 1.10.0} -BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools >= 38.6.0} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-jupyter-client >= 6.1.12 -Requires: python-nbformat >= 5.1 -Requires: python-traitlets >= 5.3 -Requires: ((python-jupyter-core >= 4.12 with python-jupyter-core < 5) or python-jupyter-core >= 5.1) +Requires: python-jupyter-client >= 6.1.5 +Requires: python-nbformat >= 5.0 +Requires: python-nest-asyncio +Requires: python-traitlets >= 5.2.2 BuildArch: noarch %if %{with libalternatives} BuildRequires: alts @@ -59,8 +57,7 @@ BuildRequires: %{python_module ipykernel} BuildRequires: %{python_module ipython} BuildRequires: %{python_module ipywidgets} BuildRequires: %{python_module nbclient = %{version}} -BuildRequires: %{python_module nbconvert >= 7} -BuildRequires: %{python_module pytest >= 7} +BuildRequires: %{python_module pytest >= 4.1} BuildRequires: %{python_module pytest-asyncio} BuildRequires: %{python_module testpath} BuildRequires: %{python_module xmltodict} @@ -75,14 +72,13 @@ NBClient is a tool for parameterizing andexecuting Jupyter Notebooks. %prep %setup -q -n nbclient-%{version} -sed -i 's/--color=yes//' pyproject.toml + +%build +%python_build %if ! %{with test} -%build -%pyproject_wheel - %install -%pyproject_install +%python_install %python_clone -a %{buildroot}%{_bindir}/jupyter-execute %python_expand %fdupes %{buildroot}%{$python_sitelib} %endif @@ -95,7 +91,7 @@ donttest="parallel_notebooks" # https://github.com/jupyter/nbclient/issues/189 donttest+=" or (test_run_all_notebooks and (opts6 or opts8 or opts9))" # extra -v for more verbose error diffs -%pytest -v -k "not ($donttest)" +%pytest -v -k "not ($donttest)" --asyncio-mode=auto %endif %if ! %{with test} @@ -109,11 +105,11 @@ donttest+=" or (test_run_all_notebooks and (opts6 or opts8 or opts9))" %python_uninstall_alternative jupyter-execute %files %{python_files} -%doc README.md +%doc CHANGELOG.md README.md %license LICENSE %python_alternative %{_bindir}/jupyter-execute %{python_sitelib}/nbclient -%{python_sitelib}/nbclient-%{version}.dist-info/ +%{python_sitelib}/nbclient-%{version}*-info/ %endif %changelog