Compare commits
8 Commits
Author | SHA256 | Date | |
---|---|---|---|
13c1ccdf47 | |||
48a285183b | |||
ba997cb577 | |||
155d2c639e | |||
bc7a98736a | |||
fc308fe740 | |||
4d8260d38c | |||
cd55f5c1cd |
BIN
mypy-1.16.0.tar.gz
(Stored with Git LFS)
BIN
mypy-1.16.0.tar.gz
(Stored with Git LFS)
Binary file not shown.
3
mypy-1.17.0.tar.gz
Normal file
3
mypy-1.17.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e5d7ccc08ba089c06e2f5629c660388ef1fee708444f1dee0b9203fa031dee03
|
||||
size 3352114
|
@@ -1,3 +1,64 @@
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
- Convert to libalternatives
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 29 15:25:57 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
|
||||
|
||||
|
@@ -19,9 +19,14 @@
|
||||
%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.16.0
|
||||
Version: 1.17.0
|
||||
Release: 0
|
||||
Summary: Optional static typing for Python
|
||||
License: MIT
|
||||
@@ -47,14 +52,19 @@ Requires: python-mypy_extensions >= 0.4.3
|
||||
Requires: python-pathspec
|
||||
Requires: python-typing_extensions >= 3.10
|
||||
Requires: (python-tomli >= 1.1.0 if python-base < 3.11)
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Suggests: python-psutil >= 4.0
|
||||
BuildArch: noarch
|
||||
%if "%{python_flavor}" == "python3" || "%{?python_provides}" == "python3"
|
||||
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}
|
||||
@@ -115,6 +125,7 @@ rm docs/make.bat
|
||||
%python_clone -a %{buildroot}%{_bindir}/mypyc
|
||||
%python_clone -a %{buildroot}%{_bindir}/stubgen
|
||||
%python_clone -a %{buildroot}%{_bindir}/stubtest
|
||||
%python_group_libalternatives mypy dmypy mypyc stubgen stubtest
|
||||
# solve "W: python-doc-in-package" in 3.9, 3.10 and 3.11, but not in 3.8 (thus -f to ignore the error)
|
||||
%python_expand rm -rf %{buildroot}%{$python_sitelib}/mypyc/doc
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
@@ -144,6 +155,9 @@ donttest+=" or PEP561Suite"
|
||||
%pytest -n auto -k "not (testallexcept ${donttest})"
|
||||
%endif
|
||||
|
||||
%pre
|
||||
%python_libalternatives_reset_alternative mypy
|
||||
|
||||
%post
|
||||
%python_install_alternative mypy dmypy mypyc stubgen stubtest
|
||||
|
||||
|
Reference in New Issue
Block a user