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

limit filelock to highest compatible version #2736

Closed
wants to merge 3 commits into from

Conversation

emmettbutler
Copy link

@emmettbutler emmettbutler commented Jun 12, 2024

filelock 3.15.0 was just released and causes the following crash when used with the latest version of virtualenv

Traceback (most recent call last):
  File "/root/.pyenv/versions/3.10.11/lib/python3.10/site-packages/filelock/_api.py", line 365, in __del__
    self.release(force=True)
  File "/root/.pyenv/versions/3.10.11/lib/python3.10/site-packages/virtualenv/util/lock.py", line 34, in release
    with self.thread_safe:
AttributeError: '_CountedFileLock' object has no attribute 'thread_safe'

This change avoids depending on this new incompatible version of filelock.

Thanks for contributing, make sure you address all the checklists (for details on how see development documentation)

  • ran the linter to address style issues (tox -e fix)
  • wrote descriptive pull request text
  • ensured there are test(s) validating the fix
  • added news fragment in docs/changelog folder
  • updated/extended the documentation

filelock 3.15.0 was just released and causes the following crash when used with the latest version of virtualenv

```
Traceback (most recent call last):
  File "/root/.pyenv/versions/3.10.11/lib/python3.10/site-packages/filelock/_api.py", line 365, in __del__
    self.release(force=True)
  File "/root/.pyenv/versions/3.10.11/lib/python3.10/site-packages/virtualenv/util/lock.py", line 34, in release
    with self.thread_safe:
AttributeError: '_CountedFileLock' object has no attribute 'thread_safe'
```

This change avoids depending on this new incompatible version of filelock.
pyproject.toml Outdated
@@ -44,7 +44,7 @@ dynamic = [
]
dependencies = [
"distlib<1,>=0.3.7",
"filelock<4,>=3.12.2",
"filelock<3.15,>=3.12.2",
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd rather just disallow that version, not limit all future versions.

@gaborbernat
Copy link
Contributor

Fixed via tox-dev/filelock#337 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants