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
cf08262d
Commit
cf08262d
authored
Apr 11, 2012
by
Chris Jerdonek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a main() function to setup.py for more flexibility in organizing its functions.
parent
4f2ab143
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
44 deletions
+50
-44
setup.py
+50
-44
No files found.
setup.py
View file @
cf08262d
...
...
@@ -2,7 +2,7 @@
# coding: utf-8
"""
This script supports
installing and distributing pystache
.
This script supports
distributing pystache and testing it from a source distribution
.
Below are instructions to pystache maintainers on how to push a new
version of pystache to PyPI--
...
...
@@ -126,46 +126,52 @@ PACKAGES = [
]
setup
(
name
=
'pystache'
,
version
=
VERSION
,
license
=
'MIT'
,
description
=
'Mustache for Python'
,
long_description
=
long_description
,
author
=
'Chris Wanstrath'
,
author_email
=
'chris@ozmm.org'
,
maintainer
=
'Chris Jerdonek'
,
url
=
'http://github.com/defunkt/pystache'
,
install_requires
=
INSTALL_REQUIRES
,
packages
=
PACKAGES
,
package_data
=
{
# Include the README so doctests can be run.
# TODO: is there a better way to include the README?
'pystache'
:
[
'../README.rst'
,
'../ext/spec/specs/*.json'
,
'../ext/spec/specs/*.yml'
,
],
# Include template files so tests can be run.
'examples'
:
template_files
,
'pystache.tests.data'
:
template_files
,
'pystache.tests.data.locator'
:
template_files
,
},
test_suite
=
'pystache.tests'
,
entry_points
=
{
'console_scripts'
:
[
'pystache=pystache.commands:main'
],
},
classifiers
=
(
'Development Status :: 4 - Beta'
,
'License :: OSI Approved :: MIT License'
,
'Programming Language :: Python'
,
'Programming Language :: Python :: 2'
,
'Programming Language :: Python :: 2.4'
,
'Programming Language :: Python :: 2.5'
,
'Programming Language :: Python :: 2.6'
,
'Programming Language :: Python :: 2.7'
,
'Programming Language :: Python :: 3'
,
'Programming Language :: Python :: 3.1'
,
'Programming Language :: Python :: 3.2'
,
),
**
extra
)
def
main
(
sys_argv
):
setup
(
name
=
'pystache'
,
version
=
VERSION
,
license
=
'MIT'
,
description
=
'Mustache for Python'
,
long_description
=
long_description
,
author
=
'Chris Wanstrath'
,
author_email
=
'chris@ozmm.org'
,
maintainer
=
'Chris Jerdonek'
,
url
=
'http://github.com/defunkt/pystache'
,
install_requires
=
INSTALL_REQUIRES
,
packages
=
PACKAGES
,
package_data
=
{
# Include the README so doctests can be run.
# TODO: is there a better way to include the README?
'pystache'
:
[
'../README.rst'
,
'../ext/spec/specs/*.json'
,
'../ext/spec/specs/*.yml'
,
],
# Include template files so tests can be run.
'examples'
:
template_files
,
'pystache.tests.data'
:
template_files
,
'pystache.tests.data.locator'
:
template_files
,
},
test_suite
=
'pystache.tests'
,
entry_points
=
{
'console_scripts'
:
[
'pystache=pystache.commands:main'
],
},
classifiers
=
(
'Development Status :: 4 - Beta'
,
'License :: OSI Approved :: MIT License'
,
'Programming Language :: Python'
,
'Programming Language :: Python :: 2'
,
'Programming Language :: Python :: 2.4'
,
'Programming Language :: Python :: 2.5'
,
'Programming Language :: Python :: 2.6'
,
'Programming Language :: Python :: 2.7'
,
'Programming Language :: Python :: 3'
,
'Programming Language :: Python :: 3.1'
,
'Programming Language :: Python :: 3.2'
,
),
**
extra
)
if
__name__
==
'__main__'
:
main
(
sys
.
argv
)
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