[med-svn] [Git][python-team/packages/mypy][master] 7 commits: routine-update: New upstream version

Michael R. Crusoe (@crusoe) gitlab at salsa.debian.org
Wed Aug 16 21:51:25 BST 2023



Michael R. Crusoe pushed to branch master at Debian Python Team / packages / mypy


Commits:
b66673fc by Michael R. Crusoe at 2023-08-16T19:43:43+02:00
routine-update: New upstream version

- - - - -
4bb05dd3 by Michael R. Crusoe at 2023-08-16T19:43:44+02:00
New upstream version 1.5.1
- - - - -
26768392 by Michael R. Crusoe at 2023-08-16T19:43:57+02:00
Update upstream source from tag 'upstream/1.5.1'

Update to upstream version '1.5.1'
with Debian dir 581d2e9d50d116d9c33808f9246774a9befc1761
- - - - -
858f2cf4 by Michael R. Crusoe at 2023-08-16T20:00:49+02:00
routine-update: Build-Depends: s/dh-python/dh-sequence-python3/

- - - - -
56708a06 by Michael R. Crusoe at 2023-08-16T22:48:38+02:00
d/source/lintian-overrides: update to match changes in upstream

- - - - -
9503bb50 by Michael R. Crusoe at 2023-08-16T22:48:38+02:00
d/rules: skip the PEP561Suite tests which require internet access

- - - - -
6bd29dfa by Michael R. Crusoe at 2023-08-16T22:48:38+02:00
routine-update: Ready to upload to unstable

- - - - -


10 changed files:

- PKG-INFO
- debian/changelog
- debian/control
- debian/rules
- debian/source/lintian-overrides
- mypy.egg-info/PKG-INFO
- mypy/stubtest.py
- mypy/typeshed/stdlib/typing.pyi
- mypy/typeshed/stdlib/typing_extensions.pyi
- mypy/version.py


Changes:

=====================================
PKG-INFO
=====================================
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: mypy
-Version: 1.5.0
+Version: 1.5.1
 Summary: Optional static typing for Python
 Home-page: https://www.mypy-lang.org/
 Author: Jukka Lehtosalo


=====================================
debian/changelog
=====================================
@@ -1,3 +1,12 @@
+mypy (1.5.1-1) unstable; urgency=medium
+
+  * New upstream version
+  * Build-Depends: s/dh-python/dh-sequence-python3/ (routine-update)
+  * d/source/lintian-overrides: update to match changes in upstream
+  * d/rules: skip the PEP561Suite tests which require internet access
+
+ -- Michael R. Crusoe <crusoe at debian.org>  Wed, 16 Aug 2023 19:44:24 +0200
+
 mypy (1.5.0-1) unstable; urgency=medium
 
   * Team upload.


=====================================
debian/control
=====================================
@@ -5,7 +5,7 @@ Section: utils
 Testsuite: autopkgtest-pkg-python
 Priority: optional
 Build-Depends: debhelper-compat (= 13),
-               dh-python,
+               dh-sequence-python3,
                python3-setuptools,
                pybuild-plugin-pyproject,
                python3-wheel,
@@ -45,8 +45,6 @@ Depends: ${misc:Depends},
          python3-mypy (>= ${binary:Version})
 Recommends: python3-typeshed
 Suggests: mypy-doc
-Breaks: python3-mypy (= 0.740-1)
-Replaces: python3-mypy (= 0.740-1)
 Description: optional static typing for Python
  Add type annotations to your Python programs, and use mypy to type check them.
  Mypy is essentially a Python linter on steroids, and it can catch many


=====================================
debian/rules
=====================================
@@ -6,7 +6,7 @@ PY3VERS=$(shell py3versions -vr)
 
 include /usr/share/dpkg/pkg-info.mk
 ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
-	WITH += ,sphinxdoc
+	WITH += --with sphinxdoc
 endif
 
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
@@ -21,7 +21,7 @@ endif
 
 
 %:
-	dh $@ --with python3$(WITH) --buildsystem=pybuild
+	dh $@ $(WITH) --buildsystem=pybuild
 
 ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
 manpages: debian/sphinx/mypy_options.rst debian/sphinx/stubgen_options.rst debian/dmypy.1 debian/mypy.1 debian/stubgen.1
