diff options
| author | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2022-08-11 18:07:05 +0100 |
|---|---|---|
| committer | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2022-08-11 18:07:05 +0100 |
| commit | 8b663815fd7cb5d78fb9ba13f93d6dd4ee4ebc0b (patch) | |
| tree | 549a7b2d14396db8252dda61314c620b3113ec05 /setuptools | |
| parent | 193e4e0c49489077acb396d226cef377843e49f7 (diff) | |
| download | python-setuptools-git-8b663815fd7cb5d78fb9ba13f93d6dd4ee4ebc0b.tar.gz | |
editable_install: Ensure tests with legacy namespaces run
Diffstat (limited to 'setuptools')
| -rw-r--r-- | setuptools/tests/test_editable_install.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/setuptools/tests/test_editable_install.py b/setuptools/tests/test_editable_install.py index 57e31eda..40a35f65 100644 --- a/setuptools/tests/test_editable_install.py +++ b/setuptools/tests/test_editable_install.py @@ -173,8 +173,15 @@ class TestLegacyNamespaces: and the other installed in editable mode should leave the namespace intact and both packages reachable by import. """ + build_system = """\ + [build-system] + requires = ["setuptools"] + build-backend = "setuptools.build_meta" + """ pkg_A = namespaces.build_namespace_package(tmp_path, 'myns.pkgA') pkg_B = namespaces.build_namespace_package(tmp_path, 'myns.pkgB') + (pkg_A / "pyproject.toml").write_text(build_system, encoding="utf-8") + (pkg_B / "pyproject.toml").write_text(build_system, encoding="utf-8") # use pip to install to the target directory opts = editable_opts[:] opts.append("--no-build-isolation") # force current version of setuptools |
