8 Commits

Author SHA256 Message Date
13c1ccdf47 Accepting request 1299074 from devel:languages:python
- Fix the libalternatives condition

OBS-URL: https://build.opensuse.org/request/show/1299074
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mypy?expand=0&rev=17
2025-08-13 14:23:08 +00:00
48a285183b - Fix the libalternatives condition
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mypy?expand=0&rev=43
2025-08-12 13:00:05 +00:00
ba997cb577 Accepting request 1296148 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1296148
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mypy?expand=0&rev=16
2025-07-30 09:41:11 +00:00
155d2c639e - Make the libalternatives transition conditional
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mypy?expand=0&rev=41
2025-07-28 13:20:04 +00:00
bc7a98736a Accepting request 1293793 from devel:languages:python
- 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

OBS-URL: https://build.opensuse.org/request/show/1293793
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mypy?expand=0&rev=15
2025-07-17 15:17:08 +00:00
fc308fe740 - 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mypy?expand=0&rev=39
2025-07-16 10:53:00 +00:00
4d8260d38c Accepting request 1291195 from devel:languages:python
- Convert to libalternatives

OBS-URL: https://build.opensuse.org/request/show/1291195
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mypy?expand=0&rev=14
2025-07-09 15:26:01 +00:00
cd55f5c1cd - Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mypy?expand=0&rev=37
2025-07-08 08:37:30 +00:00
4 changed files with 81 additions and 6 deletions

BIN
mypy-1.16.0.tar.gz (Stored with Git LFS)

Binary file not shown.

3
mypy-1.17.0.tar.gz Normal file
View File

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

View File

@@ -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>

View File

@@ -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