Commit 720ba101 authored by Jason R. Coombs's avatar Jason R. Coombs

Inline setup.py for consistency.

parent 9cb2bcb4
......@@ -45,23 +45,22 @@ class BuildBackendCaller(BuildBackendBase):
@pytest.fixture
def build_backend(tmpdir):
setup_script = DALS("""
from setuptools import setup
setup(
name='foo',
py_modules=['hello'],
setup_requires=['six'],
entry_points={'console_scripts': ['hi = hello.run']},
zip_safe=False,
)
""")
defn = {
'setup.py': setup_script,
'setup.py': DALS("""
from setuptools import setup
setup(
name='foo',
py_modules=['hello'],
setup_requires=['six'],
entry_points={'console_scripts': ['hi = hello.run']},
zip_safe=False,
)
"""),
'hello.py': DALS("""
def run():
print('hello')
""")
"""),
}
build_files(defn, prefix=str(tmpdir))
with tmpdir.as_cwd():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment