Skip to content

[CI] tmp_src fixture seems to be copying everything including .git  #2921

@abravalheri

Description

@abravalheri

setuptools version

v59.4.0

Python version

Python 3.8

OS

Ubuntu 20.04.3 LTS

Additional environment information

No response

Description

It seems that the tmp_src is copying everything under the project directory to a temporary folder including the .git directory (and possibly others like .tox). These directories can be quite heavy and error prone to copy.

My terminal got stuck when trying to run the test_pip_upgrade_from_source folder, then I decided to have a look on the temporary folder being produced by pytest, and I found git-related files there.

Expected behavior

The fixture should avoid copying unnecessary files.

How to Reproduce

  1. Run the tests (e.g. test_pip_upgrade_from_source)
  2. Inspect the temporary directory generated by pytest and look for a git folder.

Output

git_being_copied

Code of Conduct

  • I agree to follow the PSF Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs TriageIssues that need to be evaluated for severity and status.bug

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions