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

Support fcntl check on Emscripten #398

Merged
merged 3 commits into from
Feb 19, 2025
Merged

Support fcntl check on Emscripten #398

merged 3 commits into from
Feb 19, 2025

Conversation

juntyr
Copy link
Contributor

@juntyr juntyr commented Feb 19, 2025

In Pyodide/Emscripten, file locking is not (yet) supported (see e.g. pyodide/pyodide#4150 (comment)).

This PR extends the fcntl import check to also test whether the locking APIs are available, so that the soft locking fallback can be used if they are not. As a result, the filelock package becomes usable in Pyodide/Emscripten.

Copy link
Member

@gaborbernat gaborbernat left a comment

Choose a reason for hiding this comment

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

Seems the CI does not like your changes 🤔

@juntyr
Copy link
Contributor Author

juntyr commented Feb 19, 2025

Seems the CI does not like your changes 🤔

Whoops, I managed to mistype fcntl.flock, I hope we'll get a green CI now :)

@gaborbernat gaborbernat merged commit 82f5a2d into tox-dev:main Feb 19, 2025
28 checks passed
@juntyr juntyr deleted the patch-1 branch February 19, 2025 17:32
@juntyr
Copy link
Contributor Author

juntyr commented Mar 14, 2025

@gaborbernat Is there a rough timeline for when the next version of filelock will be released?

@gaborbernat
Copy link
Member

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