commit 416b1f26ec0225a5c3b2ce6dccfc6d430f22a32f5c580e570775c46859d0d825 Author: Ondřej Súkup Date: Wed Oct 3 08:08:02 2018 +0000 Accepting request 639645 from home:alarrosa:branches:devel:languages:python:flask New package python-pytest-translations OBS-URL: https://build.opensuse.org/request/show/639645 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-translations?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/pytest-translations-2.0.0.tar.gz b/pytest-translations-2.0.0.tar.gz new file mode 100644 index 0000000..d676074 --- /dev/null +++ b/pytest-translations-2.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8f5aa5e98746ccc5e400486ea2084fd71251ccb35c0c53e4e1026d8af380bc08 +size 8467 diff --git a/python-pytest-translations.changes b/python-pytest-translations.changes new file mode 100644 index 0000000..be27116 --- /dev/null +++ b/python-pytest-translations.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu Sep 20 11:05:55 UTC 2018 - Antonio Larrosa - 2.0.0 + +- Initial release of python-pytest-translations 2.0.0 diff --git a/python-pytest-translations.spec b/python-pytest-translations.spec new file mode 100644 index 0000000..034a48d --- /dev/null +++ b/python-pytest-translations.spec @@ -0,0 +1,76 @@ +# +# spec file for package python-pytest-translations +# +# 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/ + + +%bcond_without test +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-pytest-translations +Version: 2.0.0 +Release: 0 +License: Apache-2.0 +Summary: Test gettext, po and mo files +Url: https://github.com/Thermondo/pytest-translations +Group: Development/Languages/Python +Source: https://files.pythonhosted.org/packages/source/p/pytest-translations/pytest-translations-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pbr} +%if %{with test} +BuildRequires: %{python_module polib >= 1.0.5} +BuildRequires: %{python_module pyenchant >= 1.6.0} +BuildRequires: %{python_module pytest} +BuildRequires: myspell-de_DE +%endif +BuildRequires: fdupes +Requires: python-polib >= 1.0.5 +Requires: python-pyenchant >= 1.6.0 +BuildArch: noarch + +%python_subpackages + +%description +pytest-translations is a py.test plugin to check gettext, po and mo files. +Test check for: +- Spelling (using enchant & aspell) +- Consistency of mo files +- Obsolete translations +- Fuzzy translations + +%prep +%setup -q -n pytest-translations-%{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 +export PYTHONPATH=$PWD +%python_exec %{_bindir}/py.test +%endif + +%files %{python_files} +%doc AUTHORS ChangeLog README.rst +%license LICENSE +%{python_sitelib}/* + +%changelog