Page MenuHomePhabricator

dependencies form requirements.txt aren't installed with Travis
Closed, InvalidPublic

Description

.travis.yml contains the install section as follows:

- pip install -U setuptools
- pip install -r dev-requirements.txt
- pip install -r requirements.txt

but the last entry does not install any of the dependencies

Event Timeline

Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. · View Herald Transcript
Xqt triaged this task as High priority.Apr 16 2021, 7:26 AM

An empty requirements.txt is used for some Tests:

# When PYSETUP_TEST_EXTRAS is not enabled, do not allow the
# default 'install' step to install all dependencies listed in
# requirements.txt to verify that a minimal install works as expected.
# Instead install requests in the before_script step below.
- if [[ "$PYSETUP_TEST_EXTRAS" != '1' ]]; then 
    printf "# Empty requirements with PYSETUP_TEST_EXTRA" > requirements.txt ;
  fi