Description
Description
The instructions for installing Python Fire from source tell users to run python setup.py install (or python setup.py develop). setup.py was removed when the project moved to pyproject.toml, so following these instructions fails right away. CONTRIBUTING.md also says the test dependencies are "listed in setup.py" and names mock, which is no longer a dependency (the tests use unittest.mock from the standard library).
Files needing change
| File | Line | Current text |
|---|---|---|
README.md |
25 | python setup.py install |
docs/index.md |
25 | python setup.py install |
docs/guide.md |
19 | python setup.py install |
docs/installation.md |
8 | python setup.py install ... python setup.py develop |
CONTRIBUTING.md |
51 | "install the test dependencies listed in setup.py (e.g. pytest, mock, termcolor, and hypothesis)" |
Suggested fix
Replace the old commands with their pip equivalents, which I verified locally in a fresh virtual environment:
- Install from source:
pip install . - Install for development:
pip install -e . - Install with test dependencies:
pip install -e ".[test]"(thetestextra inpyproject.toml), then runpytest
Suggested wording for CONTRIBUTING.md line 51:
To do this, first install the test dependencies with
pip install -e ".[test]"(they are listed under[project.optional-dependencies]inpyproject.toml). Then run the tests by runningpytestin the root directory of the repository.
Following these instructions, pip install -e ".[test]" followed by python -m pytest installs and runs the full test suite (273 tests collected).
Activity
GreedyC commentedon Oct 22, 2026
I will update the source-install and contributor setup instructions to use the pyproject-based pip commands, then verify normal and editable installs plus the test-extra workflow in clean environments.