From bc9bf739e7a2d549fade964cc9c8d18fbc6be29e74f98abed621f649c92d5a50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 23:21:44 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main python-typing-inspect revision 771bac96b8e9cc272839217fff400d14 --- .gitattributes | 23 +++++++++++++ python-typing-inspect.changes | 38 +++++++++++++++++++++ python-typing-inspect.spec | 63 +++++++++++++++++++++++++++++++++++ typing_inspect-0.9.0.tar.gz | 3 ++ 4 files changed, 127 insertions(+) create mode 100644 .gitattributes 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/python-typing-inspect.changes b/python-typing-inspect.changes new file mode 100644 index 0000000..d3d96ff --- /dev/null +++ b/python-typing-inspect.changes @@ -0,0 +1,38 @@ +------------------------------------------------------------------- +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..59fb1c4 --- /dev/null +++ b/python-typing-inspect.spec @@ -0,0 +1,63 @@ +# +# spec file for package python-typing-inspect +# +# Copyright (c) 2023 SUSE LLC +# +# 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 +Group: Development/Languages/Python +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 setuptools} +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 +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/* + +%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