Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
c48365a7
Commit
c48365a7
authored
May 15, 2020
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid reliance on shell details in test_virtualenv.
parent
2f1d7173
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
setuptools/tests/test_virtualenv.py
setuptools/tests/test_virtualenv.py
+5
-10
No files found.
setuptools/tests/test_virtualenv.py
View file @
c48365a7
...
...
@@ -112,10 +112,9 @@ def test_pip_upgrade_from_source(pip_version, virtualenv):
dist_dir
=
virtualenv
.
workspace
# Generate source distribution / wheel.
virtualenv
.
run
(
' && '
.
join
((
'cd {source}'
,
'python setup.py -q sdist -d {dist}'
,
'python setup.py -q bdist_wheel -d {dist}'
,
)).
format
(
source
=
SOURCE_DIR
,
dist
=
dist_dir
)
)
)).
format
(
dist
=
dist_dir
),
cd
=
SOURCE_DIR
)
sdist
=
glob
.
glob
(
os
.
path
.
join
(
dist_dir
,
'*.zip'
))[
0
]
wheel
=
glob
.
glob
(
os
.
path
.
join
(
dist_dir
,
'*.whl'
))[
0
]
# Then update from wheel.
...
...
@@ -180,10 +179,8 @@ def _check_test_command_install_requirements(virtualenv, tmpdir):
open('success', 'w').close()
'''
))
# Run test command for test package.
virtualenv
.
run
(
' && '
.
join
((
'cd {tmpdir}'
,
'python setup.py test -s test'
,
)).
format
(
tmpdir
=
tmpdir
))
virtualenv
.
run
(
[
'python'
,
'setup.py'
,
'test'
,
'-s'
,
'test'
],
cd
=
str
(
tmpdir
))
assert
tmpdir
.
join
(
'success'
).
check
()
...
...
@@ -204,7 +201,5 @@ def test_no_missing_dependencies(bare_virtualenv):
Quick and dirty test to ensure all external dependencies are vendored.
"""
for
command
in
(
'upload'
,):
# sorted(distutils.command.__all__):
bare_virtualenv
.
run
(
' && '
.
join
((
'cd {source}'
,
'python setup.py {command} -h'
,
)).
format
(
command
=
command
,
source
=
SOURCE_DIR
))
bare_virtualenv
.
run
(
[
'python'
,
'setup.py'
,
command
,
'-h'
],
cd
=
SOURCE_DIR
)
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