Skip to content

Remove standard library modules from requirements.txt - #1

Merged
seregonwar merged 1 commit into
seregonwar:mainfrom
jmzumg:main
Jul 25, 2025
Merged

seregonwar merged 1 commit into
seregonwar:mainfrom
jmzumg:main

Conversation

@jmzumg

@jmzumg jmzumg commented Jul 25, 2025

Copy link
Copy Markdown
Contributor

The removed modules are all available from the standard library, and as such should not be in requirements.txt.

I noticed this because running pip install -r requirements.txt showed me the following error, since there is no contextlib package on pypi:

Collecting argparse (from -r requirements.txt (line 1))
  Downloading argparse-1.4.0-py2.py3-none-any.whl.metadata (2.8 kB)

ERROR: Could not find a version that satisfies the requirement contextlib (from versions: none)
ERROR: No matching distribution found for contextlib

Also, note that the version of argparse that was installed is actually this obsolete/third party package from pypi, rather than standard library module which does not need to be installed with pip.

The removed modules are all available from the standard library, and as such should not be in requirements.txt
@seregonwar

Copy link
Copy Markdown
Owner

Thanks for the fix, I'll proceed with merging the pull request.

@seregonwar
seregonwar merged commit c36844e into seregonwar:main Jul 25, 2025
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.

2 participants