@@ -80,7 +80,7 @@ ifeq (,$(filter nocheck,$(DEB_BUILD_PROFILES)))
 	dh_auto_install
 	set -e; for v in $(PY3VERS); do \
 		PYTHONPATH=$$(pybuild --print build_dir --pyver $$v | awk '{ print $$3 }') PATH=$$PATH:$(CURDIR)/debian/python3-mypy/usr/bin/ python$$v -m pytest -n auto \
-		-o testpaths="mypy/test mypyc/test" -o python_files=test*.py -k 'not testCustomTypeshedDirWithRelativePathDoesNotCrash' \
+		-o testpaths="mypy/test mypyc/test" -o python_files=test*.py -k 'not (testCustomTypeshedDirWithRelativePathDoesNotCrash or PEP561Suite)' \
 		-o python_classes= -o python_functions= ; \
 	done
 endif


=====================================
debian/source/lintian-overrides
=====================================
@@ -1,3 +1,3 @@
-uses-python-distutils [mypyc/build.py:53]
-uses-python-distutils [mypyc/lib-rt/setup.py:9]
-uses-python-distutils [test-data/packages/typedpkg_ns_b-stubs/setup.py:5]
+#uses-python-distutils [mypyc/build.py:*]
+uses-python-distutils [mypyc/lib-rt/setup.py:*]
+#uses-python-distutils [test-data/packages/typedpkg_ns_b-stubs/setup.py:*]


=====================================
mypy.egg-info/PKG-INFO
=====================================
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: mypy
-Version: 1.5.0
+Version: 1.5.1
 Summary: Optional static typing for Python
 Home-page: https://www.mypy-lang.org/
 Author: Jukka Lehtosalo


=====================================
mypy/stubtest.py
=====================================
@@ -496,7 +496,11 @@ def verify_typeinfo(
     )
 
     # Check everything already defined on the stub class itself (i.e. not inherited)
