1515 VIRTUALENV_COMPONENTS_DIR ?= virtualenv-components
1616endif
1717
18- PYTHON_VERSION ?= $(shell if [ -z "`which python3.6`" ]; then echo "python2.7"; else echo "python3.6"; fi)
19-
2018BINARIES := bin
2119
2220# All components are prefixed by st2 and not .egg-info.
@@ -50,11 +48,7 @@ COMPONENTS_TEST_MODULES_COMMA := $(subst $(space_char),$(comma),$(COMPONENTS_TES
5048COVERAGE_GLOBS := .coverage.unit.* .coverage.integration.*
5149COVERAGE_GLOBS_QUOTED := $(foreach glob,$(COVERAGE_GLOBS ) ,'$(glob ) ')
5250
53- ifeq ($(PYTHON_VERSION ) ,python2.7)
54- REQUIREMENTS := test-requirements-py27.txt requirements.txt
55- else
56- REQUIREMENTS := test-requirements.txt requirements.txt
57- endif
51+ REQUIREMENTS := test-requirements.txt requirements.txt
5852
5953# Pin common pip version here across all the targets
6054# Note! Periodic maintenance pip upgrades are required to be up-to-date with the latest pip security fixes and updates
@@ -112,7 +106,7 @@ all: requirements configgen check tests
112106# Target for debugging Makefile variable assembly
113107.PHONY : play
114108play :
115- @echo PYTHON_VERSION=$( PYTHON_VERSION )
109+ @echo PYTHON_VERSION=$$( python --version )
116110 @echo
117111 @echo COVERAGE_GLOBS=$(COVERAGE_GLOBS_QUOTED )
118112 @echo
@@ -233,7 +227,7 @@ check-python-packages:
233227 @echo " "
234228 @echo " ================== CHECK PYTHON PACKAGES ===================="
235229 @echo " "
236- test -f $(VIRTUALENV_COMPONENTS_DIR ) /bin/activate || virtualenv --python= $( PYTHON_VERSION ) $(VIRTUALENV_COMPONENTS_DIR ) --no-download --system-site-packages
230+ test -f $(VIRTUALENV_COMPONENTS_DIR ) /bin/activate || virtualenv $(VIRTUALENV_COMPONENTS_DIR ) --no-download --system-site-packages
237231 @for component in $(COMPONENTS_WITHOUT_ST2TESTS ) ; do \
238232 echo " ===========================================================" ; \
239233 echo " Checking component:" $$ component; \
@@ -249,7 +243,7 @@ check-python-packages-nightly:
249243 @echo " ================== CHECK PYTHON PACKAGES ===================="
250244 @echo " "
251245
252- test -f $(VIRTUALENV_COMPONENTS_DIR)/bin/activate || virtualenv --python=$(PYTHON_VERSION) $(VIRTUALENV_COMPONENTS_DIR) --no-download
246+ test -f $(VIRTUALENV_COMPONENTS_DIR)/bin/activate || virtualenv $(VIRTUALENV_COMPONENTS_DIR) --no-download
253247 @for component in $(COMPONENTS_WITHOUT_ST2TESTS); do \
254248 echo "==========================================================="; \
255249 echo "Checking component:" $$component; \
@@ -381,7 +375,7 @@ flake8: requirements .flake8
381375 @echo
382376 @echo " ==================== st2client install check ===================="
383377 @echo
384- test -f $(VIRTUALENV_ST2CLIENT_DIR ) /bin/activate || virtualenv --python= $( PYTHON_VERSION ) $(VIRTUALENV_ST2CLIENT_DIR ) --no-download --system-site-packages
378+ test -f $(VIRTUALENV_ST2CLIENT_DIR ) /bin/activate || virtualenv $(VIRTUALENV_ST2CLIENT_DIR ) --no-download --system-site-packages
385379
386380 # Setup PYTHONPATH in bash activate script...
387381 # Delete existing entries (if any)
@@ -591,7 +585,7 @@ virtualenv:
591585 @echo
592586 @echo " ==================== virtualenv ===================="
593587 @echo
594- test -f $(VIRTUALENV_DIR ) /bin/activate || virtualenv --python= $( PYTHON_VERSION ) $(VIRTUALENV_DIR ) --no-download
588+ test -f $(VIRTUALENV_DIR ) /bin/activate || virtualenv $(VIRTUALENV_DIR ) --no-download
595589
596590 # Setup PYTHONPATH in bash activate script...
597591 # Delete existing entries (if any)
@@ -969,31 +963,7 @@ debs:
969963ci : ci-checks ci-unit ci-integration ci-packs-tests
970964
971965.PHONY : ci-checks
972- ci-checks : compilepy3 .generated-files-check .pylint .flake8 check-requirements check-sdist-requirements .st2client-dependencies-check .st2common-circular-dependencies-check circle-lint-api-spec .rst-check .st2client-install-check check-python-packages
973-
974- .PHONY : ci-py3-unit
975- ci-py3-unit :
976- @echo
977- @echo " ==================== ci-py3-unit ===================="
978- @echo
979- NOSE_WITH_TIMER=$(NOSE_WITH_TIMER ) tox -e py36-unit -vv
980-
981- .PHONY : ci-py3-packs-tests
982- ci-py3-packs-tests :
983- @echo
984- @echo " ==================== ci-py3-packs-tests ===================="
985- @echo
986- NOSE_WITH_TIMER=$(NOSE_WITH_TIMER ) tox -e py36-packs -vv
987-
988- .PHONY : ci-py3-integration
989- ci-py3-integration : requirements .ci-prepare-integration .ci-py3-integration
990-
991- .PHONY : .ci-py3-integration
992- .ci-py3-integration :
993- @echo
994- @echo " ==================== ci-py3-integration ===================="
995- @echo
996- NOSE_WITH_TIMER=$(NOSE_WITH_TIMER ) tox -e py36-integration -vv
966+ ci-checks : .generated-files-check .pylint .flake8 check-requirements check-sdist-requirements .st2client-dependencies-check .st2common-circular-dependencies-check circle-lint-api-spec .rst-check .st2client-install-check check-python-packages
997967
998968.PHONY : .rst-check
999969.rst-check :
0 commit comments