From f9b9a2c1039973da32f9ccea8d700729553d579d Mon Sep 17 00:00:00 2001 From: Ivan Levkivskyi Date: Sat, 27 Sep 2025 22:30:40 +0100 Subject: [PATCH] Use published version of librt --- mypy-requirements.txt | 1 + mypy_self_check.ini | 1 + mypyc/lib-rt/setup.py | 4 +--- pyproject.toml | 1 + setup.py | 2 -- test-requirements.txt | 2 ++ 6 files changed, 6 insertions(+), 5 deletions(-) diff --git a/mypy-requirements.txt b/mypy-requirements.txt index 8965a70c13b7..6927ddd25d81 100644 --- a/mypy-requirements.txt +++ b/mypy-requirements.txt @@ -4,3 +4,4 @@ typing_extensions>=4.6.0 mypy_extensions>=1.0.0 pathspec>=0.9.0 tomli>=1.1.0; python_version<'3.11' +librt>=0.1.0 diff --git a/mypy_self_check.ini b/mypy_self_check.ini index 67b65381cfd0..0b49b3de862b 100644 --- a/mypy_self_check.ini +++ b/mypy_self_check.ini @@ -13,3 +13,4 @@ enable_error_code = ignore-without-code,redundant-expr enable_incomplete_feature = PreciseTupleTypes show_error_code_links = True warn_unreachable = True +fixed_format_cache = True diff --git a/mypyc/lib-rt/setup.py b/mypyc/lib-rt/setup.py index 3a5976cf88b2..36b55e44dcd1 100644 --- a/mypyc/lib-rt/setup.py +++ b/mypyc/lib-rt/setup.py @@ -73,8 +73,6 @@ def run(self) -> None: # TODO: we need a way to share our preferred C flags and get_extension() logic with # mypyc/build.py without code duplication. setup( - name="mypy-native", - version="0.0.1", ext_modules=[ Extension( "native_internal", @@ -88,5 +86,5 @@ def run(self) -> None: ], include_dirs=["."], ) - ], + ] ) diff --git a/pyproject.toml b/pyproject.toml index 032bfcb609e7..46593af0ab72 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,6 +9,7 @@ requires = [ "mypy_extensions>=1.0.0", "pathspec>=0.9.0", "tomli>=1.1.0; python_version<'3.11'", + "librt>=0.1.0", # the following is from build-requirements.txt "types-psutil", "types-setuptools", diff --git a/setup.py b/setup.py index 798ff4f6c710..3f53d96dbd85 100644 --- a/setup.py +++ b/setup.py @@ -156,8 +156,6 @@ def run(self) -> None: log_trace=log_trace, # Mypy itself is allowed to use native_internal extension. depends_on_native_internal=True, - # TODO: temporary, remove this after we publish mypy-native on PyPI. - install_native_libs=True, ) else: diff --git a/test-requirements.txt b/test-requirements.txt index 521208c5aa27..5402adcb682c 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -22,6 +22,8 @@ identify==2.6.13 # via pre-commit iniconfig==2.1.0 # via pytest +librt==0.1.0 + # via -r mypy-requirements.txt lxml==6.0.1 ; python_version < "3.15" # via -r test-requirements.in mypy-extensions==1.1.0