Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Matrix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Operate
Environments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Matrix
Commits
fd246fde
Commit
fd246fde
authored
9 years ago
by
Mark Haines
Browse files
Options
Downloads
Patches
Plain Diff
Install tox locally if it wasn't already installed when running setup.py test
parent
4f6fa981
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
setup.py
+10
-2
10 additions, 2 deletions
setup.py
with
10 additions
and
2 deletions
setup.py
+
10
−
2
View file @
fd246fde
...
...
@@ -51,7 +51,16 @@ class Tox(Command):
def
run
(
self
):
#import here, cause outside the eggs aren't loaded
import
tox
try
:
import
tox
except
ImportError
:
try
:
self
.
distribution
.
fetch_build_eggs
(
"
tox
"
)
import
tox
except
:
raise
RuntimeError
(
"
The tests need
'
tox
'
to run. Please install
'
tox
'
.
"
)
import
shlex
args
=
self
.
tox_args
if
args
:
...
...
@@ -75,6 +84,5 @@ setup(
zip_safe
=
False
,
long_description
=
long_description
,
scripts
=
[
"
synctl
"
]
+
glob
.
glob
(
"
scripts/*
"
),
tests_require
=
[
'
tox
'
],
cmdclass
=
{
'
test
'
:
Tox
},
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment