Update bundled test `setuptools.whl` file
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 66/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- python
- 領域
- build-system
調査の方向性
Lib/test/wheeldata/setuptools-79.0.1-py3-none-any.whlと、参照されているsetuptoolsの変更から始め、非推奨のtyping.AnyStrのインポートを回避する、同梱wheelの更新後のバージョンを特定してください。issueにリンクされたCPythonのテスト失敗と、PR #150190の議論を確認してください。対象のテストで同梱wheelがこの非推奨警告を発生させなくなれば完了です。
索引モデルが issue の本文から書いたものです。
説明
File: https://github.com/python/cpython/blob/main/Lib/test/wheeldata/setuptools-79.0.1-py3-none-any.whl
Why the update is needed?
- We want to deprecate
typing.AnyStr, which in older versions ofsetuptoolsit was used indistutilsbundled withsetuptools: https://github.com/pypa/setuptools/pull/5232 - It now fails tests with a new deprecation warning https://github.com/python/cpython/actions/runs/40683617713/job/122801165319?pr=150190
======================================================================
ERROR: test_syntax_error_for_string (test.test_peg_generator.test_c_parser.TestCParser.test_syntax_error_for_string)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/runner/work/cpython/cpython-ro-srcdir/Lib/test/test_peg_generator/test_c_parser.py", line 121, in setUp
cmd = support.missing_compiler_executable()
File "/home/runner/work/cpython/cpython-ro-srcdir/Lib/test/support/__init__.py", line 2218, in missing_compiler_executable
from setuptools._distutils import ccompiler, sysconfig
File "/home/runner/work/cpython/cpython-builddir/build/test_python_61704æ/tempcwd/venv/lib/python3.16/site-packages/setuptools/_distutils/ccompiler.py", line 1, in <module>
from .compat.numpy import ( # noqa: F401
...<2 lines>...
)
File "/home/runner/work/cpython/cpython-builddir/build/test_python_61704æ/tempcwd/venv/lib/python3.16/site-packages/setuptools/_distutils/compat/numpy.py", line 2, in <module>
from ..compilers.C.base import _default_compilers, compiler_class # noqa: F401
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/work/cpython/cpython-builddir/build/test_python_61704æ/tempcwd/venv/lib/python3.16/site-packages/setuptools/_distutils/compilers/C/base.py", line 34, in <module>
from ...util import execute, is_mingw, split_quoted
File "/home/runner/work/cpython/cpython-builddir/build/test_python_61704æ/tempcwd/venv/lib/python3.16/site-packages/setuptools/_distutils/util.py", line 20, in <module>
from typing import TYPE_CHECKING, AnyStr
File "/home/runner/work/cpython/cpython-ro-srcdir/Lib/typing.py", line 3950, in __getattr__
warnings._deprecated(
~~~~~~~~~~~~~~~~~~~~^
"typing.AnyStr",
^^^^^^^^^^^^^^^^
...<5 lines>...
remove=(3, 21),
^^^^^^^^^^^^^^^
)
^
File "/home/runner/work/cpython/cpython-ro-srcdir/Lib/_py_warnings.py", line 893, in _deprecated
_wm.warn(msg, DeprecationWarning, stacklevel=stacklevel)
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
DeprecationWarning: 'typing.AnyStr' is deprecated and slated for removal in Python 3.21. Use PEP 695 type parameters with constraints instead
The other option is to ignore this warning in all places where we import setuptools.
Refs https://github.com/python/cpython/pull/150190#discussion_r4400346235
Refs https://github.com/python/cpython/issues/132415
CC @jaraco
- 主要言語
- Python
- スター
- 77.8k
- フォーク
- 37.7k
- 平均マージ
- 12時間 27分
- マージ済み PR(30日)
- 710
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
python/cpython のほかの issue
-
3.16 build type-bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
python/cpython#160829 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
symtable: repr() of a Symbol raises TypeError under -X lazy_imports=all対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンstdlib topic-lazy-imports type-bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
python/cpython#160810 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
tarfile: extractfile(member).read() of a sparse member is slow due to repeated bytes concatenationオープンperformance stdlib triaged type-bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
python/cpython#160774 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
tests topic-profiling type-bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
python/cpython#160334 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
`iso2022_jp_3` encodes U+9B1D but decodes the result as U+9B1C対応中かも @kinqsradio が 3 日前に担当しました。 オープンextension-modules type-bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
changelog investigate
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
ramnes/notion-sdk-py#433 ·
-
docs pkg:core
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
pydantic/pydantic-ai#11929 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
intake/intake-esm#789 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
MemMachine/MemMachine#1877 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
openedx/openedx-authz#579 ·
メンテナーはふだん 1 日以内に返信