diff options
| author | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2022-11-22 17:44:56 +0000 |
|---|---|---|
| committer | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2022-11-22 17:54:56 +0000 |
| commit | 6deebc6c74fced40266c46d3edc65fdb5f922b96 (patch) | |
| tree | 38ec029e714c13286384af88e65e32d24c48be0b /setuptools/tests | |
| parent | 59ee4980a0f49ea610e26a1aca104334ae03d140 (diff) | |
| download | python-setuptools-git-6deebc6c74fced40266c46d3edc65fdb5f922b96.tar.gz | |
Capture behaviour of issue 3692 in test
Diffstat (limited to 'setuptools/tests')
| -rw-r--r-- | setuptools/tests/test_config_discovery.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/setuptools/tests/test_config_discovery.py b/setuptools/tests/test_config_discovery.py index 85b64b31..f65b00b6 100644 --- a/setuptools/tests/test_config_discovery.py +++ b/setuptools/tests/test_config_discovery.py @@ -248,6 +248,19 @@ class TestDiscoverPackagesAndPyModules: with pytest.raises(PackageDiscoveryError, match="multiple (packages|modules)"): _get_dist(tmp_path, {}) + def test_py_modules_when_wheel_dir_is_cwd(self, tmp_path): + """Regression for issue 3692""" + from setuptools import build_meta + + pyproject = '[project]\nname = "test"\nversion = "1"' + (tmp_path / "pyproject.toml").write_text(DALS(pyproject), encoding="utf-8") + (tmp_path / "foo.py").touch() + with jaraco.path.DirectoryStack().context(tmp_path): + build_meta.build_wheel(".") + # Ensure py_modules are found + wheel_files = get_wheel_members(next(tmp_path.glob("*.whl"))) + assert "foo.py" in wheel_files + class TestNoConfig: DEFAULT_VERSION = "0.0.0" # Default version given by setuptools |
