Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pystache_custom
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
pystache_custom
Commits
34b6ebd1
Commit
34b6ebd1
authored
May 10, 2012
by
Chris Jerdonek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed MANIFEST.in; setup.py now provides an error message about pandoc.
parent
ea3eb8b8
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
4 deletions
+13
-4
MANIFEST.in
+1
-1
setup.py
+10
-2
setup_description.rst
+2
-1
No files found.
MANIFEST.in
View file @
34b6ebd1
include README.md
include HISTORY.md
include LICENSE
include
DESCRIPTION
.rst
include
setup_description
.rst
include tox.ini
include test_pystache.py
# You cannot use package_data, for example, to include data files in a
...
...
setup.py
View file @
34b6ebd1
...
...
@@ -164,8 +164,8 @@ def make_description_file(target_path):
"""
# Comments in reST begin with two dots.
intro
=
"""
\
.. This file is auto-generated by setup.py
using pandoc, so any edit
s
..
should go in the source markdown
files.
.. This file is auto-generated by setup.py
for PyPI using pandoc, so thi
s
..
file should not be edited. Edits should go in the source
files.
"""
readme_path
=
convert_md_to_rst
(
README_PATH
)
...
...
@@ -224,10 +224,18 @@ def convert_md_to_rst(path):
temp_path
=
make_temp_path
(
path
)
print
(
"Converting:
%
s to
%
s"
%
(
path
,
temp_path
))
if
os
.
path
.
exists
(
temp_path
):
os
.
remove
(
temp_path
)
# Pandoc uses the UTF-8 character encoding for both input and output.
command
=
"pandoc --write=rst --output=
%
s
%
s"
%
(
temp_path
,
path
)
os
.
system
(
command
)
if
not
os
.
path
.
exists
(
temp_path
):
s
=
(
"Error running:
%
s
\n
"
" Did you install pandoc per the
%
s docstring?"
%
(
command
,
__file__
))
sys
.
exit
(
s
)
return
temp_path
...
...
setup_description.rst
View file @
34b6ebd1
.. This file is auto-generated by setup.py, so it should not be edited.
.. This file is auto-generated by setup.py for PyPI using pandoc, so this
.. file should not be edited. Edits should go in the source files.
Pystache
========
...
...
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