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
9447214e
Commit
9447214e
authored
Apr 23, 2012
by
Chris Jerdonek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed an issue whereby setup.py was not importable when running tox.
parent
0770b896
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
pystache/tests/main.py
+12
-2
setup.py
+3
-3
No files found.
pystache/tests/main.py
View file @
9447214e
...
...
@@ -52,6 +52,7 @@ def run_tests(sys_argv):
_PystacheTestProgram
.
_text_doctest_dir
=
project_dir
_PystacheTestProgram
.
_spec_test_dir
=
spec_test_dir
SetupTests
.
project_dir
=
project_dir
# We pass None for the module because we do not want the unittest
# module to resolve module names relative to a given module.
...
...
@@ -85,13 +86,22 @@ class SetupTests(unittest.TestCase):
"""Tests about setup.py."""
project_dir
=
None
def
test_version
(
self
):
"""
Test that setup.py's version matches the package's version.
"""
from
setup
import
VERSION
self
.
assertEqual
(
VERSION
,
pystache
.
__version__
)
original_path
=
list
(
sys
.
path
)
sys
.
path
.
insert
(
0
,
self
.
project_dir
)
try
:
from
setup
import
VERSION
self
.
assertEqual
(
VERSION
,
pystache
.
__version__
)
finally
:
sys
.
path
=
original_path
# The function unittest.main() is an alias for unittest.TestProgram's
...
...
setup.py
View file @
9447214e
...
...
@@ -120,9 +120,6 @@ if sys.argv[-1] == 'publish':
publish
()
sys
.
exit
()
long_description
=
make_long_description
()
template_files
=
[
'*.mustache'
,
'*.txt'
]
# We follow the guidance here for compatibility with using setuptools instead
# of Distribute under Python 2 (on the subject of new, unrecognized keyword
# arguments to setup()):
...
...
@@ -169,6 +166,9 @@ PACKAGES = [
def
main
(
sys_argv
):
long_description
=
make_long_description
()
template_files
=
[
'*.mustache'
,
'*.txt'
]
setup
(
name
=
'pystache'
,
version
=
VERSION
,
license
=
'MIT'
,
...
...
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