Merge pull request #3257 from pajod/patch-no-docs-build-in-sdist

exclude generate html files from source tarballs (sdist)
This commit is contained in:
Benoit Chesneau 2024-08-06 19:38:26 +02:00 committed by GitHub
commit cefa314c62
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 7 additions and 2 deletions

1
.gitignore vendored
View File

@ -7,6 +7,7 @@
.tox .tox
__pycache__ __pycache__
build build
docs/_build
coverage.xml coverage.xml
dist dist
examples/frameworks/django/testing/testdb.sql examples/frameworks/django/testing/testdb.sql

View File

@ -10,4 +10,6 @@ recursive-include examples *
recursive-include docs * recursive-include docs *
recursive-include examples/frameworks * recursive-include examples/frameworks *
recursive-exclude * __pycache__ recursive-exclude * __pycache__
recursive-exclude docs/build *
recursive-exclude docs/_build *
recursive-exclude * *.py[co] recursive-exclude * *.py[co]

View File

@ -1,5 +1,7 @@
# Makefile for Sphinx documentation # Makefile for Sphinx documentation
# #
# if you want to compare this file to current sphinx defaults, recreate it:
# BUILDDIR=build sphinx-quickstart --sep --extensions=gunicorn_ext --templatedir=_templates --makefile --batchfile --no-use-make-mode --master=index
# You can set these variables from the command line. # You can set these variables from the command line.
PYTHON = python PYTHON = python

View File

@ -6,8 +6,8 @@ Requirements
To generate documentation you need to install: To generate documentation you need to install:
- Python >= 3.4 - Python >= 3.7
- Sphinx (http://sphinx-doc.org/) - Sphinx (https://www.sphinx-doc.org/)
Generate html Generate html