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
8a4b06db
Commit
8a4b06db
authored
Aug 06, 2020
by
Thomas Kluyver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test for PEP 517 backends not installing setup_requires
parent
21c81324
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
1 deletion
+31
-1
setuptools/tests/test_build_meta.py
setuptools/tests/test_build_meta.py
+31
-1
No files found.
setuptools/tests/test_build_meta.py
View file @
8a4b06db
...
...
@@ -380,7 +380,7 @@ class TestBuildMetaBackend:
setup(
name="qux",
version="0.0.0",
py_modules=["hello
.py
"],
py_modules=["hello"],
setup_requires={setup_literal},
)
"""
).
format
(
setup_literal
=
setup_literal
),
...
...
@@ -407,6 +407,36 @@ class TestBuildMetaBackend:
assert
expected
==
sorted
(
actual
)
def
test_dont_install_setup_requires
(
self
,
tmpdir_cwd
):
files
=
{
'setup.py'
:
DALS
(
"""
from setuptools import setup
setup(
name="qux",
version="0.0.0",
py_modules=["hello"],
setup_requires=["does-not-exist >99"],
)
"""
),
'hello.py'
:
DALS
(
"""
def run():
print('hello')
"""
),
}
build_files
(
files
)
build_backend
=
self
.
get_build_backend
()
dist_dir
=
os
.
path
.
abspath
(
'pip-dist-info'
)
os
.
makedirs
(
dist_dir
)
# does-not-exist can't be satisfied, so if it attempts to install
# setup_requires, it will fail.
build_backend
.
prepare_metadata_for_build_wheel
(
dist_dir
)
_sys_argv_0_passthrough
=
{
'setup.py'
:
DALS
(
"""
import os
...
...
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