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
8a7a6272
Commit
8a7a6272
authored
Dec 27, 2019
by
Tzu-ping Chung
Committed by
Jason R. Coombs
Dec 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test ensuring pyproject.toml is included during PEP 517 build.
parent
a5b66a85
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
setuptools/tests/test_build_meta.py
setuptools/tests/test_build_meta.py
+21
-0
No files found.
setuptools/tests/test_build_meta.py
View file @
8a7a6272
...
...
@@ -262,6 +262,27 @@ class TestBuildMetaBackend:
assert
os
.
path
.
isfile
(
os
.
path
.
join
(
os
.
path
.
abspath
(
"out_sdist"
),
sdist_name
))
def
test_build_sdist_pyproject_toml_exists
(
self
,
tmpdir_cwd
):
files
=
{
'setup.py'
:
DALS
(
"""
__import__('setuptools').setup(
name='foo',
version='0.0.0',
py_modules=['hello']
)"""
),
'hello.py'
:
''
,
'pyproject.toml'
:
DALS
(
"""
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta
"""
),
}
build_files
(
files
)
build_backend
=
self
.
get_build_backend
()
targz_path
=
build_backend
.
build_sdist
(
"temp"
)
with
tarfile
.
open
(
os
.
path
.
join
(
"temp"
,
targz_path
))
as
tar
:
assert
any
(
'pyproject.toml'
in
name
for
name
in
tar
.
getnames
())
def
test_build_sdist_setup_py_exists
(
self
,
tmpdir_cwd
):
# If build_sdist is called from a script other than setup.py,
# ensure setup.py is included
...
...
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