Commit f77f0683 by Will Daly

Merge pull request #10 from edx/will/setup-handle-git-requirements

Update setup.py to handle -e in requirements.txt
parents a5d9ba51 8537068d
......@@ -4,11 +4,26 @@ from setuptools import setup
PACKAGES = ['common_grading', 'peer_grading']
def is_requirement(line):
"""
Return True if the requirement line is a package requirement;
that is, it is not blank, a comment, or editable.
"""
# Remove whitespace at the start/end of the line
line = line.strip()
# Skip blank lines, comments, and editable installs
return not (line == '' or line.startswith('#') or line.startswith('-e'))
REQUIREMENTS = [
line.strip() for line in
open("requirements/base.txt").readlines()
if is_requirement(line)
]
setup(
name='edx-tim',
version='0.0.1',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment