Skip to content

Commit

Permalink
Fix requirements, doc
Browse files Browse the repository at this point in the history
Change-Id: I0384a421fca057f66365e6fdb0b1efdb1a1c49f2
  • Loading branch information
eyalb1 committed Jan 15, 2020
1 parent 1c3a3f2 commit a2fed6c
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 11 deletions.
5 changes: 5 additions & 0 deletions doc/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
sphinx>=1.8.0,!=2.1.0;python_version>='3.4' # BSD
sphinxcontrib-httpdomain>=1.3.0 # BSD
sphinxcontrib-pecanwsme>=0.8.0 # Apache-2.0
openstackdocstheme>=1.30.0 # Apache-2.0
reno>=2.5.0 # Apache-2.0
3 changes: 2 additions & 1 deletion doc/source/contributor/creating_custom_actions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ How to write a Custom Action
mistral.actions =
example.runner = my.mistral_plugins.somefile:RunnerAction
3. Reinstall your library package if it was installed in system (not in virtualenv).
3. Reinstall your library package if it was installed in system
(not in virtualenv).

4. Run db-sync tool to ensure your actions are in Mistral's database

Expand Down
1 change: 1 addition & 0 deletions lower-constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Babel==2.3.4
coverage==4.0
debtcollector==1.2.0
docutils==0.11
doc8==0.6.0
dulwich==0.15.0
eventlet==0.20.0
extras==1.0.0
Expand Down
8 changes: 3 additions & 5 deletions test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
# process, which may cause wedges in the gate later.

hacking>=1.1.0 # Apache-2.0
doc8>=0.6.0 # Apache-2.0
Pygments>=2.2.0 # BSD license
coverage!=4.4,>=4.0 # Apache-2.0
sphinx>=1.8.0,<2.0.0;python_version=='2.7' # BSD
sphinx>=1.8.0,!=2.1.0;python_version>='3.4' # BSD
openstackdocstheme>=1.18.1 # Apache-2.0
oslotest>=3.2.0 # Apache-2.0
stestr>=2.0.0 # Apache-2.0
testtools>=2.2.0 # MIT
# releasenotes
reno>=2.5.0 # Apache-2.0

16 changes: 11 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ whitelist_externals =

[testenv:pep8]
commands =
python setup.py check --restructuredtext --strict
doc8 doc/source
flake8 {posargs}

[testenv:venv]
Expand All @@ -41,11 +41,13 @@ commands =
coverage xml -o cover/coverage.xml

[testenv:docs]
commands = python setup.py build_sphinx
deps = -r{toxinidir}/doc/requirements.txt
setenv = PYTHONHASHSEED=0
commands =
rm -rf doc/build
sphinx-build -E -W --keep-going -b html doc/source doc/build/html

[testenv:releasenotes]
whitelist_externals =
rm
commands =
rm -rf releasenotes/build
sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html
Expand All @@ -54,9 +56,13 @@ commands =
whitelist_externals = oslo_debug_helper
commands = oslo_debug_helper -t mistral_lib/tests {posargs}

[doc8]
extensions = .rst, .yaml, .mistral
# Maximal line length should be 80.
max-line-length = 80

[flake8]
# E123, E125 skipped as they are invalid PEP-8.

show-source = True
ignore = E123,E125,W504
builtins = _
Expand Down

0 comments on commit a2fed6c

Please sign in to comment.