Skip to content

chore(deps): 5 potential updates identified. mock is deprecated (unittest.mock in std#1603

Open
isagoakira wants to merge 2 commits into
nvbn:masterfrom
isagoakira:fix/deps-update-1780711354
Open

chore(deps): 5 potential updates identified. mock is deprecated (unittest.mock in std#1603
isagoakira wants to merge 2 commits into
nvbn:masterfrom
isagoakira:fix/deps-update-1780711354

Conversation

@isagoakira

Copy link
Copy Markdown

🔧 依赖维护更新 — nvbn/thefuck

此 PR 由 Code Legacy Reviver 自动生成🤖

📋 更新摘要

5 potential updates identified. mock is deprecated (unittest.mock in stdlib since 3.3). pypandoc, flake8, twine have meaningful improvements. Decorator<5 and pyte<0.8.1 in setup.py are intentional Python 2.7 compatibility pins—DO NOT change those.

📦 变更清单

🟡 mock: unpinnedunnecessary
mock package is deprecated; unittest.mock is built into Python 3.3+. If supporting Python 2.7 only, consider conditional dependency.

🟡 pypandoc: unpinned~1.13
pypandoc had breaking API changes in v1.0 (2020). Current version supports modern pandoc features.

🟡 flake8: unpinned~7.0
Major version jumps since 2019 (E501/F401 rules changed, pycodestyle replaced). Safe to upgrade within major version.

🟡 twine: unpinned~4.0
Twine 3.x/4.x added keyring integration and improved security. Safe minor upgrade.

🟢 pexpect: unpinned~4.9
4.x branch added important fixes. Current unpinned likely pulls 4.x already, but explicit ~4.9 ensures recent fixes.

⚠️ 风险等级

🟡 Medium

📝 文件变更

  • requirements.txt
  • setup.py

Generated by Code Legacy Reviver

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant