-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from christiandietze/main
Do not deliver Spark dependency
- Loading branch information
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/python@3.7/bin/python3 | ||
|
||
install-python: | ||
brew install python@3.7 | ||
|
||
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