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
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
5 deletions
+14
-5
MANIFEST.in
+1
-1
setup.py
+11
-3
setup_description.rst
+2
-1
No files found.
MANIFEST.in
View file @
34b6ebd1
include README.md
include README.md
include HISTORY.md
include HISTORY.md
include LICENSE
include LICENSE
include
DESCRIPTION
.rst
include
setup_description
.rst
include tox.ini
include tox.ini
include test_pystache.py
include test_pystache.py
# You cannot use package_data, for example, to include data files in a
# You cannot use package_data, for example, to include data files in a
...
...
setup.py
View file @
34b6ebd1
...
@@ -19,7 +19,7 @@ Generate the reStructuredText long_description using--
...
@@ -19,7 +19,7 @@ Generate the reStructuredText long_description using--
and be sure this new version is checked in. You must have pandoc installed
and be sure this new version is checked in. You must have pandoc installed
to do this step:
to do this step:
http://johnmacfarlane.net/pandoc/
http://johnmacfarlane.net/pandoc/
It helps to review this auto-generated file on GitHub prior to uploading
It helps to review this auto-generated file on GitHub prior to uploading
because the long description will be sent to PyPI and appear there after
because the long description will be sent to PyPI and appear there after
...
@@ -164,8 +164,8 @@ def make_description_file(target_path):
...
@@ -164,8 +164,8 @@ def make_description_file(target_path):
"""
"""
# Comments in reST begin with two dots.
# Comments in reST begin with two dots.
intro
=
"""
\
intro
=
"""
\
.. This file is auto-generated by setup.py
using pandoc, so any edit
s
.. This file is auto-generated by setup.py
for PyPI using pandoc, so thi
s
..
should go in the source markdown
files.
..
file should not be edited. Edits should go in the source
files.
"""
"""
readme_path
=
convert_md_to_rst
(
README_PATH
)
readme_path
=
convert_md_to_rst
(
README_PATH
)
...
@@ -224,10 +224,18 @@ def convert_md_to_rst(path):
...
@@ -224,10 +224,18 @@ def convert_md_to_rst(path):
temp_path
=
make_temp_path
(
path
)
temp_path
=
make_temp_path
(
path
)
print
(
"Converting:
%
s to
%
s"
%
(
path
,
temp_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.
# Pandoc uses the UTF-8 character encoding for both input and output.
command
=
"pandoc --write=rst --output=
%
s
%
s"
%
(
temp_path
,
path
)
command
=
"pandoc --write=rst --output=
%
s
%
s"
%
(
temp_path
,
path
)
os
.
system
(
command
)
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
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
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