Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-ora2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-ora2
Commits
f77f0683
Commit
f77f0683
authored
Jan 21, 2014
by
Will Daly
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10 from edx/will/setup-handle-git-requirements
Update setup.py to handle -e in requirements.txt
parents
a5d9ba51
8537068d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
setup.py
+15
-0
No files found.
setup.py
View file @
f77f0683
...
...
@@ -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'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment