From d8d122305c43caf5faae0b7405f5f1b19944fe914014099e78147898b8c167c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 2 Jun 2025 14:26:20 +0000 Subject: [PATCH 1/2] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mypy_extensions?expand=0&rev=12 --- .gitattributes | 23 ++++++++++++++ .gitignore | 1 + mypy_extensions-1.0.0.tar.gz | 3 ++ python-mypy_extensions.changes | 38 +++++++++++++++++++++++ python-mypy_extensions.spec | 56 ++++++++++++++++++++++++++++++++++ 5 files changed, 121 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 mypy_extensions-1.0.0.tar.gz create mode 100644 python-mypy_extensions.changes create mode 100644 python-mypy_extensions.spec 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/mypy_extensions-1.0.0.tar.gz b/mypy_extensions-1.0.0.tar.gz new file mode 100644 index 0000000..602aaf0 --- /dev/null +++ b/mypy_extensions-1.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:75dbf8955dc00442a438fc4d0666508a9a97b6bd41aa2f0ffe9d2f2725af0782 +size 4433 diff --git a/python-mypy_extensions.changes b/python-mypy_extensions.changes new file mode 100644 index 0000000..fe7bcc9 --- /dev/null +++ b/python-mypy_extensions.changes @@ -0,0 +1,38 @@ +------------------------------------------------------------------- +Mon Jun 2 14:24:53 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Fri May 5 09:30:55 UTC 2023 - Dirk Müller + +- update to 1.0.0: + * Drop python 2 and 3.4 support + * Add Python 3.9, 3.10, 3.11 + * Add mypyc native int types ia64, i32, i16 and u8 + +------------------------------------------------------------------- +Fri Apr 21 12:28:25 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:42:41 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + +------------------------------------------------------------------- +Fri Oct 18 18:12:52 UTC 2019 - Ondřej Súkup + +- update to 0.4.3 +- removed redudant LICENSE file + +------------------------------------------------------------------- +Sun Aug 26 11:56:04 UTC 2018 - sebix+novell.com@sebix.at + +- update to version 0.4.1, no upstream changelog available + +------------------------------------------------------------------- +Sun Dec 17 14:27:58 UTC 2017 - sebix+novell.com@sebix.at + +- initial package for version 0.3.0 diff --git a/python-mypy_extensions.spec b/python-mypy_extensions.spec new file mode 100644 index 0000000..75cdccc --- /dev/null +++ b/python-mypy_extensions.spec @@ -0,0 +1,56 @@ +# +# spec file for package python-mypy_extensions +# +# Copyright (c) 2025 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-mypy_extensions +Version: 1.0.0 +Release: 0 +Summary: Experimental type system extensions for programs checked with mypy typechecker +License: MIT +Group: Development/Languages/Python +URL: https://www.mypy-lang.org/ +Source: https://files.pythonhosted.org/packages/source/m/mypy_extensions/mypy_extensions-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%python_subpackages + +%description +The "mypy_extensions" module defines experimental extensions to the +standard "typing" module that are supported by the mypy typechecker. + +%prep +%setup -q -n mypy_extensions-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%files %{python_files} +%license LICENSE +%{python_sitelib}/mypy_extensions.py +%{python_sitelib}/mypy_extensions-%{version}*-info +%pycache_only %{python_sitelib}/__pycache__/mypy_extensions + +%changelog From e772a6f4980209f204dae62a2b264b337c16adf2ca14a0cf9918fb2457c4d7d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 2 Jun 2025 14:27:19 +0000 Subject: [PATCH 2/2] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mypy_extensions?expand=0&rev=13 --- python-mypy_extensions.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-mypy_extensions.spec b/python-mypy_extensions.spec index 75cdccc..ac4ec3c 100644 --- a/python-mypy_extensions.spec +++ b/python-mypy_extensions.spec @@ -51,6 +51,6 @@ standard "typing" module that are supported by the mypy typechecker. %license LICENSE %{python_sitelib}/mypy_extensions.py %{python_sitelib}/mypy_extensions-%{version}*-info -%pycache_only %{python_sitelib}/__pycache__/mypy_extensions +%pycache_only %{python_sitelib}/__pycache__/mypy_extensions* %changelog