From 2fc5aec0bb880229c16c94864136495cf4b1beab5a2e44b4e64e0c3b1ae47cc4 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Tue, 16 Sep 2025 04:27:13 +0000 Subject: [PATCH] - Skip two broken tests under Python 3.14. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typing-inspect?expand=0&rev=13 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + python-typing-inspect.changes | 49 +++++++++++++++++++++++++ python-typing-inspect.spec | 67 +++++++++++++++++++++++++++++++++++ typing_inspect-0.9.0.tar.gz | 3 ++ 5 files changed, 143 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-typing-inspect.changes create mode 100644 python-typing-inspect.spec create mode 100644 typing_inspect-0.9.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/python-typing-inspect.changes b/python-typing-inspect.changes new file mode 100644 index 0000000..ca83040 --- /dev/null +++ b/python-typing-inspect.changes @@ -0,0 +1,49 @@ +------------------------------------------------------------------- +Tue Sep 16 04:26:36 UTC 2025 - Steve Kowalik + +- Skip two broken tests under Python 3.14. + +------------------------------------------------------------------- +Wed Jun 4 06:15:26 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + +------------------------------------------------------------------- +Sun Aug 13 21:39:11 UTC 2023 - Dirk Müller + +- update to 0.9.0: + * Fix with new version of typing_extensions + * Handle non-indexed generics + +------------------------------------------------------------------- +Fri Apr 21 12:38:07 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:45:39 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + +------------------------------------------------------------------- +Sat Jan 7 16:17:47 UTC 2023 - Dirk Müller + +- update to 0.8.0: + * Python 3.9 support + * support PEO 591 + * Require newer typing extension + * Python 3.10 support + * Add support for UnionType in get_args +- drop typing_inspect-pr69-py39-GenericAlias.patch (upstream) + +------------------------------------------------------------------- +Sun Mar 21 13:52:12 UTC 2021 - Ben Greiner + +- Add typing_inspect-pr69-py39-GenericAlias.patch to support + Python 3.9 -- gh#ilevkivskyi/typing_inspect#69 + +------------------------------------------------------------------- +Sat Jul 4 03:54:20 AM UTC 2020 - John Vandenberg + +- Initial spec for v0.6.0 diff --git a/python-typing-inspect.spec b/python-typing-inspect.spec new file mode 100644 index 0000000..2ff5d1e --- /dev/null +++ b/python-typing-inspect.spec @@ -0,0 +1,67 @@ +# +# spec file for package python-typing-inspect +# +# Copyright (c) 2025 SUSE LLC and contributors +# +# 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-typing-inspect +Version: 0.9.0 +Release: 0 +Summary: Python runtime inspection utilities for typing +License: MIT +URL: https://github.com/ilevkivskyi/typing_inspect +Source: https://files.pythonhosted.org/packages/source/t/typing_inspect/typing_inspect-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-mypy_extensions >= 0.3.0 +Requires: python-typing_extensions >= 3.7.4 +Suggests: python-typing >= 3.7.4 +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module mypy_extensions >= 0.3.0} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module typing_extensions >= 3.7.4} +# /SECTION +%python_subpackages + +%description +Python runtime inspection utilities for typing module. + +%prep +%autosetup -p1 -n typing_inspect-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# https://github.com/ilevkivskyi/typing_inspect/issues/108 +%pytest -k 'not (test_parameters or test_typed_dict_mypy_extension)' + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/typing_inspect.py +%pycache_only %{python_sitelib}/__pycache__/typing_inspect.*.pyc +%{python_sitelib}/typing_inspect-%{version}.dist-info + +%changelog diff --git a/typing_inspect-0.9.0.tar.gz b/typing_inspect-0.9.0.tar.gz new file mode 100644 index 0000000..e0a305d --- /dev/null +++ b/typing_inspect-0.9.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b23fc42ff6f6ef6954e4852c1fb512cdd18dbea03134f91f856a95ccc9461f78 +size 13825