From 0e7446235fec37458a1579602aa73c31f6309001c3453ead3ef0db5b8ae241eb 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:21:01 +0000 Subject: [PATCH] Accepting request 673500 from home:jayvdb:coala:python3-bears - Update to v2.4 - Remove unnecessary build dependency on python-devel - Update URL from BitBucket to GitHub - Use %license - Fix %doc to use README.rst instead of empty README.txt - Initial version for v2.3 OBS-URL: https://build.opensuse.org/request/show/673500 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyroma?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + pyroma-2.4.tar.gz | 3 ++ python-pyroma.changes | 18 ++++++++++ python-pyroma.spec | 77 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 122 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pyroma-2.4.tar.gz create mode 100644 python-pyroma.changes create mode 100644 python-pyroma.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/pyroma-2.4.tar.gz b/pyroma-2.4.tar.gz new file mode 100644 index 0000000..42b281b --- /dev/null +++ b/pyroma-2.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:94a11cb077976bff9bd37ac8b487902556f216c4ee90b74a2344367f73b6ee7f +size 346509 diff --git a/python-pyroma.changes b/python-pyroma.changes new file mode 100644 index 0000000..c667b9e --- /dev/null +++ b/python-pyroma.changes @@ -0,0 +1,18 @@ +------------------------------------------------------------------- +Tue Feb 12 00:33:47 UTC 2019 - John Vandenberg + +- Update to v2.4 + - Get rid of the tests that rely on HTML scraping, it's too brittle. + - Added -n command line option to set the minimum rating needed for pyroma + to return success, useful in scripts. +- from 2.3.1 + - Fixed installation fails with a non-UTF8 locale under Python 3. +- Remove unnecessary build dependency on python-devel +- Update URL from BitBucket to GitHub +- Use %license +- Fix %doc to use README.rst instead of empty README.txt + +------------------------------------------------------------------- +Thu Nov 16 17:45:39 UTC 2017 - toddrme2178@gmail.com + +- Initial version for v2.3 diff --git a/python-pyroma.spec b/python-pyroma.spec new file mode 100644 index 0000000..67c7a8a --- /dev/null +++ b/python-pyroma.spec @@ -0,0 +1,77 @@ +# +# spec file for package python-pyroma +# +# 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/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without test +Name: python-pyroma +Version: 2.4 +Release: 0 +Summary: Test your project's packaging friendliness +License: MIT +Group: Development/Languages/Python +URL: https://github.com/regebro/pyroma +Source: https://files.pythonhosted.org/packages/source/p/pyroma/pyroma-%{version}.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-docutils +Requires: python-setuptools +BuildArch: noarch +%if %{with test} +BuildRequires: %{python_module docutils} +%endif +%python_subpackages + +%description +Pyroma rhymes with aroma, and is a product aimed at giving a rating of how well +a Python project complies with the best practices of the Python packaging +ecosystem, primarily PyPI, pip, Distribute etc, as well as a list of issues that +could be improved. + +The aim of this is both to help people make a project that is nice and usable, +but also to improve the quality of Python third-party software, making it easier +and more enjoyable to use the vast array of available modules for Python. + +It's written so that there are a library with methods to call from Python, as +well as a script, also called pyroma. + +%prep +%setup -q -n pyroma-%{version} + +%build +export LANG=en_US.UTF-8 +%python_build + +%install +export LANG=en_US.UTF-8 +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%if %{with test} +%check +export LANG=en_US.UTF-8 +%python_exec setup.py test +%endif + +%files %{python_files} +%license LICENSE.txt +%doc README.rst HISTORY.txt +%python3_only %{_bindir}/pyroma +%{python_sitelib}/* + +%changelog