[packages/python3-mypy_extensions] - python-mypy_extensions.spec updated to 1.1.0 for python 3.8+

qboosh qboosh at pld-linux.org
Thu Jul 3 20:42:26 CEST 2025


commit 001c9aae45095dc35342cd4dd5d2b2b777c39b0e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Jul 3 20:43:55 2025 +0200

    - python-mypy_extensions.spec updated to 1.1.0 for python 3.8+

 python-mypy_extensions.spec  | 99 --------------------------------------------
 python3-mypy_extensions.spec | 60 +++++++++++++++++++++++++++
 2 files changed, 60 insertions(+), 99 deletions(-)
---
diff --git a/python-mypy_extensions.spec b/python-mypy_extensions.spec
deleted file mode 100644
index 4376c5d..0000000
--- a/python-mypy_extensions.spec
+++ /dev/null
@@ -1,99 +0,0 @@
-#
-# Conditional build:
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
-
-Summary:	Experimental type system extensions for programs checked with the mypy typechecker
-Summary(pl.UTF-8):	Eksperymentalne rozszerzenia systemu typowania dla programów sprawdzanych narzędziem mypy
-Name:		python-mypy_extensions
-# keep 0.x here for python2 support
-Version:	0.4.4
-Release:	1
-License:	MIT
-Group:		Libraries/Python
-#Source0Download: https://pypi.org/simple/mypy-extensions/
-Source0:	https://files.pythonhosted.org/packages/source/m/mypy-extensions/mypy_extensions-%{version}.tar.gz
-# Source0-md5:	8d98ac7a315e3cc4aee6c37595ff1021
-URL:		https://pypi.org/project/mypy-extensions/
-%if %{with python2}
-BuildRequires:	python-modules >= 1:2.7
-BuildRequires:	python-setuptools
-%endif
-%if %{with python3}
-BuildRequires:	python3-modules >= 1:3.4
-BuildRequires:	python3-setuptools
-%endif
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
-Requires:	python-modules >= 1:2.7
-BuildArch:	noarch
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-The "mypy_extensions" module defines experimental extensions to the
-standard "typing" module that are supported by the mypy typechecker.
-
-%description -l pl.UTF-8
-Moduł "mypy_extensions" definiuje eksperymentalne rozszerzenia
-standardowego modułu "typing", obsługiwane przez narzędzie do
-kontroli typów mypy.
-
-%package -n python3-mypy_extensions
-Summary:	Experimental type system extensions for programs checked with the mypy typechecker
-Summary(pl.UTF-8):	Eksperymentalne rozszerzenia systemu typowania dla programów sprawdzanych narzędziem mypy
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.4
-
-%description -n python3-mypy_extensions
-The "mypy_extensions" module defines experimental extensions to the
-standard "typing" module that are supported by the mypy typechecker.
-
-%description -n python3-mypy_extensions -l pl.UTF-8
-Moduł "mypy_extensions" definiuje eksperymentalne rozszerzenia
-standardowego modułu "typing", obsługiwane przez narzędzie do
-kontroli typów mypy.
-
-%prep
-%setup -q -n mypy_extensions-%{version}
-
-%build
-%if %{with python2}
-%py_build
-%endif
-
-%if %{with python3}
-%py3_build
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc LICENSE README.md
-%{py_sitescriptdir}/mypy_extensions.py[co]
-%{py_sitescriptdir}/mypy_extensions-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-mypy_extensions
-%defattr(644,root,root,755)
-%doc LICENSE README.md
-%{py3_sitescriptdir}/mypy_extensions.py
-%{py3_sitescriptdir}/__pycache__/mypy_extensions.cpython-*.py[co]
-%{py3_sitescriptdir}/mypy_extensions-%{version}-py*.egg-info
-%endif
diff --git a/python3-mypy_extensions.spec b/python3-mypy_extensions.spec
new file mode 100644
index 0000000..05049e0
--- /dev/null
+++ b/python3-mypy_extensions.spec
@@ -0,0 +1,60 @@
+#
+# Conditional build:
+%bcond_without	tests	# unit tests
+
+Summary:	Experimental type system extensions for programs checked with the mypy typechecker
+Summary(pl.UTF-8):	Eksperymentalne rozszerzenia systemu typowania dla programów sprawdzanych narzędziem mypy
+Name:		python3-mypy_extensions
+Version:	1.1.0
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/mypy-extensions/
+Source0:	https://files.pythonhosted.org/packages/source/m/mypy-extensions/mypy_extensions-%{version}.tar.gz
+# Source0-md5:	f59bfd7f9dca73f36c8feed12f9e8eba
+URL:		https://pypi.org/project/mypy-extensions/
+BuildRequires:	python3-build
+BuildRequires:	python3-flit_core >= 3.11
+BuildRequires:	python3-flit_core < 4
+BuildRequires:	python3-installer
+BuildRequires:	python3-modules >= 1:3.8
+BuildRequires:	python3-setuptools
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 2.044
+Requires:	python3-modules >= 1:3.8
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The "mypy_extensions" module defines experimental extensions to the
+standard "typing" module that are supported by the mypy typechecker.
+
+%description -l pl.UTF-8
+Moduł "mypy_extensions" definiuje eksperymentalne rozszerzenia
+standardowego modułu "typing", obsługiwane przez narzędzie do
+kontroli typów mypy.
+
+%prep
+%setup -q -n mypy_extensions-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+%{__python3} -m unittest discover tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.md
+%{py3_sitescriptdir}/mypy_extensions.py
+%{py3_sitescriptdir}/__pycache__/mypy_extensions.cpython-*.py[co]
+%{py3_sitescriptdir}/mypy_extensions-%{version}.dist-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-mypy_extensions.git/commitdiff/001c9aae45095dc35342cd4dd5d2b2b777c39b0e



More information about the pld-cvs-commit mailing list