commit 4929e762ad343a34c722872ce6198232b5f278167305860e225421acf6295ee8 Author: Todd R Date: Mon Apr 24 15:14:47 2017 +0000 Accepting request 489932 from home:alois:branches:devel:languages:python OBS-URL: https://build.opensuse.org/request/show/489932 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-h2?expand=0&rev=1 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/h2-3.0.1.tar.gz b/h2-3.0.1.tar.gz new file mode 100644 index 0000000..e1158e1 --- /dev/null +++ b/h2-3.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b2962f883fa392a23cbfcc4ad03c335bcc661be0cf9627657b589f0df2206e64 +size 2208816 diff --git a/python-h2.changes b/python-h2.changes new file mode 100644 index 0000000..4e7207a --- /dev/null +++ b/python-h2.changes @@ -0,0 +1,12 @@ +------------------------------------------------------------------- +Fri Apr 21 19:25:18 UTC 2017 - aloisio@gmx.com + +- Update to version 3.0.1 (see HISTORY.rst) +- Converted to single-spec +- Enabled tests + +------------------------------------------------------------------- +Tue Dec 27 14:34:57 UTC 2016 - aloisio@gmx.com + +- Initial package (2.5.1) + diff --git a/python-h2.spec b/python-h2.spec new file mode 100644 index 0000000..694cc99 --- /dev/null +++ b/python-h2.spec @@ -0,0 +1,70 @@ +# +# spec file for package python-h2 +# +# Copyright (c) 2017 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 http://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-h2 +Version: 3.0.1 +Release: 0 +Summary: HTTP/2 State-Machine based protocol implementation +License: MIT +Group: Development/Languages/Python +Url: http://hyper.rtfd.org +Source0: https://files.pythonhosted.org/packages/source/h/h2/h2-%{version}.tar.gz +BuildRequires: %{python_module devel} +# test requirements +BuildRequires: %{python_module coverage} +BuildRequires: %{python_module hpack} +BuildRequires: %{python_module hyperframe >= 5.0} +BuildRequires: %{python_module hypothesis} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pytest-cov} +BuildRequires: %{python_module pytest-xdist} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-hyperframe >= 5.0 +Requires: python-hpack >= 2.2 +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%python_subpackages + +%description +Pure-Python implementation of a HTTP/2 protocol stack. +It’s written from the ground up to be embeddable in whatever program +you choose to use, ensuring that you can speak HTTP/2 regardless of +your programming paradigm. + +%prep +%setup -q -n h2-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes -s %{buildroot}%{$python_sitelib} + +%check +%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_version} + +%files %{python_files} +%defattr(-,root,root,-) +%doc HISTORY.rst LICENSE README.rst +%{python_sitelib}/h2 +%{python_sitelib}/h2-%{version}-py%{python_version}.egg-info + +%changelog