Breakthrough-Energy / docs

Documentation
https://breakthrough-energy.github.io/docs/
Creative Commons Attribution 4.0 International
13 stars 14 forks source link

powersimdata : run-test : make html : command not installed #28

Closed ToddG closed 3 years ago

ToddG commented 4 years ago

REPRO

(UBUNTU ONLY):

  1. Clone all repos

    git clone git@github.com:Breakthrough-Energy/CENACS.git git clone git@github.com:Breakthrough-Energy/docs.git git clone git@github.com:Breakthrough-Energy/FullStackInterview.git git clone git@github.com:Breakthrough-Energy/PostREISE.git git clone git@github.com:Breakthrough-Energy/PowerSimData.git git clone git@github.com:Breakthrough-Energy/PreREISE.git git clone git@github.com:Breakthrough-Energy/REISE.jl.git git clone git@github.com:Breakthrough-Energy/RenewableEnergyProject.git git clone git@github.com:Breakthrough-Energy/WesternInterconnectNetwork.git

  2. Install deps

    sudo apt-get install libpq-dev python3-dev

  3. Build docs (manually)

    cd docs tox -p auto -o | tee build.out

ERROR:

powersimdata run-test: commands[4] | make html
WARNING: test command found but not installed in testenv
cmd: /usr/bin/make
env: /home/todd/repos/bte/docs/.tox/powersimdata
Maybe you forgot to specify a dependency? See also the whitelist_externals envconfig setting.

LOG

build.out excerpt:

Requirement already satisfied: pluggy<1.0,>=0.12 in ./.tox/postreise/lib/python3.8/site-packages (from pytest==5.4.3->-r ../PostREISE/requirements.txt (line 8)) (0.13.1)
  Using cached numpy-1.18.5-cp38-cp38-manylinux1_x86_64.whl (20.6 MB)
Collecting bcrypt>=3.1.3
  Using cached bcrypt-3.2.0-cp36-abi3-manylinux2010_x86_64.whl (63 kB)
File source/setup.rst already exists, skipping.
File source/powersimdata.rst already exists, skipping.
File source/powersimdata.data_access.rst already exists, skipping.
File source/powersimdata.data_access.tests.rst already exists, skipping.
File source/powersimdata.design.rst already exists, skipping.
File source/powersimdata.design.generation.rst already exists, skipping.
File source/powersimdata.design.generation.tests.rst already exists, skipping.
File source/powersimdata.design.tests.rst already exists, skipping.
File source/powersimdata.design.transmission.rst already exists, skipping.
File source/powersimdata.design.transmission.tests.rst already exists, skipping.
File source/powersimdata.input.rst already exists, skipping.
File source/powersimdata.input.tests.rst already exists, skipping.
File source/powersimdata.network.rst already exists, skipping.
File source/powersimdata.network.usa_tamu.rst already exists, skipping.
File source/powersimdata.network.usa_tamu.constants.rst already exists, skipping.
File source/powersimdata.output.rst already exists, skipping.
File source/powersimdata.scenario.rst already exists, skipping.
File source/powersimdata.scenario.tests.rst already exists, skipping.
File source/powersimdata.tests.rst already exists, skipping.
File source/powersimdata.utility.rst already exists, skipping.
File source/powersimdata.utility.tests.rst already exists, skipping.
File source/modules.rst already exists, skipping.
powersimdata run-test: commands[4] | make html
WARNING: test command found but not installed in testenv
  cmd: /usr/bin/make
  env: /home/todd/repos/bte/docs/.tox/powersimdata
Maybe you forgot to specify a dependency? See also the whitelist_externals envconfig setting.
jenhagg commented 4 years ago

What version of tox are you using? I think I had this issue in a prior version and fixed by updating, and using the allowlist_externals setting in tox.ini.

ToddG commented 4 years ago
$ tox --version
3.13.2 imported from /usr/lib/python3/dist-packages/tox/__init__.py
jenhagg commented 4 years ago

This is what I get

❯ tox --version
3.20.0 imported from /Users/jonhagg/.pyenv/versions/3.8.3/lib/python3.8/site-packages/tox/__init__.py
ToddG commented 4 years ago

Ok, I'll try upgrading (using pyenv, and then setting the allowlist_externals in the tox.ini.) Thx!

jenhagg commented 4 years ago

FYI pyenv is probably optional, but doesn't hurt to have around