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

Ensure temporary directory cleanup on error for Python 3.9 or older #9753

Closed
AsifArmanRahman opened this issue Oct 11, 2024 · 1 comment · Fixed by python-poetry/poetry-core#775
Labels
kind/bug Something isn't working as expected status/triage This issue needs to be triaged

Comments

@AsifArmanRahman
Copy link

Description

While cleanup takes place for temporary_directory function even if errors takes place while it's yielded on python version 3.10 and higher, for python version 3.9 or lower the cleanup takes place only if no error takes place.

Workarounds

While a restart would cleanup left over tmp folders for Unix-based OS, Windows would do the same after keeping it intact for a long while, otherwise one would have to manually clean it.

Poetry Installation Method

install.python-poetry.org

Operating System

Ubuntu 24.04.1 LTS

Poetry Version

1.8.3

Poetry Configuration

cache-dir = "~/.cache/pypoetry"
experimental.system-git-client = false
installer.max-workers = null
installer.modern-installation = true
installer.no-binary = null
installer.parallel = true
keyring.enabled = true
solver.lazy-wheel = true
virtualenvs.create = true
virtualenvs.in-project = null
virtualenvs.options.always-copy = false
virtualenvs.options.no-pip = false
virtualenvs.options.no-setuptools = false
virtualenvs.options.system-site-packages = false
virtualenvs.path = "{cache-dir}/virtualenvs"  # ~/.cache/pypoetry/virtualenvs
virtualenvs.prefer-active-python = false
virtualenvs.prompt = "{project_name}-py{python_version}"
warnings.export = true

Python Sysconfig

No response

Example pyproject.toml

No response

Poetry Runtime Logs

Not applicable
@AsifArmanRahman AsifArmanRahman added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Oct 11, 2024
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected status/triage This issue needs to be triaged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant