- 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
This commit is contained in:
Dirk Mueller 2024-10-28 21:49:32 +00:00 committed by Git OBS Bridge
commit f3578932c1
8 changed files with 308 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
_multibuild Normal file
View File

@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

View File

@ -0,0 +1,22 @@
From 59ef476780398c83eaa4516d2fd3aaaecfb0f9a1 Mon Sep 17 00:00:00 2001
From: Tres Seaver <tseaver@palladion.com>
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),
+}

View File

@ -0,0 +1,151 @@
-------------------------------------------------------------------
Mon Oct 28 21:49:17 UTC 2024 - Dirk Müller <dmueller@suse.com>
- 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 <steven.kowalik@suse.com>
- 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 <dmueller@suse.com>
- update to 6.1.0:
* Add support for Python 3.12.
-------------------------------------------------------------------
Wed Jul 26 07:31:38 UTC 2023 - Bernhard Wiedemann <bwiedemann@suse.com>
- Drop sphinx doctrees for reproducible builds
-------------------------------------------------------------------
Fri May 5 14:24:11 UTC 2023 - Dirk Müller <dmueller@suse.com>
- 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 <mliska@suse.cz>
- 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 <code@bnavigator.de>
- 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 <yarunachalam@suse.com>
- Update to version 5.1.1
* Add support for building arm64 wheels on macOS.
-------------------------------------------------------------------
Tue Nov 8 07:10:23 UTC 2022 - Matej Cepl <mcepl@suse.com>
- Clean up SPEC file, make rpmlint happy.
- -doc subpackage should be noarch.
-------------------------------------------------------------------
Sun Nov 6 17:57:02 UTC 2022 - Hans-Peter Jansen <hpj@urpla.net>
- 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 <tchvatal@suse.com>
- 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
<https://github.com/zopefoundation/zope.i18nmessageid/issues/22>`_.
-------------------------------------------------------------------
Tue Jan 21 11:12:38 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
- 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 <mcepl@suse.com>
- Replace %fdupes -s with plain %fdupes; hardlinks are better.
-------------------------------------------------------------------
Fri Apr 5 10:09:51 UTC 2019 - Marketa Calabkova <mcalabkova@suse.com>
- 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

View File

@ -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

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:45ac26fdc86fabdf7b78f1c1bccfc1d4372d1a54838bbaedda9dba7444ad8941
size 31187

BIN
zope_i18nmessageid-7.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.