commit 217d7b6578a3b92cc39a4b405b4cd44e591dac2b60b4c616a5a2d174b589222b Author: Tomáš Chvátal Date: Wed Feb 13 08:59:32 2019 +0000 Accepting request 674368 from home:jayvdb:coala:python3-bears - Remove tests from package distribution - Activate tests - Remove unnecessary build dependency python-devel - Use %license OBS-URL: https://build.opensuse.org/request/show/674368 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dennis?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/dennis-0.9.tar.gz b/dennis-0.9.tar.gz new file mode 100644 index 0000000..f1d63f6 --- /dev/null +++ b/dennis-0.9.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8c942dd5da7d03c65daebc069c5ee5c7f1374ac9b0c8c89c627caa66fe822604 +size 43553 diff --git a/python-dennis.changes b/python-dennis.changes new file mode 100644 index 0000000..16095d7 --- /dev/null +++ b/python-dennis.changes @@ -0,0 +1,12 @@ +------------------------------------------------------------------- +Wed Feb 13 05:10:03 UTC 2019 - John Vandenberg + +- Remove tests from package distribution +- Activate tests +- Remove unnecessary build dependency python-devel +- Use %license + +------------------------------------------------------------------- +Thu Nov 16 17:44:43 UTC 2017 - toddrme2178@gmail.com + +- Initial version v0.9 diff --git a/python-dennis.spec b/python-dennis.spec new file mode 100644 index 0000000..8b72b55 --- /dev/null +++ b/python-dennis.spec @@ -0,0 +1,67 @@ +# +# spec file for package python-dennis +# +# 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-dennis +Version: 0.9 +Release: 0 +License: BSD-3-Clause +Summary: Utilities for working with PO and POT files +Url: http://github.com/willkg/dennis +Group: Development/Languages/Python +Source: https://files.pythonhosted.org/packages/source/d/dennis/dennis-%{version}.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +# Test runner +BuildRequires: %{python_module pytest} +# Module dependencies +BuildRequires: %{python_module click >= 6} +BuildRequires: %{python_module polib >= 1.0.8} +Requires: python-click >= 6 +Requires: python-polib >= 1.0.8 +BuildArch: noarch + +%python_subpackages + +%description +Dennis is a set of utilities for working with PO files to ease +development and improve quality. Translate POT files to find problems +with localization in your code. Lint PO files for common problems like +variable formatting, mismatched HTML, missing variables, etc. + +%prep +%setup -q -n dennis-%{version} + +%build +%python_build + +%install +%python_install +%python_expand rm -r %{buildroot}%{$python_sitelib}/tests/ +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%python_expand pytest-%{$python_bin_suffix} tests + +%files %{python_files} +%license LICENSE +%doc CHANGELOG README.rst +%python3_only %{_bindir}/dennis-cmd +%{python_sitelib}/* + +%changelog