14
0
forked from pool/python-mypy

- Temporarily switched to using git source before the problems

with 3.13.0 compatibility are fixed.
- Update to version 1.11.2+git.1728499967.eca206d:
  * Fix union callees with functools.partial (#17903)
  * [mypyc] Add "runtests.py mypyc-fast" for running fast mypyc tests (#17906)
  * Emit error for "raise NotImplemented" (#17890)
  * Document ReadOnly (PEP 705) (#17905)
  * Make ReadOnly TypedDict items covariant (#17904)
  * documentation for TypeIs (#17821)
  * Improvements to functools.partial of types (#17898)
  * Use 3.13.0 for ci tests (#17900)
  * stubtest: Stop telling people to use double underscores (#17897)
  * Add changelog for mypy 1.12 (#17889)
- Remove upstreamed latest-pythons.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mypy?expand=0&rev=22
This commit is contained in:
2024-10-10 12:17:41 +00:00
committed by Git OBS Bridge
parent 97ab06fd88
commit 936977352f
8 changed files with 49 additions and 36 deletions

15
_service Normal file
View File

@@ -0,0 +1,15 @@
<services>
<service name="obs_scm" mode="manual">
<param name="scm">git</param>
<param name="url">https://github.com/python/mypy.git</param>
<param name="versionprefix">1.11.2+git</param>
<param name="changesgenerate">enable</param>
<param name="changesauthor">mcepl@cepl.eu</param>
</service>
<service name="tar" mode="buildtime"/>
<service name="recompress" mode="buildtime">
<param name="file">*.tar</param>
<param name="compression">gz</param>
</service>
<service name="set_version" mode="manual"/>
</services>

4
_servicedata Normal file
View File

@@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/python/mypy.git</param>
<param name="changesrevision">eca206d3c96bf4082a0a087c2614deb5af8c4afd</param></service></servicedata>

View File

@@ -1,28 +0,0 @@
From 1a2c8e2a4df21532e4952191cad74ae50083f4ad Mon Sep 17 00:00:00 2001
From: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Date: Sat, 28 Sep 2024 14:20:45 -0700
Subject: [PATCH] Fix tests on latest Python 3.13 (and 3.12) (#17849)
Related to python/cpython@c6c3d970ba54f4ad4c4151bb262cef96d3299480
(python/cpython#121329), thanks to brianschubert for noticing
---
mypyc/test-data/run-dicts.test | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/mypyc/test-data/run-dicts.test b/mypyc/test-data/run-dicts.test
index 58b862e3f303..d4f5b945309e 100644
--- a/mypyc/test-data/run-dicts.test
+++ b/mypyc/test-data/run-dicts.test
@@ -157,7 +157,11 @@ else:
try:
clear_during_iter(d)
except RuntimeError as e:
- assert str(e) == "OrderedDict changed size during iteration"
+ assert str(e) in (
+ "OrderedDict changed size during iteration",
+ # Error message changed in Python 3.13 and some 3.12 patch version
+ "OrderedDict mutated during iteration",
+ )
else:
assert False

View File

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

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7f9993ad3e0ffdc95c2a14b66dee63729f021968bff8ad911867579c65d13a79
size 3078806

4
mypy.obsinfo Normal file
View File

@@ -0,0 +1,4 @@
name: mypy
version: 1.11.2+git.1728499967.eca206d
mtime: 1728499967
commit: eca206d3c96bf4082a0a087c2614deb5af8c4afd

View File

@@ -1,3 +1,21 @@
-------------------------------------------------------------------
Wed Oct 09 22:17:25 UTC 2024 - mcepl@cepl.eu
- Temporarily switched to using git source before the problems
with 3.13.0 compatibility are fixed.
- Update to version 1.11.2+git.1728499967.eca206d:
* Fix union callees with functools.partial (#17903)
* [mypyc] Add "runtests.py mypyc-fast" for running fast mypyc tests (#17906)
* Emit error for "raise NotImplemented" (#17890)
* Document ReadOnly (PEP 705) (#17905)
* Make ReadOnly TypedDict items covariant (#17904)
* documentation for TypeIs (#17821)
* Improvements to functools.partial of types (#17898)
* Use 3.13.0 for ci tests (#17900)
* stubtest: Stop telling people to use double underscores (#17897)
* Add changelog for mypy 1.12 (#17889)
- Remove upstreamed latest-pythons.patch
-------------------------------------------------------------------
Fri Oct 4 14:11:11 UTC 2024 - Markéta Machová <mmachova@suse.com>

View File

@@ -21,19 +21,18 @@
%define types_psutil_version 5.9.5.17
%define types_setuptools_version 68.2.0.0
Name: python-mypy
Version: 1.11.2
Version: 1.11.2+git.1728499967.eca206d
Release: 0
Summary: Optional static typing for Python
License: MIT
URL: https://www.mypy-lang.org/
Source0: https://files.pythonhosted.org/packages/source/m/mypy/mypy-%{version}.tar.gz
# Source0: https://files.pythonhosted.org/packages/source/m/mypy/mypy-%%{version}.tar.gz
Source0: mypy-%{version}.tar.gz
# License Source1: Apache-2.0. Only for the test suite, not packaged here.
Source1: https://files.pythonhosted.org/packages/source/t/types-psutil/types-psutil-%{types_psutil_version}.tar.gz
# License Source2: Apache-2.0. Only for the test suite, not packaged here.
Source2: https://files.pythonhosted.org/packages/source/t/types-setuptools/types-setuptools-%{types_setuptools_version}.tar.gz
Source99: python-mypy-rpmlintrc
# PATCH-FIX-UPSTREAM https://github.com/python/mypy/pull/17849 Fix tests on latest Python 3.13 (and 3.12)
Patch0: latest-pythons.patch
BuildRequires: %{python_module exceptiongroup}
BuildRequires: %{python_module mypy_extensions >= 1.0.0}
BuildRequires: %{python_module pip}
@@ -154,7 +153,8 @@ donttest+=" or PEP561Suite"
%license LICENSE
%{python_sitelib}/mypy
%{python_sitelib}/mypyc
%{python_sitelib}/mypy-%{version}.dist-info
# %{python_sitelib}/mypy-%%{version}.dist-info
%{python_sitelib}/mypy-*.dist-info
%python_alternative %{_bindir}/dmypy
%python_alternative %{_bindir}/mypy
%python_alternative %{_bindir}/mypyc