From f3578932c194bad474e7d3ed5707bae0f2726e7f7340ffbb9a02a53f949c4afb Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 28 Oct 2024 21:49:32 +0000 Subject: [PATCH] - update to 7.0: * Drop support for Python 3.7. * Build Windows wheels on GHA. * Add support for Python 3.13. * Enable multi-phase module initialization (PEP 489) for all supported Python versions. See this "how-to" doc for rationale and steps: https://docs.python.org/3.13/howto/isolating-extensions.html * Make the hookable extension type heap-allocated for Python >= 3.9. Likewise, see the doc above for rationale and steps. For Python < 3.9, the hookable extension type continues to be allocated statically, even though the module itself is allocated dynamically. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.i18nmessageid?expand=0&rev=36 --- .gitattributes | 23 +++++ .gitignore | 1 + _multibuild | 3 + fix-intersphinx-mapping.patch | 22 +++++ python-zope.i18nmessageid.changes | 151 ++++++++++++++++++++++++++++++ python-zope.i18nmessageid.spec | 102 ++++++++++++++++++++ zope.i18nmessageid-6.1.0.tar.gz | 3 + zope_i18nmessageid-7.0.tar.gz | 3 + 8 files changed, 308 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _multibuild create mode 100644 fix-intersphinx-mapping.patch create mode 100644 python-zope.i18nmessageid.changes create mode 100644 python-zope.i18nmessageid.spec create mode 100644 zope.i18nmessageid-6.1.0.tar.gz create mode 100644 zope_i18nmessageid-7.0.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/fix-intersphinx-mapping.patch b/fix-intersphinx-mapping.patch new file mode 100644 index 0000000..1234338 --- /dev/null +++ b/fix-intersphinx-mapping.patch @@ -0,0 +1,22 @@ +From 59ef476780398c83eaa4516d2fd3aaaecfb0f9a1 Mon Sep 17 00:00:00 2001 +From: Tres Seaver +Date: Fri, 24 May 2024 15:12:06 -0400 +Subject: [PATCH] docx: fix intersphinx mapping format + +Closes #49. +--- + docs/conf.py | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/docs/conf.py b/docs/conf.py +index c399349..6821bba 100644 +--- a/docs/conf.py ++++ b/docs/conf.py +@@ -243,4 +243,6 @@ + + + # Example configuration for intersphinx: refer to the Python standard library. +-intersphinx_mapping = {'http://docs.python.org/': None} ++intersphinx_mapping = { ++ 'python': ('https://docs.python.org/3', None), ++} diff --git a/python-zope.i18nmessageid.changes b/python-zope.i18nmessageid.changes new file mode 100644 index 0000000..943d830 --- /dev/null +++ b/python-zope.i18nmessageid.changes @@ -0,0 +1,151 @@ +------------------------------------------------------------------- +Mon Oct 28 21:49:17 UTC 2024 - Dirk Müller + +- update to 7.0: + * Drop support for Python 3.7. + * Build Windows wheels on GHA. + * Add support for Python 3.13. + * Enable multi-phase module initialization (PEP 489) for all + supported Python versions. See this "how-to" doc for + rationale and steps: + https://docs.python.org/3.13/howto/isolating-extensions.html + * Make the hookable extension type heap-allocated for Python >= + 3.9. Likewise, see the doc above for rationale and steps. + For Python < 3.9, the hookable extension type continues to be + allocated statically, even though the module itself is + allocated dynamically. + +------------------------------------------------------------------- +Wed Sep 11 05:10:50 UTC 2024 - Steve Kowalik + +- Add patch fix-intersphinx-mapping.patch: + * Fix the intersphinx mapping. +- Switch to autosetup macro. + +------------------------------------------------------------------- +Tue Jan 2 21:42:05 UTC 2024 - Dirk Müller + +- update to 6.1.0: + * Add support for Python 3.12. + +------------------------------------------------------------------- +Wed Jul 26 07:31:38 UTC 2023 - Bernhard Wiedemann + +- Drop sphinx doctrees for reproducible builds + +------------------------------------------------------------------- +Fri May 5 14:24:11 UTC 2023 - Dirk Müller + +- update to 6.0.1: + * Drop dependency on ``six``. + * Drop support for Python 2.7, 3.5, 3.6. + * Add preliminary support for Python 3.12a5. + +------------------------------------------------------------------- +Wed May 3 11:26:33 UTC 2023 - Martin Liška + +- Use sphinx-build and do not depend on removed build_sphinx + in Sphinx 7.0 (boo#1211051). + +------------------------------------------------------------------- +Wed Feb 1 13:11:47 UTC 2023 - Ben Greiner + +- Explicitly require python3-Sphinx for building the docs. It could + have been omitted from %pythons for %python_module in a 15.X + backport project. + +------------------------------------------------------------------- +Mon Dec 5 13:49:15 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version 5.1.1 + * Add support for building arm64 wheels on macOS. + +------------------------------------------------------------------- +Tue Nov 8 07:10:23 UTC 2022 - Matej Cepl + +- Clean up SPEC file, make rpmlint happy. +- -doc subpackage should be noarch. + +------------------------------------------------------------------- +Sun Nov 6 17:57:02 UTC 2022 - Hans-Peter Jansen + +- update to version 5.1.0 + * Added support for Python 3.9, 3.10 and 3.11. + +------------------------------------------------------------------- +Wed Oct 13 09:10:40 UTC 2021 - pgajdos@suse.com + +- %check: use %pyunittest rpm macro +- added sources + + _multibuild + +------------------------------------------------------------------- +Wed Apr 8 12:16:02 UTC 2020 - Tomáš Chvátal + +- Do not pull in python2 pkg in doc subpkg + +------------------------------------------------------------------- +Mon Mar 16 14:13:10 UTC 2020 - pgajdos@suse.com + +- version update to 5.0.1 + - Remove deprecated use of setuptools features. See `issue 22 + `_. + +------------------------------------------------------------------- +Tue Jan 21 11:12:38 UTC 2020 - Marketa Calabkova + +- update to version 5.0.0 + * Drop support for Python 3.4. + * Add support for Python 3.8. + +------------------------------------------------------------------- +Mon Oct 14 14:50:49 UTC 2019 - Matej Cepl + +- Replace %fdupes -s with plain %fdupes; hardlinks are better. + +------------------------------------------------------------------- +Fri Apr 5 10:09:51 UTC 2019 - Marketa Calabkova + +- update to version 4.3.1 + * Drop support for Python 3.3. + * Add support for Python 3.7. + * Fix the possibility of a rare crash in the C extension when + deallocating items. + * Add attributes to support pluralization on a Message and update + the MessageFactory accordingly. + * Fix a regression copying Message objects in the Python + implementation. + +------------------------------------------------------------------- +Sat Jul 8 07:15:18 UTC 2017 - aloisio@gmx.com + +- Update to version 4.1.0 + * Drop support for Python 2.6 and 3.2. + * Add support for Python 3.5 and 3.6. + * Fix the C extension not being used in Python 3. See issue 4. + * Make the Python implementation of Message accept any object + for the default argument, just as the C extension does. + This should be a unicode or byte string. See issue 5. + +- Converted to single-spec + +------------------------------------------------------------------- +Fri May 15 12:07:37 UTC 2015 - benoit.monin@gmx.fr + +- update to version 4.0.3: + * Added support for Python 3.4. + * Updated boostrap.py to version 2.2. +- rename CHANGES.txt to CHANGES.rst: changed upstream +- rename README.txt to README.rst: changed upstream + +------------------------------------------------------------------- +Fri Dec 27 13:34:07 UTC 2013 - p.drouand@gmail.com + +- Package CHANGES.txt, COPYRIGHT.txt, LICENSE.txt and README.txt +- Use download Url as source + +------------------------------------------------------------------- +Mon Jul 29 09:59:47 UTC 2013 - hpj@urpla.net + +- version 4.0.2: initial build + diff --git a/python-zope.i18nmessageid.spec b/python-zope.i18nmessageid.spec new file mode 100644 index 0000000..2931fa2 --- /dev/null +++ b/python-zope.i18nmessageid.spec @@ -0,0 +1,102 @@ +# +# spec file for package python-zope.i18nmessageid +# +# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2013-2022 LISA GmbH, Bingen, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif +%{?sle15_python_module_pythons} +Name: python-zope.i18nmessageid%{psuffix} +Version: 7.0 +Release: 0 +Summary: Zope Location +License: ZPL-2.1 +URL: https://github.com/zopefoundation/zope.i18nmessageid +Source: https://files.pythonhosted.org/packages/source/z/zope.i18nmessageid/zope_i18nmessageid-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +# SECTION documentation requirements +BuildRequires: python3-Sphinx +# /SECTION +# SECTION testing requirements +%if %{with test} +BuildRequires: %{python_module zope.i18nmessageid} +%endif +%python_subpackages + +%description +In Zope3, i18nmessageid are special objects that has a structural i18nmessageid. + +%package -n %{name}-doc +Summary: Zope Location +Provides: %{python_module zope.i18nmessageid-doc = %{version}} +BuildArch: noarch + +%description -n %{name}-doc +This package contains documentation files for %{name}. + +%prep +%autosetup -p1 -n zope_i18nmessageid-%{version} +rm -rf zope.i18nmessageid.egg-info + +%build +%if !%{with test} +%pyproject_wheel +sphinx-build -b html docs build/sphinx/html && rm -r build/sphinx/html/.{buildinfo,doctrees} build/sphinx/html/objects.inv +%endif + +%install +%if !%{with test} +%pyproject_install +# don't bother with development files +%{python_expand rm -f %{buildroot}%{$python_sitearch}/zope/i18nmessageid/_zope_i18nmessageid_message.c + %fdupes %{buildroot}%{$python_sitearch} +} +%endif + +%check +%if %{with test} +%pyunittest 'zope.i18nmessageid.tests.test_suite' +%endif + +%if !%{with test} +%files %{python_files} +%license LICENSE.txt +%doc CHANGES.rst COPYRIGHT.txt README.rst +%dir %{python_sitearch}/zope +%{python_sitearch}/zope/i18nmessageid +%{python_sitearch}/zope.i18nmessageid-%{version}.dist-info +%{python_sitearch}/zope.i18nmessageid-%{version}*-nspkg.pth +%endif + +%if !%{with test} +%files -n %{name}-doc +%doc build/sphinx/html/ +%endif + +%changelog diff --git a/zope.i18nmessageid-6.1.0.tar.gz b/zope.i18nmessageid-6.1.0.tar.gz new file mode 100644 index 0000000..8f61a7e --- /dev/null +++ b/zope.i18nmessageid-6.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:45ac26fdc86fabdf7b78f1c1bccfc1d4372d1a54838bbaedda9dba7444ad8941 +size 31187 diff --git a/zope_i18nmessageid-7.0.tar.gz b/zope_i18nmessageid-7.0.tar.gz new file mode 100644 index 0000000..c9d882c --- /dev/null +++ b/zope_i18nmessageid-7.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bf9146078c0d7359da41043bd2b713203c4fc56ef2122b3cdbb7551c3fcd8464 +size 27929