Skip to content

Commit d6bc038

Browse files
committed
🐛 Avoid copying .tox folder when extracting metadata from package
Because when running local tests for `test_pythonpackages` and we have some virtual envs created with tox the function also copies the hidden tox folder causing error on our tests
1 parent 16d38ad commit d6bc038

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pythonforandroid/pythonpackage.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ def extract_metainfo_files_from_package(
108108
if is_filesystem_path(package):
109109
shutil.copytree(
110110
parse_as_folder_reference(package),
111-
os.path.join(temp_folder, "package")
111+
os.path.join(temp_folder, "package"),
112+
ignore=shutil.ignore_patterns(".tox")
112113
)
113114
package = os.path.join(temp_folder, "package")
114115

0 commit comments

Comments
 (0)