Accepting request 1138971 from devel:languages:python:pytest

- update to 5.0.0:
  * **BREAKING** drop support for pytest <7 and EOL python
    versions
  * migrate to poetry
  * fix first deprecation warnings
  * add pre-commit with black,isort,flake8

OBS-URL: https://build.opensuse.org/request/show/1138971
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-translations?expand=0&rev=6
This commit is contained in:
Ana Guerrero 2024-01-15 21:21:36 +00:00 committed by Git OBS Bridge
commit 0e0f9c92d6
4 changed files with 25 additions and 19 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4f2cd5d32f05629f500124297bb1917e1278a2f08f353986421675d08f9f03ee
size 8282

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ffd84082f9363350a51a3757a73352a1aadfffd14e7af872df2decc7dfbf4a0e
size 5358

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Mon Jan 15 14:42:25 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 5.0.0:
* **BREAKING** drop support for pytest <7 and EOL python
versions
* migrate to poetry
* fix first deprecation warnings
* add pre-commit with black,isort,flake8
-------------------------------------------------------------------
Tue May 9 21:27:15 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-pytest-translations
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,17 +16,17 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
%{?sle15_python_module_pythons}
Name: python-pytest-translations
Version: 4.0.1
Version: 5.0.0
Release: 0
Summary: Plugin for testing gettext, .po and .mo files
License: Apache-2.0
URL: https://github.com/Thermondo/pytest-translations
Source: https://files.pythonhosted.org/packages/source/p/pytest-translations/pytest-translations-%{version}.tar.gz
BuildRequires: %{python_module pbr}
BuildRequires: %{python_module setuptools}
Source: https://files.pythonhosted.org/packages/source/p/pytest-translations/pytest_translations-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry-core}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: myspell-de_DE
BuildRequires: python-rpm-macros
@ -49,25 +49,21 @@ Test check for:
- Fuzzy translations
%prep
%setup -q -n pytest-translations-%{version}
%setup -q -n pytest_translations-%{version}
%build
export LANG=en_US.UTF-8
%python_build
%pyproject_wheel
%install
export LANG=en_US.UTF-8
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export LANG=en_US.UTF-8
%pytest
%files %{python_files}
%doc AUTHORS ChangeLog README.rst
%doc README.rst
%license LICENSE
%{python_sitelib}/pytest_translations-%{version}-py%{python_version}.egg-info/
%{python_sitelib}/pytest_translations-%{version}.dist-info
%{python_sitelib}/pytest_translations
%changelog