@@ -36,6 +36,7 @@ clean-pyc: ### Removes python compiled bytecode files
3636
3737
3838define BUILD
39+ echo $(version ) > VERSION && \
3940 cd src/$1/ && rm -rf dist/ && $(PYTHON ) setup.py bdist_wheel
4041endef
4142
@@ -47,15 +48,30 @@ define UPLOAD
4748 cd src/$1/ && $(PYTHON ) -m twine upload -r ydata dist/*
4849endef
4950
50- build : # ## Build package
51+ build-core :
5152 $(call BUILD,core)
5253
53- upload : # ## Upload build package into pypi
54+ build-datascience :
55+ $(call BUILD,datascience)
56+
57+ build-all : build-core build-datascience # ## Build all packages
58+
59+ upload-core :
5460 $(call UPLOAD,core)
5561
56- lint : # ## Run prospector
62+ upload-datascience :
63+ $(call UPLOAD,datascience)
64+
65+ upload-all : upload-core upload-datascience # ## Upload all packages to pypi
66+
67+ lint-core : # ## Run prospector
5768 $(PYTHON ) -m prospector src/core
5869
70+ lint-datascience : # ## Run prospector
71+ $(PYTHON ) -m prospector src/datascience
72+
73+ lint : lint-core lint-datascience # ## Run prospector on all packages
74+
5975define LINK_LOCAL
6076 $(PIP ) install -e src/$1
6177endef
@@ -64,5 +80,11 @@ link-core:
6480 echo " 0.0.0" > src/core/VERSION
6581 $(call LINK_LOCAL,core)
6682
67- test : link-core # ## Runs the tests
83+ link-datascience :
84+ echo " 0.0.0" > src/datascience/VERSION
85+ $(call LINK_LOCAL,datascience)
86+
87+ link-all : link-core link-datascience # ## Link all packages
88+
89+ test : link-all # ## Runs the tests
6890 $(PYTHON ) -m pytest src/core
0 commit comments