Skip to content

Support fcntl check on Emscripten#398

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

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

Conversation

@juntyr

@juntyr juntyr commented Feb 19, 2025

Copy link
Copy Markdown
Contributor

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.

@gaborbernat gaborbernat left a comment

Copy link
Copy Markdown
Member

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

juntyr commented Feb 19, 2025

Copy link
Copy Markdown
Contributor Author

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

juntyr commented Mar 14, 2025

Copy link
Copy Markdown
Contributor Author

@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