mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
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:
committed by
Ruslan Kuprieiev
parent
500a26ebd6
commit
55ad81bf9d
@@ -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
|
||||
|
||||
@@ -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... ======
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user