From 3d907391c7ace52c6427a342e5eadb8e29c8d3ce6a4107a19c9540a386d4b01a Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 15 Jan 2024 14:42:59 +0000 Subject: [PATCH] - 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 --- pytest-translations-4.0.1.tar.gz | 3 --- pytest_translations-5.0.0.tar.gz | 3 +++ python-pytest-translations.changes | 10 ++++++++++ python-pytest-translations.spec | 28 ++++++++++++---------------- 4 files changed, 25 insertions(+), 19 deletions(-) delete mode 100644 pytest-translations-4.0.1.tar.gz create mode 100644 pytest_translations-5.0.0.tar.gz diff --git a/pytest-translations-4.0.1.tar.gz b/pytest-translations-4.0.1.tar.gz deleted file mode 100644 index 2e2eff1..0000000 --- a/pytest-translations-4.0.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4f2cd5d32f05629f500124297bb1917e1278a2f08f353986421675d08f9f03ee -size 8282 diff --git a/pytest_translations-5.0.0.tar.gz b/pytest_translations-5.0.0.tar.gz new file mode 100644 index 0000000..bdaf458 --- /dev/null +++ b/pytest_translations-5.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffd84082f9363350a51a3757a73352a1aadfffd14e7af872df2decc7dfbf4a0e +size 5358 diff --git a/python-pytest-translations.changes b/python-pytest-translations.changes index d48c70a..cddbcb8 100644 --- a/python-pytest-translations.changes +++ b/python-pytest-translations.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Mon Jan 15 14:42:25 UTC 2024 - Dirk Müller + +- 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 diff --git a/python-pytest-translations.spec b/python-pytest-translations.spec index 62c4643..092631e 100644 --- a/python-pytest-translations.spec +++ b/python-pytest-translations.spec @@ -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