Coalesce requirements.txt into setup.py (#2017)

* Coalesce `requirements.txt` and `tests/requirements.txt` into `setup.py`

* Remove requirements for tests

* Parse tests requirements in setup.py

* Append extra dependenices in test_requirements in setup.py

* Modify CI build to pass the tests

* Correctly install black requirements

* Install all requirements to pass the tests
This commit is contained in:
Aman Sharma
2019-05-29 10:23:01 +03:00
committed by Ruslan Kuprieiev
parent 500a26ebd6
commit 55ad81bf9d
8 changed files with 38 additions and 59 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ install_dependencies()
gem install --no-document fpm
print_info "Installing requirements..."
pip install -r requirements.txt
pip install -e .[all]
print_info "Installing pyinstaller..."
pip install pyinstaller
+1 -1
View File
@@ -15,7 +15,7 @@ if %errorlevel% neq 0 (echo Error: pip not found && goto :error)
if not exist "C:\Program Files (x86)\Inno Setup 5\ISCC.exe" (echo Error: Couldn't find Inno Setup compiler. Please go to jrsoftware.org/isinfo.php and install Inno Setup 5 && goto :error)
echo ====== Installing requirements... ======
call pip install -r requirements.txt || goto :error
call pip install -e .[all] || goto :error
call pip install pyinstaller || goto :error
echo ====== Building dvc binary... ======
+1 -1
View File
@@ -19,7 +19,7 @@ if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
python --version
fi
pip install -r tests/requirements.txt
pip install -e .[tests]
# stop the build if there are any readme formatting errors
python setup.py checkdocs
+2 -2
View File
@@ -15,8 +15,8 @@ function retry {
# networking issues. Thus, let's retry a few times to see if it will eventially
# work or not.
retry pip install --upgrade pip setuptools wheel
retry pip install -r requirements.txt
retry pip install -r tests/requirements.txt
retry pip install -e .[all]
retry pip install -e .[tests]
git config --global user.email "[email protected]"
git config --global user.name "DVC Tester"