Skip to content

Support fcntl check on Emscripten#398

Merged
gaborbernat merged 3 commits intotox-dev:mainfrom
juntyr:patch-1
Feb 19, 2025
Merged

Support fcntl check on Emscripten#398
gaborbernat merged 3 commits intotox-dev:mainfrom
juntyr:patch-1

Conversation

@juntyr
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@juntyr juntyr deleted the patch-1 branch February 19, 2025 17:32
@juntyr
Copy link
Copy Markdown
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
Copy Markdown
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