poetry-core
poetry-core copied to clipboard
use tempfile.TemporaryDirectory
cf https://github.com/python-poetry/poetry/pull/5522
but note that there's a testcase in this repository: https://github.com/python-poetry/poetry-core/blob/8c75c1ae53996be8c4c88ccc2c04dfd6940e0290/tests/utils/test_helpers.py#L90. So if the pipeline passes that should give us confidence that this is good,
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.5% Duplication
Looks like Windows and python3.7 are not happy with this, https://bugs.python.org/issue26660 presumably.
if and when we eventually get to do this, should probably remove the unit test case also - it wouldn't make much sense to have a unit test for tempfile function.
Re: implementing this now, one option is https://github.com/python-poetry/poetry/pull/5522#issuecomment-1120488761
You have successfully added a new SonarCloud configuration ``. As part of the setup process, we have scanned this repository and found no existing alerts. In the future, you will see all code scanning alerts on the repository Security tab.
rebased on #566 so that we no longer need to care about Windows python 3.7 bugs
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.0% Duplication
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
No data about Coverage
No data about Duplication