Adopt sphinx-scrapy, with docs dependencies in a dependency group

Aperta
#1,613 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@yamilmaud ci sta già lavorando.

Dal 27/11/2026.

  • #1614 di @yamilmaud — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
25/100
Tipo di issue
Documentazione
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
documentation

Direzione di ricerca

The docs build is configured in docs/conf.py, tox.ini under [testenv:docs], and .readthedocs.yml; the dependencies live in docs/requirements.txt. A pull request #1614 is already open against this issue, so the work is claimed. Check that PR's state before starting; if you pick it up, done means the docs build passes with -W and installs from a pyproject.toml docs dependency group.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Summary

Adopt sphinx-scrapy 0.15.0 for the documentation build, and move the Sphinx docs dependencies out of docs/requirements.txt into a docs dependency group in pyproject.toml.

This project currently fails two checks in the zyte-oss-maintenance report:

  • sphinx-scrapy: sphinx_scrapy not in docs/conf.py.
  • no-docs-requirements: found docs/requirements.txt.

Current state

  • docs/conf.py uses sphinx_rtd_theme as both an extension and the HTML theme.
  • docs/requirements.txt pins sphinx==7.2.6 and sphinx-rtd-theme==1.3.0, installed via -rdocs/requirements.txt in tox.ini's [testenv:docs] and via requirements: docs/requirements.txt in .readthedocs.yml.

Proposed changes

  • Switch docs/conf.py from sphinx_rtd_theme to sphinx-scrapy 0.15.0, and add its pre-commit hook (pinned to the same version as the tox requires, per the sphinx-scrapy-pins check).
  • Move the docs dependencies into a docs dependency group in pyproject.toml (PEP 735 [dependency-groups]), instead of docs/requirements.in/docs/requirements.txt — the no-docs-requirements check requires the dependency-group form, not a requirements file (even a compiled one).
  • Update the docs env in tox.ini and the Python install section of .readthedocs.yml to install from that dependency group instead of docs/requirements.txt.
  • Keep tox -e docs building with -W (fail-on-warning).

Reference

Lingua principale
Python
Stelle
2.9k
Fork
545
Merge medio
2g 4h
PR unite (30g)
17

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di scrapinghub/dateparser

Tutte le issue di scrapinghub/dateparser

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.