- 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/package/show/devel:languages:python:pytest/python-pytest-translations?expand=0&rev=16
This commit is contained in:
Dirk Mueller 2024-01-15 14:42:59 +00:00 committed by Git OBS Bridge
parent c8eaf2b36e
commit 3d907391c7
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> 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 # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -16,17 +16,17 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?sle15_python_module_pythons}
%define skip_python2 1
Name: python-pytest-translations Name: python-pytest-translations
Version: 4.0.1 Version: 5.0.0
Release: 0 Release: 0
Summary: Plugin for testing gettext, .po and .mo files Summary: Plugin for testing gettext, .po and .mo files
License: Apache-2.0 License: Apache-2.0
URL: https://github.com/Thermondo/pytest-translations URL: https://github.com/Thermondo/pytest-translations
Source: https://files.pythonhosted.org/packages/source/p/pytest-translations/pytest-translations-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/p/pytest-translations/pytest_translations-%{version}.tar.gz
BuildRequires: %{python_module pbr} BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module poetry-core}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: myspell-de_DE BuildRequires: myspell-de_DE
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
@ -49,25 +49,21 @@ Test check for:
- Fuzzy translations - Fuzzy translations
%prep %prep
%setup -q -n pytest-translations-%{version} %setup -q -n pytest_translations-%{version}
%build %build
export LANG=en_US.UTF-8 export LANG=en_US.UTF-8
%python_build %pyproject_wheel
%install %install
export LANG=en_US.UTF-8 export LANG=en_US.UTF-8
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export LANG=en_US.UTF-8
%pytest
%files %{python_files} %files %{python_files}
%doc AUTHORS ChangeLog README.rst %doc README.rst
%license LICENSE %license LICENSE
%{python_sitelib}/pytest_translations-%{version}-py%{python_version}.egg-info/ %{python_sitelib}/pytest_translations-%{version}.dist-info
%{python_sitelib}/pytest_translations %{python_sitelib}/pytest_translations
%changelog %changelog