We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ee29bd commit d901698Copy full SHA for d901698
setuptools/tests/test_sdist.py
@@ -4,6 +4,7 @@
4
import io
5
import logging
6
import os
7
+import pathlib
8
import sys
9
import tarfile
10
import tempfile
@@ -822,6 +823,21 @@ def get_source_files(self):
822
823
manifest = cmd.filelist.files
824
assert '.myfile~' in manifest
825
826
+ @pytest.mark.xfail(reason="4615")
827
+ def test_build_base_pathlib(self, source_dir):
828
+ """
829
+ Ensure if build_base is a pathlib.Path, the build still succeeds.
830
831
+ dist = Distribution({
832
+ **SETUP_ATTRS,
833
+ "script_name": "setup.py",
834
+ "options": {"build": {"build_base": pathlib.Path('build')}},
835
+ })
836
+ cmd = sdist(dist)
837
+ cmd.ensure_finalized()
838
+ with quiet():
839
+ cmd.run()
840
+
841
842
def test_default_revctrl():
843
"""
0 commit comments