commit d82725375e61beb4b311a7a5b59d931a857a2b0ba25d47fa8cc68079000c6ba0 Author: Thomas Bechtold Date: Mon Jul 17 05:05:19 2017 +0000 Accepting request 510417 from home:seanmarlow:branches:devel:languages:python Add package to single spec python3 only. OBS-URL: https://build.opensuse.org/request/show/510417 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-yarl?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/python-yarl.changes b/python-yarl.changes new file mode 100644 index 0000000..f9a5734 --- /dev/null +++ b/python-yarl.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu Jul 13 19:22:44 UTC 2017 - sean.marlow@suse.com + +- Initial release v0.11.0. diff --git a/python-yarl.spec b/python-yarl.spec new file mode 100644 index 0000000..deb2674 --- /dev/null +++ b/python-yarl.spec @@ -0,0 +1,67 @@ +# +# spec file for package python-yarl +# +# 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-%{**}} +%define skip_python2 1 +%bcond_without test +Name: python-yarl +Version: 0.11.0 +Release: 0 +License: Apache-2.0 +Summary: Yet another URL library +Url: https://github.com/aio-libs/yarl/ +Group: Development/Languages/Python +Source: https://files.pythonhosted.org/packages/source/y/yarl/yarl-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module Cython} +%if %{with test} +BuildRequires: python3-multidict >= 2.0 +BuildRequires: %{python_module pytest} +%endif +%ifpython3 +Requires: python3-multidict >= 2.0 +%endif +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%python_subpackages + +%description +The module provides a URL class for url parsing and changing. + +%prep +%setup -q -n yarl-%{version} + +%build +export CFLAGS="%{optflags}" +%python_build + +%install +%python_install + +%check +%if %{with test} +# Tests fail unable to import modules. +%endif + +%files %{python_files} +%defattr(-,root,root,-) +%doc CHANGES.rst LICENSE README.rst +%{python_sitearch}/* + +%changelog diff --git a/yarl-0.11.0.tar.gz b/yarl-0.11.0.tar.gz new file mode 100644 index 0000000..1339676 --- /dev/null +++ b/yarl-0.11.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:51b92ef78e322cb2c93839c404de5ae33e852cab665fc99652fa89d7ab16e761 +size 132203