From ce6cd1f83351f74e3bd88025ab1992e5f73a333c66b6486a8d006f0fffe226f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 13 May 2025 15:12:04 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ajsonrpc?expand=0&rev=6 --- .gitattributes | 23 +++++++++++++++ .gitignore | 1 + ajsonrpc-1.2.0.tar.gz | 3 ++ python-ajsonrpc.changes | 25 ++++++++++++++++ python-ajsonrpc.spec | 65 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 117 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 ajsonrpc-1.2.0.tar.gz create mode 100644 python-ajsonrpc.changes create mode 100644 python-ajsonrpc.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/ajsonrpc-1.2.0.tar.gz b/ajsonrpc-1.2.0.tar.gz new file mode 100644 index 0000000..83eff11 --- /dev/null +++ b/ajsonrpc-1.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:791bac18f0bf0dee109194644f151cf8b7ff529c4b8d6239ac48104a3251a19f +size 22108 diff --git a/python-ajsonrpc.changes b/python-ajsonrpc.changes new file mode 100644 index 0000000..b474d44 --- /dev/null +++ b/python-ajsonrpc.changes @@ -0,0 +1,25 @@ +------------------------------------------------------------------- +Tue May 13 13:05:55 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Wed Jan 25 09:40:02 UTC 2023 - Daniel Garcia + +- Run test on all python versions but for python 3.6 + +------------------------------------------------------------------- +Sat Jan 15 16:24:57 UTC 2022 - Dirk Müller + +- update to 1.2.0: + * add Quart backend + +------------------------------------------------------------------- +Mon Apr 12 09:51:09 UTC 2021 - Mustafa Çalışkan + +- Run tests only on python38 flavor + +------------------------------------------------------------------- +Sun Apr 4 21:51:53 UTC 2021 - Mustafa Çalışkan + +- Initial version 1.1.0 diff --git a/python-ajsonrpc.spec b/python-ajsonrpc.spec new file mode 100644 index 0000000..22ac2a8 --- /dev/null +++ b/python-ajsonrpc.spec @@ -0,0 +1,65 @@ +# +# spec file for package python-ajsonrpc +# +# Copyright (c) 2025 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/ +# + + +Name: python-ajsonrpc +Version: 1.2.0 +Release: 0 +Summary: Async JSON-RPC 20 protocol + server powered by asyncio +License: MIT +URL: https://github.com/pavlov99/ajsonrpc +Source: https://files.pythonhosted.org/packages/source/a/ajsonrpc/ajsonrpc-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%python_subpackages + +%description +Async JSON-RPC 2.0 protocol + server powered by asyncio. + +%prep +%setup -q -n ajsonrpc-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/async-json-rpc-server +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%post +%python_install_alternative async-json-rpc-server + +%postun +%python_uninstall_alternative async-json-rpc-server + +%files %{python_files} +%doc README.md +%license LICENSE.txt +%python_alternative %{_bindir}/async-json-rpc-server +%{python_sitelib}/ajsonrpc +%{python_sitelib}/ajsonrpc-%{version}*-info + +%changelog