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
c5326ce4
Commit
c5326ce4
authored
Apr 07, 2012
by
Chris Jerdonek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Eliminate a unit test warning while running tests with earlier versions of Python.
parent
23515708
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
setup.py
+18
-2
No files found.
setup.py
View file @
c5326ce4
...
...
@@ -70,6 +70,22 @@ if sys.argv[-1] == 'publish':
long_description
=
make_long_description
()
template_files
=
[
'*.mustache'
,
'*.txt'
]
# We follow the suggestion here for compatibility with earlier versions
# of Python:
#
# http://packages.python.org/distribute/python3.html#note-on-compatibility-with-setuptools
#
if
sys
.
version_info
<
(
2
,
7
):
extra
=
{}
else
:
# For testing purposes, we also use use_2to3 with Python 2.7. This
# lets us troubleshoot the absence of package resources in the build
# directory more easily (e.g. the absence of README.rst), since we can
# troubleshoot it while using Python 2.7 instead of Python 3.
extra
=
{
'use_2to3'
:
True
,
}
setup
(
name
=
'pystache'
,
version
=
'0.5.0-rc'
,
license
=
'MIT'
,
...
...
@@ -87,7 +103,6 @@ setup(name='pystache',
'pystache.tests.data.locator'
:
template_files
,
},
test_suite
=
'pystache.tests'
,
use_2to3
=
True
,
entry_points
=
{
'console_scripts'
:
[
'pystache=pystache.commands:main'
],
},
...
...
@@ -99,5 +114,6 @@ setup(name='pystache',
'Programming Language :: Python :: 2.5'
,
'Programming Language :: Python :: 2.6'
,
'Programming Language :: Python :: 2.7'
,
)
),
**
extra
)
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