commit d213a2fdd191c4c3a5f8b21acffd028b12631f97d2326e24a12a0599f09cac65 Author: Dominique Leuenberger Date: Tue May 29 14:48:06 2018 +0000 Accepting request 605910 from devel:languages:python Needed by python-intervals OBS-URL: https://build.opensuse.org/request/show/605910 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-infinity?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/infinity-1.4.tar.gz b/infinity-1.4.tar.gz new file mode 100644 index 0000000..3b6f24a --- /dev/null +++ b/infinity-1.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dc4aa138d7e366fc00d2e741e32c78a0fecd16b74f8daeb3f7408b459668005c +size 5410 diff --git a/python-infinity.changes b/python-infinity.changes new file mode 100644 index 0000000..1c42032 --- /dev/null +++ b/python-infinity.changes @@ -0,0 +1,12 @@ +------------------------------------------------------------------- +Wed Oct 18 16:43:52 UTC 2017 - toddrme2178@gmail.com + +- Implement single-spec version +- Update to 1.4 + * See changelog at https://github.com/kvesteri/infinity/blob/1.4/CHANGES.rst + +------------------------------------------------------------------- +Fri Sep 19 09:20:15 UTC 2014 - toddrme2178@gmail.com + +- Initial version + diff --git a/python-infinity.spec b/python-infinity.spec new file mode 100644 index 0000000..a0102b6 --- /dev/null +++ b/python-infinity.spec @@ -0,0 +1,67 @@ +# +# spec file for package python-infinity +# +# Copyright (c) 2018 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-%{**}} +%bcond_without test +Name: python-infinity +Version: 1.4 +Release: 0 +Summary: All-in-one infinity value for Python +License: BSD-3-Clause +Group: Development/Languages/Python +Url: https://github.com/kvesteri/infinity +Source: https://files.pythonhosted.org/packages/source/i/infinity/infinity-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +%if %{with test} +BuildRequires: %{python_module flake8 >= 2.4.0} +BuildRequires: %{python_module isort >= 4.2.2} +BuildRequires: %{python_module pytest >= 2.2.3} +BuildRequires: %{python_module six >= 1.4.1} +%endif +BuildArch: noarch + +%python_subpackages + +%description +All-in-one infinity value for Python. Can be compared to any object. + +%prep +%setup -q -n infinity-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%if %{with test} +%check +%python_exec test_infinity.py +%endif + +%files %{python_files} +%defattr(-,root,root,-) +%doc CHANGES.rst README.rst +%license LICENSE +%{python_sitelib}/* + +%changelog