diff --git a/.travis.yml b/.travis.yml index 96e66bd..66b6859 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,8 +4,8 @@ python: - "2.7" - "3.5" -virtualenv: - system_site_packages: true +install: + - make requirements script: - make quality diff --git a/Makefile b/Makefile index 77c5f44..56eef22 100644 --- a/Makefile +++ b/Makefile @@ -40,3 +40,6 @@ quality: ## run quality checkers on the codebase pycodestyle scormxblock --max-line-length=120 pylint scormxblock +requirements: ## install development environment requirements + pip install -r requirements.txt --exists-action w + pip install -r requirements-dev.txt --exists-action w diff --git a/requirements-dev.txt b/requirements-dev.txt new file mode 100644 index 0000000..fc549ff --- /dev/null +++ b/requirements-dev.txt @@ -0,0 +1,9 @@ +XBlock>=1.2 + +edx-opaque-keys>=0.4 +Django~=1.11; python_version == '2.7' +Django~=2.2; python_version > '2.7' +-e git://github.com/edx/xblock-utils.git#egg=xblock-utils + +pylint +pycodestyle==2.4.0 diff --git a/requirements.txt b/requirements.txt index e78ac98..b7d082f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,10 +1,4 @@ -XBlock>=1.2 -edx-opaque-keys>=0.4 -Django~=1.11; python_version == '2.7' -Django~=2.2; python_version > '2.7' --e git+https://github.com/edx/xblock-utils.git@2.0.0#egg=xblock-utils +-e git://github.com/edx/xblock-utils.git#egg=xblock-utils -e . -pylint -pycodestyle==2.4.0