From: Daniele Varrazzo Date: Thu, 12 Nov 2020 15:24:56 +0000 (+0000) Subject: Virtualenv to build the docs renamed to .vemv X-Git-Tag: 3.0.dev0~373 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02d6729497b12028ca90be20aa94df0907508d68;p=thirdparty%2Fpsycopg.git Virtualenv to build the docs renamed to .vemv --- diff --git a/.gitignore b/.gitignore index 23ad50cdc..1abeb25fe 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,3 @@ /.mypy_cache __pycache__/ /docs/_build/ -/docs/env/ diff --git a/docs/Makefile b/docs/Makefile index ff619b429..64011e35f 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -15,10 +15,12 @@ help: .PHONY: help env Makefile -env: requirements.txt - virtualenv -p $(PYTHON) env - ./env/bin/pip install -e ../psycopg3 - ./env/bin/pip install -r requirements.txt +env: .venv + +.venv: requirements.txt + virtualenv -p $(PYTHON) .venv + ./.venv/bin/pip install -e ../psycopg3 + ./.venv/bin/pip install -r requirements.txt # Catch-all target: route all unknown targets to Sphinx using the new # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). diff --git a/docs/conf.py b/docs/conf.py index 48b8994df..f2269993d 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -47,7 +47,7 @@ templates_path = ["_templates"] # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. # This pattern also affects html_static_path and html_extra_path. -exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "env"] +exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", ".venv"] # -- Options for HTML output -------------------------------------------------