diff --git a/flufl.i18n-3.2.tar.gz b/flufl.i18n-3.2.tar.gz deleted file mode 100644 index 065a5be..0000000 --- a/flufl.i18n-3.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c35c8f8eab66adb7fd64a1420860105066d2b36cb655b33ffb14afe8e223ed62 -size 24209 diff --git a/flufl.i18n-4.0.tar.gz b/flufl.i18n-4.0.tar.gz new file mode 100644 index 0000000..8af852e --- /dev/null +++ b/flufl.i18n-4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:313ab4763845a7f704c74133b7911a333dccceb0168f16741d04a47c5b9ab166 +size 21119 diff --git a/python-flufl.i18n-fix-setup.patch b/python-flufl.i18n-fix-setup.patch deleted file mode 100644 index 2fcb62d..0000000 --- a/python-flufl.i18n-fix-setup.patch +++ /dev/null @@ -1,10 +0,0 @@ -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 7235bb4..eeafaf9 100644 --- a/python-flufl.i18n.changes +++ b/python-flufl.i18n.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Sun Jan 23 23:01:57 UTC 2022 - Matej Cepl + +- Update to 4.0: + - Use modern package management by adopting pdm and + pyproject.toml, and dropping setup.py and setup.cfg. + - Build the docs with Python 3.8. + - Update to version 3.0 of Sybil. + - Adopt the Furo documentation theme. + - Use importlib.metadata.version() as a better way to get the + package version number for the documentation. + - Drop Python 3.6 support. + - Update copyright years. + ------------------------------------------------------------------- Wed Nov 17 09:36:44 UTC 2021 - Andreas Schneider diff --git a/python-flufl.i18n.spec b/python-flufl.i18n.spec index af4cabb..90c8890 100644 --- a/python-flufl.i18n.spec +++ b/python-flufl.i18n.spec @@ -1,7 +1,7 @@ # # spec file for package python-flufl.i18n # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,17 +19,20 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define pythons python3 Name: python-flufl.i18n -Version: 3.2 +Version: 4.0 Release: 0 Summary: High level API for internationalizing Python libraries and applications License: Apache-2.0 -URL: https://flufli18n.readthedocs.io +URL: https://gitlab.com/warsaw/flufl.i18n 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 pdm} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: python-rpm-macros # SECTION test requirements BuildRequires: %{python_module atpublic} +BuildRequires: %{python_module pytest-cov} BuildRequires: %{python_module pytest} BuildRequires: %{python_module six} BuildRequires: %{python_module sybil} @@ -48,10 +51,10 @@ High level API for internationalizing Python libraries and applications. %autosetup -n flufl.i18n-%{version} -p1 %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -60,6 +63,9 @@ High level API for internationalizing Python libraries and applications. %files %{python_files} %doc README.rst %license LICENSE -%{python_sitelib}/* +%dir %{python_sitelib}/flufl +%{python_sitelib}/flufl/i18n* +%{python_sitelib}/flufl.i18n* +%{python_sitelib}/flufl.i18n-%{version}*info %changelog