Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
problem-builder
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
OpenEdx
problem-builder
Commits
bd707a12
Commit
bd707a12
authored
Mar 02, 2014
by
Xavier Antoviaque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix inclusion of static assets in pip package when not from source
parent
3f47c54b
Hide whitespace changes
Inline
Side-by-side
Showing
35 changed files
with
8 additions
and
7 deletions
+8
-7
.gitignore
+2
-1
mentoring/static/css/answer.css
+0
-0
mentoring/static/css/answer_table.css
+0
-0
mentoring/static/css/dataexport.css
+0
-0
mentoring/static/css/mentoring-table.css
+0
-0
mentoring/static/css/mentoring.css
+0
-0
mentoring/static/css/quizz.css
+0
-0
mentoring/static/img/immunity-map-assumptions-bg.png
+0
-0
mentoring/static/img/immunity-map-bg.png
+0
-0
mentoring/static/js/answer.js
+0
-0
mentoring/static/js/dataexport.js
+0
-0
mentoring/static/js/mentoring-table.js
+0
-0
mentoring/static/js/mentoring.js
+0
-0
mentoring/static/js/quizz.js
+0
-0
mentoring/static/js/vendor/jquery.shorten.js
+0
-0
mentoring/static/js/vendor/underscore-min.js
+0
-0
mentoring/static/text/table-immunity-map-assumptions.txt
+0
-0
mentoring/static/text/table-immunity-map.txt
+0
-0
mentoring/templates/html/answer_editable.html
+0
-0
mentoring/templates/html/answer_read_only.html
+0
-0
mentoring/templates/html/answer_table.html
+0
-0
mentoring/templates/html/dataexport.html
+0
-0
mentoring/templates/html/mentoring-table-column.html
+0
-0
mentoring/templates/html/mentoring-table-header.html
+0
-0
mentoring/templates/html/mentoring-table.html
+0
-0
mentoring/templates/html/mentoring.html
+0
-0
mentoring/templates/html/mentoring_progress.html
+0
-0
mentoring/templates/html/message.html
+0
-0
mentoring/templates/html/quizz_choices.html
+0
-0
mentoring/templates/html/quizz_rating.html
+0
-0
mentoring/templates/html/quizz_yes-maybenot-understand.html
+0
-0
mentoring/templates/html/tip.html
+0
-0
mentoring/templates/html/tip_group.html
+0
-0
mentoring/utils.py
+0
-1
setup.py
+6
-5
No files found.
.gitignore
View file @
bd707a12
...
@@ -2,4 +2,5 @@
...
@@ -2,4 +2,5 @@
*.pyc
*.pyc
xblock_mentoring.egg-info
xblock_mentoring.egg-info
workbench.sqlite
workbench.sqlite
templates/xml
mentoring/templates/xml
dist
static/css/answer.css
→
mentoring/
static/css/answer.css
View file @
bd707a12
File moved
static/css/answer_table.css
→
mentoring/
static/css/answer_table.css
View file @
bd707a12
File moved
static/css/dataexport.css
→
mentoring/
static/css/dataexport.css
View file @
bd707a12
File moved
static/css/mentoring-table.css
→
mentoring/
static/css/mentoring-table.css
View file @
bd707a12
File moved
static/css/mentoring.css
→
mentoring/
static/css/mentoring.css
View file @
bd707a12
File moved
static/css/quizz.css
→
mentoring/
static/css/quizz.css
View file @
bd707a12
File moved
static/img/immunity-map-assumptions-bg.png
→
mentoring/
static/img/immunity-map-assumptions-bg.png
View file @
bd707a12
File moved
static/img/immunity-map-bg.png
→
mentoring/
static/img/immunity-map-bg.png
View file @
bd707a12
File moved
static/js/answer.js
→
mentoring/
static/js/answer.js
View file @
bd707a12
File moved
static/js/dataexport.js
→
mentoring/
static/js/dataexport.js
View file @
bd707a12
File moved
static/js/mentoring-table.js
→
mentoring/
static/js/mentoring-table.js
View file @
bd707a12
File moved
static/js/mentoring.js
→
mentoring/
static/js/mentoring.js
View file @
bd707a12
File moved
static/js/quizz.js
→
mentoring/
static/js/quizz.js
View file @
bd707a12
File moved
static/js/vendor/jquery.shorten.js
→
mentoring/
static/js/vendor/jquery.shorten.js
View file @
bd707a12
File moved
static/js/vendor/underscore-min.js
→
mentoring/
static/js/vendor/underscore-min.js
View file @
bd707a12
File moved
static/text/table-immunity-map-assumptions.txt
→
mentoring/
static/text/table-immunity-map-assumptions.txt
View file @
bd707a12
File moved
static/text/table-immunity-map.txt
→
mentoring/
static/text/table-immunity-map.txt
View file @
bd707a12
File moved
templates/html/answer_editable.html
→
mentoring/
templates/html/answer_editable.html
View file @
bd707a12
File moved
templates/html/answer_read_only.html
→
mentoring/
templates/html/answer_read_only.html
View file @
bd707a12
File moved
templates/html/answer_table.html
→
mentoring/
templates/html/answer_table.html
View file @
bd707a12
File moved
templates/html/dataexport.html
→
mentoring/
templates/html/dataexport.html
View file @
bd707a12
File moved
templates/html/mentoring-table-column.html
→
mentoring/
templates/html/mentoring-table-column.html
View file @
bd707a12
File moved
templates/html/mentoring-table-header.html
→
mentoring/
templates/html/mentoring-table-header.html
View file @
bd707a12
File moved
templates/html/mentoring-table.html
→
mentoring/
templates/html/mentoring-table.html
View file @
bd707a12
File moved
templates/html/mentoring.html
→
mentoring/
templates/html/mentoring.html
View file @
bd707a12
File moved
templates/html/mentoring_progress.html
→
mentoring/
templates/html/mentoring_progress.html
View file @
bd707a12
File moved
templates/html/message.html
→
mentoring/
templates/html/message.html
View file @
bd707a12
File moved
templates/html/quizz_choices.html
→
mentoring/
templates/html/quizz_choices.html
View file @
bd707a12
File moved
templates/html/quizz_rating.html
→
mentoring/
templates/html/quizz_rating.html
View file @
bd707a12
File moved
templates/html/quizz_yes-maybenot-understand.html
→
mentoring/
templates/html/quizz_yes-maybenot-understand.html
View file @
bd707a12
File moved
templates/html/tip.html
→
mentoring/
templates/html/tip.html
View file @
bd707a12
File moved
templates/html/tip_group.html
→
mentoring/
templates/html/tip_group.html
View file @
bd707a12
File moved
mentoring/utils.py
View file @
bd707a12
...
@@ -45,7 +45,6 @@ def load_resource(resource_path):
...
@@ -45,7 +45,6 @@ def load_resource(resource_path):
"""
"""
Gets the content of a resource
Gets the content of a resource
"""
"""
resource_path
=
os
.
path
.
join
(
'..'
,
resource_path
)
resource_content
=
pkg_resources
.
resource_string
(
__name__
,
resource_path
)
resource_content
=
pkg_resources
.
resource_string
(
__name__
,
resource_path
)
return
unicode
(
resource_content
)
return
unicode
(
resource_content
)
...
...
setup.py
View file @
bd707a12
...
@@ -29,12 +29,13 @@ from setuptools import setup
...
@@ -29,12 +29,13 @@ from setuptools import setup
# Functions #########################################################
# Functions #########################################################
def
package_data
(
pkg
,
root
):
def
package_data
(
pkg
,
root
_list
):
"""Generic function to find package_data for `pkg` under `root`."""
"""Generic function to find package_data for `pkg` under `root`."""
data
=
[]
data
=
[]
for
dirname
,
_
,
files
in
os
.
walk
(
os
.
path
.
join
(
pkg
,
root
)):
for
root
in
root_list
:
for
fname
in
files
:
for
dirname
,
_
,
files
in
os
.
walk
(
os
.
path
.
join
(
pkg
,
root
)):
data
.
append
(
os
.
path
.
relpath
(
os
.
path
.
join
(
dirname
,
fname
),
pkg
))
for
fname
in
files
:
data
.
append
(
os
.
path
.
relpath
(
os
.
path
.
join
(
dirname
,
fname
),
pkg
))
return
{
pkg
:
data
}
return
{
pkg
:
data
}
...
@@ -70,5 +71,5 @@ setup(
...
@@ -70,5 +71,5 @@ setup(
'xblock.v1'
:
BLOCKS
,
'xblock.v1'
:
BLOCKS
,
'xblock.light_children'
:
BLOCKS_CHILDREN
,
'xblock.light_children'
:
BLOCKS_CHILDREN
,
},
},
package_data
=
package_data
(
"mentoring"
,
"static"
),
package_data
=
package_data
(
"mentoring"
,
[
"static"
,
"templates"
]
),
)
)
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