Skip to content

Commit 0bb022e

Browse files
committed
Some helper Makefile cruft for Python 3.
1 parent e84fe88 commit 0bb022e

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ output/*/index.html
5050
docs/_build
5151

5252
.venv
53+
.venv3
5354

5455
tool_test_output.*
5556

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ ENV?=py27
66
ARGS?=
77
# Location of virtualenv used for development.
88
VENV?=.venv
9+
VENV3?=.venv3
910
# Open resource on Mac OS X or Linux
1011
OPEN_RESOURCE=bash -c 'open $$0 || xdg-open $$0'
1112
# Source virtualenv to execute command (flake8, sphinx, twine, etc...)
1213
IN_VENV=if [ -f $(VENV)/bin/activate ]; then . $(VENV)/bin/activate; fi;
14+
IN_VENV3=if [ -f $(VENV3)/bin/activate ]; then . $(VENV3)/bin/activate; fi;
1315
# TODO: add this upstream as a remote if it doesn't already exist.
1416
UPSTREAM?=galaxyproject
1517
SOURCE_DIR?=planemo
@@ -54,6 +56,10 @@ setup-venv: ## setup a development virutalenv in current directory
5456
if [ ! -d $(VENV) ]; then virtualenv $(VENV); exit; fi;
5557
$(IN_VENV) pip install --upgrade pip && pip install -r requirements.txt && pip install -r dev-requirements.txt
5658

59+
setup-venv3: ## setup a development virutalenv in current directory
60+
if [ ! -d $(VENV3) ]; then virtualenv -p python3 $(VENV3); exit; fi;
61+
$(IN_VENV3) pip install --upgrade pip && pip install -r requirements.txt && pip install -r dev-requirements.txt
62+
5763
setup-git-hook-lint: ## setup precommit hook for linting project
5864
cp $(BUILD_SCRIPTS_DIR)/pre-commit-lint .git/hooks/pre-commit
5965

0 commit comments

Comments
 (0)