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
7baef961
Commit
7baef961
authored
May 06, 2014
by
Will Daly
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #306 from edx/will/update-setup-py
Updated setup.py
parents
52bc6816
4ba4bcaa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
13 deletions
+3
-13
setup.py
+3
-13
No files found.
setup.py
View file @
7baef961
#!/usr/bin/env python
#!/usr/bin/env python
import
os
from
setuptools
import
setup
from
setuptools
import
setup
PACKAGES
=
[
PACKAGES
=
[
'submissions'
,
'submissions'
,
'openassessment'
,
'openassessment.assessment'
,
'openassessment.assessment'
,
'openassessment.workflow'
,
'openassessment.management'
,
'openassessment.xblock'
'openassessment.xblock'
]
]
def
package_data
(
pkg
,
root
):
"""Generic function to find package_data for `pkg` under `root`."""
data
=
[]
for
dirname
,
_
,
files
in
os
.
walk
(
os
.
path
.
join
(
pkg
,
root
)):
for
fname
in
files
:
data
.
append
(
os
.
path
.
relpath
(
os
.
path
.
join
(
dirname
,
fname
),
pkg
))
return
{
pkg
:
data
}
def
is_requirement
(
line
):
def
is_requirement
(
line
):
"""
"""
Return True if the requirement line is a package requirement;
Return True if the requirement line is a package requirement;
...
@@ -36,7 +28,6 @@ REQUIREMENTS = [
...
@@ -36,7 +28,6 @@ REQUIREMENTS = [
if
is_requirement
(
line
)
if
is_requirement
(
line
)
]
]
setup
(
setup
(
name
=
'ora2'
,
name
=
'ora2'
,
version
=
'0.0.1'
,
version
=
'0.0.1'
,
...
@@ -60,5 +51,4 @@ setup(
...
@@ -60,5 +51,4 @@ setup(
'openassessment = openassessment.xblock.openassessmentblock:OpenAssessmentBlock'
,
'openassessment = openassessment.xblock.openassessmentblock:OpenAssessmentBlock'
,
]
]
},
},
package_data
=
package_data
(
"openassessment.xblock"
,
"static"
),
)
)
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