commit 5d93c6a91fd19d66f6e4aa8521927722fd96bb1170a0087b52bf493fa792c4dc Author: Markéta Machová Date: Wed Nov 6 20:26:25 2024 +0000 - Exclude the client subpackage on python 3.13 due to missing dependencies OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-pytest-jupyter?expand=0&rev=21 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/pytest_jupyter-0.10.1.tar.gz b/pytest_jupyter-0.10.1.tar.gz new file mode 100644 index 0000000..7714ff6 --- /dev/null +++ b/pytest_jupyter-0.10.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:00df54eef9e201dd542d5471b8980def15d34b917b30587d14d7c824fc4d9e84 +size 15580 diff --git a/python-pytest-jupyter.changes b/python-pytest-jupyter.changes new file mode 100644 index 0000000..a719b98 --- /dev/null +++ b/python-pytest-jupyter.changes @@ -0,0 +1,51 @@ +------------------------------------------------------------------- +Wed Nov 6 20:03:59 UTC 2024 - Markéta Machová + +- Exclude the client subpackage on python 3.13 due to missing dependencies + +------------------------------------------------------------------- +Thu Jun 20 07:46:52 UTC 2024 - Dirk Müller + +- update to 0.10.1: + * Fix passing of kwargs to websocket_connect + * Set all min deps +- update to 0.10.0: + * jp_ws_fetch: passthrough kwargs to websocket_connect + +------------------------------------------------------------------- +Fri Mar 29 19:05:45 UTC 2024 - Ben Greiner + +- Update to 0.9.1 + * Update event loop handling #75 (@blink1073) + * Maintenance and upkeep improvements + +------------------------------------------------------------------- +Tue Mar 5 15:20:06 UTC 2024 - Dominique Leuenberger + +- Skip python 3.9 flavor: python39-ipython is no longer available. + +------------------------------------------------------------------- +Sun Dec 24 14:14:51 UTC 2023 - Ben Greiner + +- Update to 0.8.0 + * Allow passing request_timeout to client_fetch #67 (@afbarbaro) + * code maintenance +- Disable the -server subpackage for Ring1 + +------------------------------------------------------------------- +Sun Apr 23 17:24:28 UTC 2023 - Ben Greiner + +- Update to 0.7.0 + * Enable header overrides in jp_ws_fetch fixture by @kevin-bates + in #51 + +------------------------------------------------------------------- +Thu Dec 29 22:30:34 UTC 2022 - Ben Greiner + +- Apply spec-cleaner and package README + +------------------------------------------------------------------- +Sun Dec 25 21:36:22 UTC 2022 - Ben Greiner + +- Initial specfile for v0.6.2 +- Required to test jupyter-server 2 diff --git a/python-pytest-jupyter.spec b/python-pytest-jupyter.spec new file mode 100644 index 0000000..3098878 --- /dev/null +++ b/python-pytest-jupyter.spec @@ -0,0 +1,125 @@ +# +# spec file for package python-pytest-jupyter +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +# python-nbformat needed by the client subpackage is not available on python313 +%define skip_python313 1 +%else +%define psuffix %{nil} +%bcond_with test +%endif + +# defined at Ring1-MinimalX lettered staging prjconf +# We do not want jupyter-server in ring1 +%bcond_with ringdisabled +Name: python-pytest-jupyter%{psuffix} +Version: 0.10.1 +Release: 0 +Summary: A pytest plugin for testing Jupyter libraries and extensions +License: BSD-3-Clause AND MIT +URL: https://github.com/jupyter-server/pytest-jupyter +Source: https://files.pythonhosted.org/packages/source/p/pytest_jupyter/pytest_jupyter-%{version}.tar.gz +BuildRequires: %{python_module base >= 3.8} +BuildRequires: %{python_module hatchling} +BuildRequires: %{python_module pip} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-jupyter_core >= 5.7 +Requires: python-pytest >= 7.0 +BuildArch: noarch +%if %{with test} +BuildRequires: %{python_module pytest-jupyter = %{version}} +BuildRequires: %{python_module pytest-jupyter-client = %{version}} +%if !%{with ringdisabled} +BuildRequires: %{python_module pytest-jupyter-server = %{version}} +%endif +BuildRequires: %{python_module pytest-timeout} +%endif +%python_subpackages + +%description +A pytest plugin for testing Jupyter libraries and extensions. + +%package client +Summary: A pytest plugin for testing Jupyter libraries and extensions [client] extra +Requires: python-ipykernel >= 6.14 +Requires: python-jupyter-client >= 7.4 +Requires: python-nbformat >= 5.3 +Requires: python-pytest-jupyter = %{version} + +%description client +A pytest plugin for testing Jupyter libraries and extensions. +This subpackage provides the [client] extra dependencies + +%package server +Summary: A pytest plugin for testing Jupyter libraries and extensions [server] extra +Requires: python-ipykernel >= 6.14 +Requires: python-jupyter-client >= 7.4 +Requires: python-jupyter-server >= 1.21 +Requires: python-nbformat >= 5.3 +Requires: python-pytest-jupyter = %{version} + +%description server +A pytest plugin for testing Jupyter libraries and extensions. +This subpackage provides the [server] extra dependencies + +%prep +%setup -q -n pytest_jupyter-%{version} +sed -e 's/ "--color=yes",//' -i pyproject.toml +%if %{with ringdisabled} +sed -e "/jupyter_server/d" -i tests/conftest.py +%endif + +%if !%{with test} +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif + +%if %{with test} +%check +mv pytest_jupyter pytest_jupyter.moved +%pytest %{?_with_ringdisabled:--ignore tests/test_jupyter_server.py} +%endif + +%if !%{with test} +%files %{python_files} +%license LICENSE +%doc README.md +%{python_sitelib}/pytest_jupyter +%{python_sitelib}/pytest_jupyter-%{version}.dist-info + +# python-nbformat needed by the client subpackage is not available on python313 +%if %{?python_version_nodots} < 313 +%files %{python_files client} +%license LICENSE +%endif + +%if !%{with ringdisabled} +%files %{python_files server} +%license LICENSE +%endif +%endif + +%changelog