Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package mypy for openSUSE:Factory checked in at 2021-02-01 13:26:44 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/mypy (Old) and /work/SRC/openSUSE:Factory/.mypy.new.28504 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "mypy" Mon Feb 1 13:26:44 2021 rev:21 rq:866688 version:0.800 Changes: -------- --- /work/SRC/openSUSE:Factory/mypy/mypy.changes 2020-10-20 16:12:15.794062434 +0200 +++ /work/SRC/openSUSE:Factory/.mypy.new.28504/mypy.changes 2021-02-01 13:28:31.786133543 +0100 @@ -1,0 +2,89 @@ +Mon Jan 25 22:16:46 UTC 2021 - Benjamin Greiner <code@bnavigator.de> + +- Provide the toolname only for the primary python3 flavor in order + to avoid choice conflicts. +- python3-mypy and python3Y-mypy are provided automatically. + +------------------------------------------------------------------- +Sat Jan 23 19:22:44 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at> + +- Update to version 0.800: + - Python 3.9 Support + - Typing Usability Improvements (PEP 585 and PEP 604) + The necessity to repeatedly import various types and special forms from typing has been a long-term nuisance for users of static type checking and Python. + Two new Python features improve this situation and are now supported by mypy: + PEP 585 lets you use list[int] instead of List[int] (no need to import List and other generic collections from typing). + PEP 604 lets you write X | Y instead of Union[X, Y], and X | None instead of Optional[X] (no need to import Union or Optional from typing). + Note: Using list[int] requires Python 3.9 and X | Y requires Python 3.10 (alpha) in order to work at runtime. To use them on older versions of Python, use from __future__ import annotations. This allows them to be used in type annotations, but the older variants (or string literal escaping) may be required in non-annotation contexts, such as in type aliases. See the docs for more details. + Here is an example that uses the new features: + from __future__ import annotations + def fields(s: str | None) -> list[str]: + if not s: + return [] + else: + return s.split(',') + These were implemented by Allan Daemon in PR 9564 and by Marc Mueller in PR 9647. + - Improvements to Finding Modules + This release adds several improvements to how mypy finds Python source files to type check. + You can now pass paths to files within namespace packages on the command line, and mypy can better infer their module names. As before, use --namespace-packages to enable namespace packages. + When you use --explicit-package-bases together with --namespace-packages, mypy assumes that only the current directory and directories explicitly specified in MYPYPATH (or mypy_path in the config file) are valid package roots. This can help with situations where the module name of a file is ambiguous. For example, it may not be clear whether src/pkg/mod.py should be treated as src.pkg.mod or pkg.mod, and you can use this option to disambiguate between the two (more information in the docs). + The above improvements were implemented in PR 9742 by Shantanu. + Other related improvements (also implemented by Shantanu): + - When you run mypy as mypy <directory>, look for source files recursively also inside directories without a __init__.py (PR 9614) + - Support namespace packages with -p (PR 9683) + - Log encountered source files when running mypy with -v (PR 9672) + - Document the new module finding behavior (PR 9923) + - Other Notable Improvements and Bug Fixes + - Only treat import X as X as a re-export in stubs (Shantanu, PR 9515) + - Fix package imports with aliases in stubgen (Chad Dombrova, PR 9534) + - Require first argument of namedtuple() to match the variable name (Momoko Hattori, PR 9577) + - Add error code for name mismatches in named tuples and TypedDicts to make it easy to disable these error messages (Jukka Lehtosalo, PR 9811) + - Document local_partial_types config option (Momoko Hattori, PR 9551) + - Improve ambiguous kwargs checking (Erik Soma, PR 9573) + - Disable unreachable warnings in boolean operators for type variables with value restrictions (Vincent Barbaresi, PR 9572) + - Allow assignment to an empty tuple (Tobin Yehle, PR 5617) + - Use absolute path when checking source duplication error (Yuki Igarashi, PR 9059) + - Add get_function_signature_hook() to the plugin API (Nikita Sobolev, PR 9102) + - Speed up type checking of dictionary, set, and list expressions (Hugues, PR 9477) + - Allow non-types as arguments in Annotated (Patrick Arminio, PR 9625) + - Add support for next generation attrs API (David Euresti, PR 9396) + - Fix case folding of missing keys error message for TypedDicts (Marti Raudsepp, PR 9757) + - Fix generic inheritance of __init__() methods in dataclasses and attrs classes (Nate McMaster, PR 9383, PR 9380) + - Add more information to error message on too few arguments (Abhinay Pandey, PR 9796) + - Document PEP 585, 563, 604, and related functionality (Shantanu, PR 9763) + - Mypyc Improvements + We use mypyc to compile mypy into fast C extension modules. This release includes many mypyc improvements. + Xuanda Yang finished the migration to use a new, lower-level compiler intermediate representation in his Google Summer of Code project. + - New supported Python features: + - Support the walrus operator (:=) (Michael J. Sullivan, PR 9624) + - Performance improvements: + - Add primitives for list sort and list reverse (Jukka Lehtosalo, PR 9897) + - Recognize six.moves.xrange again as an alias of range (Jukka Lehtosalo, PR 9896) + - Speed up some integer primitives (Jukka Lehtosalo, PR 9801) + - Speed up if x for int values (Jukka Lehtosalo, PR 9854) + - Implement dict clear primitive (Vasileios Sakkas, PR 9724) + - Implement list insert primitive (Vasileios Sakkas, PR 9741) + - Implement float abs primitive (Xuanda Yang, PR 9695) + - Implement str-to-float primitive (Xuanda Yang, PR 9685) + - Specialize some calls to frozenset (Michael J. Sullivan, PR 9623) + - Speed up multiple assignment from tuple (Xuanda Yang, PR 9575) + - Speed up multiple assignment from sequence (Jukka Lehtosalo, PR 9800) + - Optimize startswith and endswith (Tomer Chachamu, PR 9557) + - Add primitives for bitwise ops (Jukka Lehtosalo, PR 9529) + - Speed up in operations for list/tuple (Johan Dahlin, PR 9004) + - Add primitives for list, str and tuple slicing (Jukka Lehtosalo, PR 9283) + - Speed up tuple equality checks (Xuanda Yang, PR 9343) + - Bug fixes: + - Always add implicit None return type to __init__ method (Thomas Johnson, PR 9866) + - Fix deallocation of deeply nested data structures (Michael J. Sullivan, PR 9839) + - Fix using package imported inside a function (Jukka Lehtosalo, PR 9782) + - Fix type of for loop index register in for over range (Jukka Lehtosalo, PR 9634) + +------------------------------------------------------------------- +Fri Jan 22 15:48:13 UTC 2021 - Mark��ta Machov�� <mmachova@suse.com> + +- Convert to single-spec +- Use update-alternatives to handle binaries +- Do not expect python3.5 during tests + +------------------------------------------------------------------- Old: ---- mypy-0.790.tar.gz New: ---- mypy-0.800.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mypy.spec ++++++ --- /var/tmp/diff_new_pack.zjrrT8/_old 2021-02-01 13:28:32.514134676 +0100 +++ /var/tmp/diff_new_pack.zjrrT8/_new 2021-02-01 13:28:32.514134676 +0100 @@ -1,7 +1,7 @@ # # spec file for package mypy # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,8 +16,9 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: mypy -Version: 0.790 +Version: 0.800 Release: 0 Summary: Optional static typing for Python License: MIT @@ -25,26 +26,30 @@ URL: http://www.mypy-lang.org/ Source0: https://files.pythonhosted.org/packages/source/m/mypy/mypy-%{version}.tar.gz Source99: mypy-rpmlintrc +BuildRequires: %{python_module mypy_extensions >= 0.4.0} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module typed-ast >= 1.4.0} +BuildRequires: %{python_module typing_extensions >= 3.7.4} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRequires: python3-mypy_extensions >= 0.4.0 -BuildRequires: python3-setuptools -BuildRequires: python3-typed-ast >= 1.4.0 -BuildRequires: python3-typing_extensions >= 3.7.4 +Requires: python-mypy_extensions >= 0.4.0 +Requires: python-typed-ast >= 1.4.0 +Requires: python-typing_extensions >= 3.7.4 +Requires(post): update-alternatives +Requires(postun): update-alternatives +%if "%{python_flavor}" == "python3" || "%{?python_provides}" == "python3" +Provides: mypy = %{version} +Obsoletes: mypy < %{version} +%endif +BuildArch: noarch # SECTION tests -BuildRequires: python3-pytest +BuildRequires: %{python_module pytest} # /SECTION -Requires: python3 -Requires: python3-mypy_extensions >= 0.4.0 -Requires: python3-typed-ast >= 1.4.0 -Requires: python3-typing_extensions >= 3.7.4 -Provides: python3-mypy = %{version} -Obsoletes: python3-mypy < %{version} -BuildArch: noarch # SECTION docs BuildRequires: python3-Sphinx >= 1.4.4 BuildRequires: python3-sphinx_rtd_theme >= 0.1.9 # /SECTION +%python_subpackages %description Mypy is an optional static type checker for Python that aims to @@ -69,32 +74,43 @@ sed -i '1s/env //' mypy/typeshed/scripts/update-stubtest-whitelist.py %build -%python3_build +%python_build pushd docs -make %{?_smp_mflags} html +%make_build html rm build/html/.buildinfo popd %install -%python3_install -%fdupes %{buildroot} +%python_install +%python_clone -a %{buildroot}%{_bindir}/dmypy +%python_clone -a %{buildroot}%{_bindir}/mypy +%python_clone -a %{buildroot}%{_bindir}/mypyc +%python_clone -a %{buildroot}%{_bindir}/stubgen +%python_clone -a %{buildroot}%{_bindir}/stubtest +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check -export PYTHONPATH=%{buildroot}%{python3_sitelib} sed -i '/plugin/d' ./mypy_self_check.ini sed -i '/warn_unused_ignores/d' ./mypy_self_check.ini -python3 -m mypy --config-file mypy_self_check.ini -p mypy +sed -i '/python_version.*$/d' ./mypy_self_check.ini +%python_exec -m mypy --config-file mypy_self_check.ini -p mypy # py.test3 -v ��� we need to analyze subset of tests which would be # available and without large dependencies. -%files +%post +%python_install_alternative mypy dmypy mypyc stubgen stubtest + +%postun +%python_uninstall_alternative mypy + +%files %{python_files} %doc docs/README.md docs/build/html/ %license LICENSE -%{python3_sitelib}/* -%{_bindir}/dmypy -%{_bindir}/mypy -%{_bindir}/mypyc -%{_bindir}/stubgen -%{_bindir}/stubtest +%{python_sitelib}/* +%python_alternative %{_bindir}/dmypy +%python_alternative %{_bindir}/mypy +%python_alternative %{_bindir}/mypyc +%python_alternative %{_bindir}/stubgen +%python_alternative %{_bindir}/stubtest %changelog ++++++ mypy-0.790.tar.gz -> mypy-0.800.tar.gz ++++++ ++++ 73179 lines of diff (skipped)
participants (1)
-
Source-Sync