From 4df4e2163452bdbf053e045a4739c8ea2c0e525b2b7225c97064c8b74901b25d Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Sun, 25 Dec 2022 17:53:57 +0000 Subject: [PATCH] - Initial specfile - Required by updated ipykernel OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-comm?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++++ .gitignore | 1 + comm-0.1.2-gh.tar.gz | 3 +++ python-comm.changes | 5 ++++ python-comm.spec | 63 ++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 95 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 comm-0.1.2-gh.tar.gz create mode 100644 python-comm.changes create mode 100644 python-comm.spec 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/comm-0.1.2-gh.tar.gz b/comm-0.1.2-gh.tar.gz new file mode 100644 index 0000000..d23b46b --- /dev/null +++ b/comm-0.1.2-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f6ce2ae0a4aefaa6a7a071e68988c17b089b0af40633e1aafd276b5190649878 +size 5382 diff --git a/python-comm.changes b/python-comm.changes new file mode 100644 index 0000000..cfba4f1 --- /dev/null +++ b/python-comm.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Sun Dec 25 17:48:15 UTC 2022 - Ben Greiner + +- Initial specfile +- Required by updated ipykernel diff --git a/python-comm.spec b/python-comm.spec new file mode 100644 index 0000000..7f1063a --- /dev/null +++ b/python-comm.spec @@ -0,0 +1,63 @@ +# +# spec file for package python-comm +# +# 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 +# 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/ +# + +%define skip_python2 1 +Name: python-comm +Version: 0.1.2 +Release: 0 +Summary: Jupyter Python Comm implementation +License: BSD-3-Clause +URL: https://github.com/ipython/comm +Source: https://github.com/ipython/comm/archive/refs/tags/%{version}.tar.gz#/comm-0.1.2-gh.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module base >= 3.6} +BuildRequires: %{python_module hatchling} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module traitlets >= 5.3} +BuildRequires: python-rpm-macros +BuildRequires: fdupes +Requires: python-traitlets >= 5.3 +Suggests: python-pytest +BuildArch: noarch +%python_subpackages + +%description +Comm provides a way to register a Kernel Comm implementation, +as per the Jupyter kernel protocol. It also provides a base +Comm implementation and a default CommManager that can be used. + +%prep +%setup -q -n comm-%{version} +sed -i -e 's/--color=yes//' pyproject.toml + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/comm +%{python_sitelib}/comm-%{version}*-info + +%changelog