From 73daaf7e1b0750a6dbd8ad8ca90611e1a9f53a0c8d8f07d5baac468ac8b3a5e7 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 19 Nov 2021 01:10:55 +0000 Subject: [PATCH 1/2] Accepting request 931921 from home:gladiac:mailman3 - Update to version 3.2 * https://gitlab.com/warsaw/flufl.i18n/-/blob/main/docs/NEWS.rst - Added python-flufl.i18n-fix-setup.patch OBS-URL: https://build.opensuse.org/request/show/931921 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flufl.i18n?expand=0&rev=3 --- flufl.i18n-2.0.2.tar.gz | 3 --- flufl.i18n-3.2.tar.gz | 3 +++ python-flufl.i18n-fix-setup.patch | 10 ++++++++++ python-flufl.i18n.changes | 7 +++++++ python-flufl.i18n.spec | 23 ++++++++++++++--------- 5 files changed, 34 insertions(+), 12 deletions(-) delete mode 100644 flufl.i18n-2.0.2.tar.gz create mode 100644 flufl.i18n-3.2.tar.gz create mode 100644 python-flufl.i18n-fix-setup.patch diff --git a/flufl.i18n-2.0.2.tar.gz b/flufl.i18n-2.0.2.tar.gz deleted file mode 100644 index 79193c7..0000000 --- a/flufl.i18n-2.0.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:500976b41cc21a6a927dabce189865e14e4593c9982ab193b50a749b8a6e4fb3 -size 19106 diff --git a/flufl.i18n-3.2.tar.gz b/flufl.i18n-3.2.tar.gz new file mode 100644 index 0000000..065a5be --- /dev/null +++ b/flufl.i18n-3.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c35c8f8eab66adb7fd64a1420860105066d2b36cb655b33ffb14afe8e223ed62 +size 24209 diff --git a/python-flufl.i18n-fix-setup.patch b/python-flufl.i18n-fix-setup.patch new file mode 100644 index 0000000..2fcb62d --- /dev/null +++ b/python-flufl.i18n-fix-setup.patch @@ -0,0 +1,10 @@ +Index: flufl.i18n-3.2/setup.cfg +=================================================================== +--- flufl.i18n-3.2.orig/setup.cfg 2021-05-29 20:08:18.854980000 +0200 ++++ flufl.i18n-3.2/setup.cfg 2021-11-17 10:36:00.095701103 +0100 +@@ -1,5 +1,4 @@ + [tool:pytest] +-addopts = --cov=flufl + testpaths = test docs + + [flake8] diff --git a/python-flufl.i18n.changes b/python-flufl.i18n.changes index 52a682e..f523f1d 100644 --- a/python-flufl.i18n.changes +++ b/python-flufl.i18n.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Nov 17 09:36:44 UTC 2021 - Andreas Schneider + +- Update to version 3.2 + * https://gitlab.com/warsaw/flufl.i18n/-/blob/main/docs/NEWS.rst +- Added python-flufl.i18n-fix-setup.patch + ------------------------------------------------------------------- Mon Dec 2 12:02:29 UTC 2019 - pgajdos@suse.com diff --git a/python-flufl.i18n.spec b/python-flufl.i18n.spec index aaa898b..af4cabb 100644 --- a/python-flufl.i18n.spec +++ b/python-flufl.i18n.spec @@ -1,7 +1,7 @@ # # spec file for package python-flufl.i18n # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,30 +17,35 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 +%define pythons python3 Name: python-flufl.i18n -Version: 2.0.2 +Version: 3.2 Release: 0 -Summary: A high level API for Python internationalization +Summary: High level API for internationalizing Python libraries and applications License: Apache-2.0 URL: https://flufli18n.readthedocs.io Source: https://files.pythonhosted.org/packages/source/f/flufl.i18n/flufl.i18n-%{version}.tar.gz +Patch0: python-flufl.i18n-fix-setup.patch BuildRequires: %{python_module setuptools} -BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-atpublic -BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module atpublic} BuildRequires: %{python_module pytest} +BuildRequires: %{python_module six} +BuildRequires: %{python_module sybil} +BuildRequires: %{python_module typing_extensions} # /SECTION +BuildRequires: fdupes +Requires: python-atpublic +Suggests: python-typing_extensions +BuildArch: noarch %python_subpackages %description -A high level API for Python internationalization. +High level API for internationalizing Python libraries and applications. %prep -%setup -q -n flufl.i18n-%{version} +%autosetup -n flufl.i18n-%{version} -p1 %build %python_build From 74ae91c3b80aa7649951ce2cdb44f1d7e9b6b177f7700607ba210a3f3e527a40 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 19 Nov 2021 01:14:51 +0000 Subject: [PATCH 2/2] Fix changes OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flufl.i18n?expand=0&rev=4 --- python-flufl.i18n.changes | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/python-flufl.i18n.changes b/python-flufl.i18n.changes index f523f1d..7235bb4 100644 --- a/python-flufl.i18n.changes +++ b/python-flufl.i18n.changes @@ -2,7 +2,16 @@ Wed Nov 17 09:36:44 UTC 2021 - Andreas Schneider - Update to version 3.2 - * https://gitlab.com/warsaw/flufl.i18n/-/blob/main/docs/NEWS.rst + * Add a py.typed file to satisfy type checkers. + * Improve some QA by re-adding diff-cover, Gitlab SAST during + CI, and testing on Python 3.10 beta (except for Windows) + * Fix pytest 6.0.0 compatibility + * Drop support for Python 3.4 and 3.5. Add support for Python 3.9. + * Translator.catalog property is now exposed. + * New abstract classes for defining the types in this library: + * TranslationContextManager, RuntimeTranslator, TranslationStrategy + * When expand() gets an exception, the original exception is re-raised. + * Add type annotations and API reference documentation. - Added python-flufl.i18n-fix-setup.patch -------------------------------------------------------------------