-    to_check = set(stub.names)
+    #
+    # Filter out non-identifier names, as these are (hopefully always?) whacky/fictional things
+    # (like __mypy-replace or __mypy-post_init, etc.) that don't exist at runtime,
+    # and exist purely for internal mypy reasons
+    to_check = {name for name in stub.names if name.isidentifier()}
     # Check all public things on the runtime class
     to_check.update(
         m for m in vars(runtime) if not is_probably_private(m) and m not in IGNORABLE_CLASS_DUNDERS


=====================================
mypy/typeshed/stdlib/typing.pyi
=====================================
@@ -952,3 +952,7 @@ if sys.version_info >= (3, 12):
         if sys.version_info >= (3, 10):
             def __or__(self, right: Any) -> _SpecialForm: ...
             def __ror__(self, left: Any) -> _SpecialForm: ...
+
+if sys.version_info >= (3, 13):
+    def is_protocol(__tp: type) -> bool: ...
+    def get_protocol_members(__tp: type) -> frozenset[str]: ...


=====================================
mypy/typeshed/stdlib/typing_extensions.pyi
=====================================
@@ -4,26 +4,52 @@ import sys
 import typing
 from _collections_abc import dict_items, dict_keys, dict_values
 from _typeshed import IdentityFunction, Incomplete
-from collections.abc import Iterable
-from typing import (  # noqa: Y022,Y039
+from typing import (  # noqa: Y022,Y037,Y038,Y039
+    IO as IO,
     TYPE_CHECKING as TYPE_CHECKING,
+    AbstractSet as AbstractSet,
     Any as Any,
+    AnyStr as AnyStr,
     AsyncContextManager as AsyncContextManager,
     AsyncGenerator as AsyncGenerator,
     AsyncIterable as AsyncIterable,
     AsyncIterator as AsyncIterator,
     Awaitable as Awaitable,
-    Callable,
+    BinaryIO as BinaryIO,
+    Callable as Callable,
     ChainMap as ChainMap,
     ClassVar as ClassVar,
+    Collection as Collection,
+    Container as Container,
     ContextManager as ContextManager,
     Coroutine as Coroutine,
     Counter as Counter,
     DefaultDict as DefaultDict,
     Deque as Deque,
-    Mapping,
+    Dict as Dict,
+    ForwardRef as ForwardRef,
+    FrozenSet as FrozenSet,
+    Generator as Generator,
+    Generic as Generic,
+    Hashable as Hashable,
+    ItemsView as ItemsView,
+    Iterable as Iterable,
+    Iterator as Iterator,
+    KeysView as KeysView,
+    List as List,
+    Mapping as Mapping,
+    MappingView as MappingView,
+    Match as Match,
+    MutableMapping as MutableMapping,
+    MutableSequence as MutableSequence,
+    MutableSet as MutableSet,
     NoReturn as NoReturn,
-    Sequence,
+    Optional as Optional,
+    Pattern as Pattern,
+    Reversible as Reversible,
+    Sequence as Sequence,
+    Set as Set,
+    Sized as Sized,
     SupportsAbs as SupportsAbs,
     SupportsBytes as SupportsBytes,
     SupportsComplex as SupportsComplex,
@@ -31,8 +57,15 @@ from typing import (  # noqa: Y022,Y039
     SupportsInt as SupportsInt,
     SupportsRound as SupportsRound,
     Text as Text,
+    TextIO as TextIO,
+    Tuple as Tuple,
     Type as Type,
+    Union as Union,
+    ValuesView as ValuesView,
     _Alias,
+    cast as cast,
+    no_type_check as no_type_check,
+    no_type_check_decorator as no_type_check_decorator,
     overload as overload,
     type_check_only,
 )
@@ -109,6 +142,45 @@ __all__ = [
     "get_original_bases",
     "get_overloads",
     "get_type_hints",
+    "AbstractSet",
+    "AnyStr",
+    "BinaryIO",
+    "Callable",
+    "Collection",
+    "Container",
+    "Dict",
+    "ForwardRef",
+    "FrozenSet",
+    "Generator",
+    "Generic",
+    "Hashable",
+    "IO",
+    "ItemsView",
+    "Iterable",
+    "Iterator",
+    "KeysView",
+    "List",
+    "Mapping",
+    "MappingView",
+    "Match",
+    "MutableMapping",
+    "MutableSequence",
+    "MutableSet",
+    "Optional",
+    "Pattern",
+    "Reversible",
+    "Sequence",
+    "Set",
+    "Sized",
+    "TextIO",
+    "Tuple",
+    "Union",
+    "ValuesView",
+    "cast",
+    "get_protocol_members",
+    "is_protocol",
+    "no_type_check",
+    "no_type_check_decorator",
 ]
 
 _T = typing.TypeVar("_T")
@@ -403,3 +475,9 @@ else:
         # Not actually a Protocol at runtime; see
         # https://github.com/python/typeshed/issues/10224 for why we're defining it this way
         def __buffer__(self, __flags: int) -> memoryview: ...
+
+if sys.version_info >= (3, 13):
+    from typing import get_protocol_members as get_protocol_members, is_protocol as is_protocol
+else:
+    def is_protocol(__tp: type) -> bool: ...
+    def get_protocol_members(__tp: type) -> frozenset[str]: ...


=====================================
mypy/version.py
=====================================
@@ -8,7 +8,7 @@ from mypy import git
 # - Release versions have the form "1.2.3".
 # - Dev versions have the form "1.2.3+dev" (PLUS sign to conform to PEP 440).
 # - Before 1.0 we had the form "0.NNN".
-__version__ = "1.5.0"
+__version__ = "1.5.1"
 base_version = __version__
 
 mypy_dir = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))



View it on GitLab: https://salsa.debian.org/python-team/packages/mypy/-/compare/991805e4c74b40cd739cfa29ab2a0a675cbc9bdf...6bd29dfa0eab12650b1b823dc55f85b0cca147e7

-- 
View it on GitLab: https://salsa.debian.org/python-team/packages/mypy/-/compare/991805e4c74b40cd739cfa29ab2a0a675cbc9bdf...6bd29dfa0eab12650b1b823dc55f85b0cca147e7
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20230816/318e3859/attachment-0001.htm>


More information about the debian-med-commit mailing list