Skip to content
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

Replace tempdir dependency with tempfile #3337

Merged
merged 14 commits into from
Jan 14, 2022

Conversation

jvff
Copy link
Contributor

@jvff jvff commented Jan 12, 2022

Motivation

tempdir is unmaintained and obsoleted by temfile.

Solution

Change crates to depend on tempfile instead of tempdir. Use tempfile::TempDir where tempdir::TempDir was once used. This required changes to either not have a prefix to the temporary name, or to use the tempfile::Builder to add a prefix. Finally, the tempdir exception in deny.toml was removed.

An inferno exception in deny.toml was also removed, as it seems like it's not needed anymore.

This closes #2985.

Review

Anyone can review this low priority PR.

Reviewer Checklist

  • Code implements Specs and Designs
  • Tests for Expected Behaviour
  • Tests for Errors

Follow Up Work

jvff added 8 commits January 12, 2022 19:58
Reduce repeated code and make it easier to change from using `tempdir`
to use `tempfile` instead.
Use `tempfile`'s `TempDir` instead.
Reduce repeated code and make it easier to upgrade to `tempfile`.
Replace obsoleted `tempdir` dependency with `tempfile`.
Replace obsoleted `tempdir` dependency with `tempfile`.
Update it now that `tempdir` has been replaced with `tempfile`.
Ban duplicate versions of the `tempdir` dependency.
It apparently isn't needed anymore.
@jvff jvff added A-dependencies Area: Dependency file updates P-Low ❄️ labels Jan 12, 2022
@jvff jvff requested a review from a team January 12, 2022 21:19
@jvff jvff self-assigned this Jan 12, 2022
Copy link
Contributor

@dconnolly dconnolly left a comment

Choose a reason for hiding this comment

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

Woohoo!

@codecov
Copy link

codecov bot commented Jan 12, 2022

Codecov Report

Merging #3337 (c06ea11) into main (3ba0326) will decrease coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #3337      +/-   ##
==========================================
- Coverage   77.85%   77.82%   -0.04%     
==========================================
  Files         266      266              
  Lines       31447    31449       +2     
==========================================
- Hits        24484    24476       -8     
- Misses       6963     6973      +10     

mergify bot added a commit that referenced this pull request Jan 14, 2022
mergify bot added a commit that referenced this pull request Jan 14, 2022
mergify bot added a commit that referenced this pull request Jan 14, 2022
@mergify mergify bot merged commit 51c6550 into main Jan 14, 2022
@mergify mergify bot deleted the replace-tempdir-dependency-with-tempfile branch January 14, 2022 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-dependencies Area: Dependency file updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace outdated tempdir dependency with tempfile
2 participants