From 9db79dbd4ae66697ebad2b90c64751d586a21d4444fbbc96b9ed56172efaa8c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 12 Feb 2019 09:22:15 +0000 Subject: [PATCH] Accepting request 673502 from home:jayvdb:coala:python3-bears - Activate Python 2 support - Activate %check - Use %license - Remove unnecessar build dependency on python-devel - Remove inappropriate Suggests for build related packages - Add minimum versions for all dependencies - Update to parver-0.2.1 OBS-URL: https://build.opensuse.org/request/show/673502 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-parver?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++ .gitignore | 1 + parver-0.2.1.tar.gz | 3 ++ python-parver.changes | 24 +++++++++++++++ python-parver.spec | 68 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 119 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 parver-0.2.1.tar.gz create mode 100644 python-parver.changes create mode 100644 python-parver.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/parver-0.2.1.tar.gz b/parver-0.2.1.tar.gz new file mode 100644 index 0000000..4ca5d6b --- /dev/null +++ b/parver-0.2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1b37a691af145a3a193eff269d53ba5b2ab16dfbb65d47d85360755919f5fe4b +size 26316 diff --git a/python-parver.changes b/python-parver.changes new file mode 100644 index 0000000..c163160 --- /dev/null +++ b/python-parver.changes @@ -0,0 +1,24 @@ +------------------------------------------------------------------- +Tue Feb 12 01:58:45 UTC 2019 - John Vandenberg + +- Activate Python 2 support +- Activate %check +- Use %license +- Remove unnecessar build dependency on python-devel +- Remove inappropriate Suggests for build related packages +- Add minimum versions for all dependencies + +------------------------------------------------------------------- +Sun Jan 20 17:30:32 UTC 2019 - Niels Abspoel + +- Update to parver-0.2.1 + +------------------------------------------------------------------- +Sat Dec 8 15:44:05 UTC 2018 - John Vandenberg + +- Update to parver-0.2.0 + +------------------------------------------------------------------- +Thu Jul 5 12:52:53 UTC 2018 - aboe76@gmail.com + +- Initial package python-parver diff --git a/python-parver.spec b/python-parver.spec new file mode 100644 index 0000000..d38201d --- /dev/null +++ b/python-parver.spec @@ -0,0 +1,68 @@ +# +# spec file for package python-parver +# +# 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-%{**}} +Name: python-parver +Version: 0.2.1 +Release: 0 +License: MIT +Summary: Parse and manipulate version numbers +Url: https://github.com/RazerM/parver +Group: Development/Languages/Python +Source: https://files.pythonhosted.org/packages/source/p/parver/parver-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module setuptools} +# SECTION test requirements +BuildRequires: %{python_module Arpeggio >= 1.7} +BuildRequires: %{python_module attrs >= 17.4.0} +BuildRequires: %{python_module pytest >= 3.5} +BuildRequires: %{python_module hypothesis >= 3.56} +BuildRequires: %{python_module pretend >= 1.0} +BuildRequires: %{python_module six >= 1.9} +# /SECTION +BuildRequires: fdupes +Requires: python-Arpeggio >= 1.7 +Requires: python-attrs >= 17.4.0 +Requires: python-six >= 1.9 +BuildArch: noarch + +%python_subpackages + +%description +parver allows parsing and manipulation of `PEP 440`_ version numbers. + +%prep +%setup -q -n parver-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%{python_expand # +export PYTHONPATH=%{buildroot}%{$python_sitelib} +$python -m pytest +} + +%files %{python_files} +%license LICENSE +%doc CHANGELOG.md README.rst +%{python_sitelib}/* + +%changelog