1 Commits

Author SHA256 Message Date
dadf1232c4 Convert to libalternatives, bsc#1245883 2025-11-03 14:54:59 +01:00
4 changed files with 6 additions and 77 deletions

BIN
mypy-1.16.0.tar.gz LFS Normal file

Binary file not shown.

View File

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

View File

@@ -1,59 +1,3 @@
-------------------------------------------------------------------
Tue Aug 12 12:59:14 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Fix the libalternatives condition
-------------------------------------------------------------------
Thu Jul 24 10:36:56 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Make the libalternatives transition conditional
-------------------------------------------------------------------
Wed Jul 16 10:11:26 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- Update to 1.17.0:
- Optionally Check That Match Is Exhaustive
Mypy can now optionally generate an error if a match
statement does not match exhaustively, without having to use
assert_never(...). Enable this by using --enable-error-code
exhaustive-match.
- Further Improvements to Attribute Resolution
This release includes additional improvements to how
attribute types and kinds are resolved. These fix many bugs
and overall improve consistency.
- Fixes to Nondeterministic Type Checking
Previous mypy versions could infer different types for
certain expressions across different runs (typically
depending on which order certain types were processed, and
this order was nondeterministic). This release includes fixes
to several such issues.
- Remove Support for Targeting Python 3.8
Mypy now requires --python-version 3.9 or greater. Support
for targeting Python 3.8 is fully removed now. Since 3.8
is an unsupported version, mypy will default to the oldest
supported version (currently 3.9) if you still try to target
3.8.
- Initial Support for Python 3.14
Mypy is now tested on 3.14 and mypyc works with 3.14.0b3 and
later. Binary wheels compiled with mypyc for mypy itself will
be available for 3.14 some time after 3.14.0rc1 has been
released.
- Deprecated Flag: --force-uppercase-builtins
Mypy only supports Python 3.9+. The
--force-uppercase-builtins flag is now deprecated as
unnecessary, and a no-op. It will be removed in a future
version.
- Mypyc: Improvements to Generators and Async Functions
This release includes both performance improvements and bug
fixes related to generators and async functions (these share
many implementation details).
- Mypyc: Partial, Unsafe Support for Free Threading
Mypyc has minimal, quite memory-unsafe support for the free
threaded builds of 3.14. It is also only lightly tested. Bug
reports and experience reports are welcome!
- Other Mypyc Fixes and Improvements
- Stubgen Improvements
-------------------------------------------------------------------
Tue Jul 8 08:33:25 UTC 2025 - Markéta Machová <mmachova@suse.com>

View File

@@ -19,14 +19,10 @@
%define types_psutil_version 7.0.0.20250401
%define types_setuptools_version 78.1.0.20250329
%bcond_without test
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?sle15_python_module_pythons}
Name: python-mypy
Version: 1.17.0
Version: 1.16.0
Release: 0
Summary: Optional static typing for Python
License: MIT
@@ -46,8 +42,10 @@ BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module tomli >= 1.1.0}
BuildRequires: %{python_module typing_extensions >= 4.6.0}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: alts
Requires: python-mypy_extensions >= 0.4.3
Requires: python-pathspec
Requires: python-typing_extensions >= 3.10
@@ -58,13 +56,6 @@ BuildArch: noarch
Provides: mypy = %{version}
Obsoletes: mypy < %{version}
%endif
%if %{with libalternatives}
BuildRequires: alts
Requires: alts
%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
%endif
%if %{with test}
BuildRequires: %{python_module attrs >= 18}
BuildRequires: %{python_module devel}
@@ -158,12 +149,6 @@ donttest+=" or PEP561Suite"
%pre
%python_libalternatives_reset_alternative mypy
%post
%python_install_alternative mypy dmypy mypyc stubgen stubtest
%postun
%python_uninstall_alternative mypy
%files %{python_files}
%doc docs/
%license LICENSE