Skip to content

Configure tempdir registry in BaseCommand #7652

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

chrahunt
Copy link
Member

As mentioned in #7608 (comment). This will let us configure and use the tempdir registry to apply the --no-clean configuration to globally managed temporary directories, and eventually remove the responsibility for managing those directories from RequirementSet.

Progresses #7571.

@chrahunt chrahunt added type: refactor Refactoring code skip news Does not need a NEWS file entry (eg: trivial changes) labels Jan 25, 2020
@chrahunt chrahunt marked this pull request as ready for review January 25, 2020 22:27
@chrahunt
Copy link
Member Author

chrahunt commented Jan 28, 2020

Gentle nudge. This would be my pick for priority if any need a priority, since it blocks other refactoring.

@chrahunt chrahunt mentioned this pull request Jan 28, 2020
12 tasks
Copy link
Member

@uranusjr uranusjr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The implementation LGTM. I added a couple of minor comments about readability.

@pradyunsg
Copy link
Member

OK as is, and the aforementioned readability issues also stuck out to me.

Now we can opt-in to globally-managed + globally-configured file
deletion for pre-existing directories by passing an explicit `None`.
Next we can actually transition some files to be globally-managed that
are only deleted conditionally.
@chrahunt chrahunt force-pushed the refactor/configure-tempdir-registry-in-command branch from eb13ade to f2af7df Compare January 30, 2020 04:06
@chrahunt
Copy link
Member Author

Thank you both for reviewing.

@chrahunt chrahunt merged commit 87f4bff into pypa:master Jan 30, 2020
@chrahunt chrahunt deleted the refactor/configure-tempdir-registry-in-command branch January 30, 2020 05:25
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Feb 29, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Feb 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation skip news Does not need a NEWS file entry (eg: trivial changes) type: refactor Refactoring code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants