Setup docs still say `python setup.py install`, but `setup.py` was removed

Offen Anfängerfreundlich
#718 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

@GreedyC arbeitet bereits daran.

Seit 22.10.2026.

  • #719 von @GreedyC — offen

Bewertung

Schwierigkeit
1/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
93/100
Issue-Typ
Dokumentation
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
python
Bereich
documentation

Rechercherichtung

Aktualisiere die Installationsbefehle in README.md, docs/index.md, docs/guide.md und docs/installation.md und korrigiere anschließend die Anweisungen für Testabhängigkeiten in CONTRIBUTING.md mithilfe des in pyproject.toml definierten Test-Extras. Vergleiche zunächst diese Dateien mit pyproject.toml; fertig ist die Aufgabe, wenn die dokumentierten Installations- und Testbefehle mit der aktuellen Projekteinrichtung übereinstimmen.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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]" (the test extra in pyproject.toml), then run pytest

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] in pyproject.toml). Then run the tests by running pytest in 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).

Vorherrschende Sprache
Python
Sterne
28.2k
Forks
1.5k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus google/python-fire

Alle Issues in google/python-fire

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.