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
f8d1ac65
Commit
f8d1ac65
authored
Dec 13, 2011
by
Chris Jerdonek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Put the code to create the package's long_description into a function.
parent
7b448436
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletions
+13
-1
setup.py
+13
-1
No files found.
setup.py
View file @
f8d1ac65
...
@@ -19,14 +19,26 @@ def publish():
...
@@ -19,14 +19,26 @@ def publish():
os
.
system
(
'python setup.py sdist upload'
)
os
.
system
(
'python setup.py sdist upload'
)
def
make_long_description
():
"""
Return the long description for the package.
"""
long_description
=
open
(
'README.rst'
)
.
read
()
+
'
\n\n
'
+
open
(
'HISTORY.rst'
)
.
read
()
return
long_description
if
sys
.
argv
[
-
1
]
==
'publish'
:
if
sys
.
argv
[
-
1
]
==
'publish'
:
publish
()
publish
()
sys
.
exit
()
sys
.
exit
()
long_description
=
make_long_description
()
setup
(
name
=
'pystache'
,
setup
(
name
=
'pystache'
,
version
=
'0.3.1'
,
version
=
'0.3.1'
,
description
=
'Mustache for Python'
,
description
=
'Mustache for Python'
,
long_description
=
open
(
'README.rst'
)
.
read
()
+
'
\n\n
'
+
open
(
'HISTORY.rst'
)
.
read
()
,
long_description
=
long_description
,
author
=
'Chris Wanstrath'
,
author
=
'Chris Wanstrath'
,
author_email
=
'chris@ozmm.org'
,
author_email
=
'chris@ozmm.org'
,
url
=
'http://github.com/defunkt/pystache'
,
url
=
'http://github.com/defunkt/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