forked from Scout24/pyspark-core-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove explicit Spark dependency as we might have different Spark version in the environment using the utils * Run tests against Spark 2.4.4 * Make sure tests are run with Python 3.7, as Spark 2.4 does not support newer Python versions
- Loading branch information
1 parent
4e05f7c
commit ba08c27
Showing
4 changed files
with
19 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
.PHONY: setup test | ||
.PHONY: setup-environment test | ||
PYTHON=$(shell brew --prefix)/opt/[email protected]/bin/python3 | ||
|
||
install-python: | ||
brew install [email protected] | ||
|
||
setup-environment: | ||
pip3 install virtualenv==20.0.15 | ||
virtualenv env | ||
source env/bin/activate; \ | ||
pip3 install -r requirements.txt | ||
$(PYTHON) -m pip install virtualenv==20.0.15 | ||
$(PYTHON) -m virtualenv env | ||
. env/bin/activate; \ | ||
pip3 install -r requirements.txt; \ | ||
pip3 install pyspark==2.4.4 | ||
|
||
test: | ||
source env/bin/activate; \ | ||
test: setup-environment | ||
. env/bin/activate; \ | ||
SPARK_LOCAL_IP=127.0.0.1 PYTHONPATH=./src python -m pytest $(target) -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
pyspark==3.0.1 | ||
pytest==6.1.2 | ||
pytest-spark==0.6.0 | ||
testfixtures==6.15.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters