[med-svn] [Git][med-team/mypy][master] 4 commits: Build-Depends/autopkgtest: replace python3-types-* with python3-typeshed

Andreas Tille (@tille) gitlab at salsa.debian.org
Sat Nov 13 06:27:55 GMT 2021



Andreas Tille pushed to branch master at Debian Med / mypy


Commits:
dc0df906 by Antonio Terceiro at 2021-11-12T14:07:17-03:00
Build-Depends/autopkgtest: replace python3-types-* with python3-typeshed

Closes: #999479

- - - - -
b06d87f9 by Antonio Terceiro at 2021-11-12T14:07:17-03:00
Recommend python3-typeshed

- - - - -
bc950e7e by Antonio Terceiro at 2021-11-12T14:07:17-03:00
Don't ignore typing for psutil (now provided by typeshed)

- - - - -
a0060ed3 by Andreas Tille at 2021-11-13T06:27:50+00:00
Merge branch 'typeshed' into 'master'

Replace individual python3-types-* packages with typeshed

See merge request med-team/mypy!2
- - - - -


4 changed files:

- debian/control
- + debian/patches/psutils-in-typeshed
- debian/patches/series
- debian/tests/control


Changes:

=====================================
debian/control
=====================================
@@ -17,8 +17,7 @@ Build-Depends: debhelper-compat (= 13),
                python3-sphinx-rtd-theme <!nodoc>,
                python3-typed-ast (>= 1.4.0),
                python3-typed-ast (<< 1.5.0),
-               python3-types-toml,
-               python3-types-typed-ast,
+               python3-typeshed,
                python3-psutil,
                python3-mypy-extensions,
                python3-typing-extensions,
@@ -43,6 +42,7 @@ Depends: ${misc:Depends},
 Suggests: mypy-doc
 Breaks: python3-mypy (= 0.740-1)
 Replaces: python3-mypy (= 0.740-1)
+Recommends: python3-typeshed
 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/patches/psutils-in-typeshed
=====================================
@@ -0,0 +1,14 @@
+Author: Antonio Terceiro <terceiro at debian.org>
+Description: drop typing ignore for psutil (now provided by python3-typeshed)
+Forwarded: not-needed
+--- a/mypy/dmypy_server.py
++++ b/mypy/dmypy_server.py
+@@ -874,7 +874,7 @@ MiB = 2**20  # type: Final
+ def get_meminfo() -> Dict[str, Any]:
+     res = {}  # type: Dict[str, Any]
+     try:
+-        import psutil  # type: ignore  # It's not in typeshed yet
++        import psutil
+     except ImportError:
+         res['memory_psutil_missing'] = (
+             'psutil not found, run pip install mypy[dmypy] '


=====================================
debian/patches/series
=====================================
@@ -1,2 +1,3 @@
 verbose
 intersphinx
+psutils-in-typeshed


=====================================
debian/tests/control
=====================================
@@ -1,3 +1,3 @@
 Tests: run-unit-test
-Depends: mypy, python3-types-toml, python3-types-typed-ast, python3-pytest-xdist, python3-virtualenv, python3-lxml
+Depends: mypy, python3-typeshed, python3-pytest-xdist, python3-virtualenv, python3-lxml
 Restrictions: allow-stderr



View it on GitLab: https://salsa.debian.org/med-team/mypy/-/compare/a2bb9863856f0712fa894b1bef772eb8cfed9a5a...a0060ed3360352193174e1700d9567d4d6ecd6d4

-- 
View it on GitLab: https://salsa.debian.org/med-team/mypy/-/compare/a2bb9863856f0712fa894b1bef772eb8cfed9a5a...a0060ed3360352193174e1700d9567d4d6ecd6d4
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/20211113/397a0864/attachment-0001.htm>


More information about the debian-med-commit mailing list