commit ff9742d8b05c6806e0dbae89aaaefe5a2a63ac499a8f434b568c6937794ecc1a Author: Tomáš Chvátal Date: Wed Feb 13 13:17:04 2019 +0000 Accepting request 674558 from home:jirislaby:branches:devel:languages:python This is needed for network:cryptocurrencies/electrum. OBS-URL: https://build.opensuse.org/request/show/674558 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aiorpcX?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..6e865b7 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,24 @@ +## 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 +*.tar 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/0.10.4.tar.gz b/0.10.4.tar.gz new file mode 100644 index 0000000..6fa4dc6 --- /dev/null +++ b/0.10.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:df79b7a321043ce5e12f91ad197d6187cf5b0c6f85506d323ad8b44e330104a1 +size 54923 diff --git a/python-aiorpcX.changes b/python-aiorpcX.changes new file mode 100644 index 0000000..355d363 --- /dev/null +++ b/python-aiorpcX.changes @@ -0,0 +1,9 @@ +------------------------------------------------------------------- +Mon Feb 11 12:00:43 UTC 2019 - Jiri Slaby + +- add tests and license + +------------------------------------------------------------------- +Wed Feb 6 07:23:09 UTC 2019 - Jiri Slaby + +- initial package diff --git a/python-aiorpcX.spec b/python-aiorpcX.spec new file mode 100644 index 0000000..881075e --- /dev/null +++ b/python-aiorpcX.spec @@ -0,0 +1,67 @@ +# +# spec file for package python-aiorpcX +# +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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 + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-aiorpcX +Version: 0.10.4 +Release: 0 +Summary: Generic async RPC implementation, including JSON-RPC +License: MIT +Group: Development/Languages/Python +Url: https://github.com/kyuupichan/aiorpcX +Source: https://github.com/kyuupichan/aiorpcX/archive/%{version}.tar.gz +BuildRequires: %{python_module setuptools} +# SECTION test requirements +BuildRequires: %{python_module aiohttp >= 2.3.2} +BuildRequires: %{python_module attrs} +BuildRequires: %{python_module pytest-asyncio} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module uvloop} +# /SECTION +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-attrs +BuildArch: noarch + +%python_subpackages + +%description +Generic async RPC implementation, including JSON-RPC + +%prep +%setup -q -n aiorpcX-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# the two disabled tests below need network +%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -k 'not (test_auto_detect_address_failure or test_create_connection_resolve_good)' + +%files %{python_files} +%doc README.rst +%license LICENCE +%{python_sitelib}/* + +%changelog