From d0c0cc1c5c07dfa1d9faaaf201dd63c921756f0f Mon Sep 17 00:00:00 2001 From: Daniele Procida Date: Tue, 2 Aug 2022 15:36:41 +0200 Subject: [PATCH] Adjusted requirements and tox file for local building --- requirements.in | 1 + requirements.txt | 50 +++++++++++++++++++++--------------------------- tox.ini | 14 +++++++++++++- 3 files changed, 36 insertions(+), 29 deletions(-) diff --git a/requirements.in b/requirements.in index 9ab570d..b17aaf3 100644 --- a/requirements.in +++ b/requirements.in @@ -21,3 +21,4 @@ sphinxcontrib-versioning sphinx-multiversion recommonmark sphinx-markdown-tables +sphinx-autobuild diff --git a/requirements.txt b/requirements.txt index e87b1cb..bdb93ba 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,30 +1,15 @@ -####################################################################################### -# Copyright ETSI Contributors and Others. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or -# implied. -# See the License for the specific language governing permissions and -# limitations under the License. -####################################################################################### - alabaster==0.7.12 # via sphinx -babel==2.10.1 +babel==2.10.3 # via sphinx -certifi==2022.5.18.1 +certifi==2022.6.15 # via requests -charset-normalizer==2.0.12 +charset-normalizer==2.1.0 # via requests click==8.1.3 # via sphinxcontrib-versioning +colorama==0.4.5 + # via sphinx-autobuild colorclass==2.2.2 # via sphinxcontrib-versioning commonmark==0.9.1 @@ -36,15 +21,17 @@ docutils==0.17.1 # sphinx-rtd-theme idna==3.3 # via requests -imagesize==1.3.0 +imagesize==1.4.1 # via sphinx -importlib-metadata==4.11.4 +importlib-metadata==4.12.0 # via # markdown # sphinx jinja2==3.1.2 # via sphinx -markdown==3.3.7 +livereload==2.6.3 + # via sphinx-autobuild +markdown==3.4.1 # via sphinx-markdown-tables markupsafe==2.1.1 # via jinja2 @@ -58,18 +45,23 @@ pytz==2022.1 # via babel recommonmark==0.7.1 # via -r requirements.in -requests==2.28.0 +requests==2.28.1 # via sphinx +six==1.16.0 + # via livereload snowballstemmer==2.2.0 # via sphinx -sphinx==5.0.1 +sphinx==5.1.1 # via # -r requirements.in # recommonmark + # sphinx-autobuild # sphinx-multiversion # sphinx-rtd-theme # sphinxcontrib-versioning -sphinx-markdown-tables==0.0.15 +sphinx-autobuild==2021.3.14 + # via -r requirements.in +sphinx-markdown-tables==0.0.17 # via -r requirements.in sphinx-multiversion==0.2.4 # via -r requirements.in @@ -89,7 +81,9 @@ sphinxcontrib-serializinghtml==1.1.5 # via sphinx sphinxcontrib-versioning==2.2.1 # via -r requirements.in -urllib3==1.26.9 +tornado==6.2 + # via livereload +urllib3==1.26.11 # via requests -zipp==3.8.0 +zipp==3.8.1 # via importlib-metadata diff --git a/tox.ini b/tox.ini index a347cf5..5dd2969 100644 --- a/tox.ini +++ b/tox.ini @@ -23,7 +23,7 @@ skipsdist = True toxworkdir = /tmp/.tox [testenv] -basepython = python3.8 +basepython = python3 setenv = VIRTUAL_ENV={envdir} PYTHONDONTWRITEBYTECODE = 1 deps = -r{toxinidir}/requirements.txt @@ -57,6 +57,18 @@ whitelist_externals = sh rm +####################################################################################### +[testenv:run] +deps = {[testenv]deps} +commands = + rm -rf _build/html + sphinx-multiversion . _build/html + sphinx-autobuild . -b dirhtml -a _build/html --host 0.0.0.0 --port 8001 + # sh -c './fix_cross_references.sh' +whitelist_externals = + sh + rm + ####################################################################################### [testenv:publish] -- GitLab