arcade-mcp/libs/arcade-core/arcade_core
Evan Tahler c034046735
Replace fcntl with cross-platform portalocker (fix win/powershell errors) (#739)
So even importing `fcntl` causes problems on windows. This PR replaces
fcntl with portalocker. Tests all pass, so I think we are good.

ref:
https://arcade-ai.slack.com/archives/C08K1SJ072S/p1767897850450239?thread_ts=1766186586.406019&cid=C08K1SJ072S

<img width="934" height="501" alt="Screenshot 2026-01-08 at 2 57 46 PM"
src="https://github.com/user-attachments/assets/1375b6b2-116c-44bd-bbe1-2157dd243d29"
/>

Closes ENGTOP-8

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Cross-platform file locking**
> 
> - Replace `fcntl` with `portalocker` in
`arcade_core/usage/identity.py` (shared/exclusive locks); switch to
atomic `os.replace()`
> - Add `portalocker` dependency and bump `arcade-core` to `4.2.1`
> 
> **Installation/CI**
> 
> - New GitHub Actions workflow `test-install.yml` runs install/CLI
checks on macOS, Windows, and Linux for Python 3.10/3.12
> - Add `tests/install/test_install.py` and README to verify install,
`arcade` CLI availability, and `portalocker` locking behavior
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
3fe98fbcbf177f51fdb0b7fc51b20060f7fc85ad. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
2026-01-09 12:34:36 -08:00
..
converters Adding MCP Servers supports to Arcade Evals (#689) 2026-01-07 20:26:23 -03:00
network feat: Support multiple orgs & projects in Arcade CLI (#717) 2025-12-11 12:58:55 -08:00
usage Replace fcntl with cross-platform portalocker (fix win/powershell errors) (#739) 2026-01-09 12:34:36 -08:00
__init__.py 🏗️ Restructure: Multi-Package Architecture + uv Migration (#412) 2025-06-11 16:48:17 -07:00
annotations.py 🏗️ Restructure: Multi-Package Architecture + uv Migration (#412) 2025-06-11 16:48:17 -07:00
auth.py PagerDuty typed OAuth object (#718) 2025-12-15 17:42:11 -03:00
auth_tokens.py feat: Support multiple orgs & projects in Arcade CLI (#717) 2025-12-11 12:58:55 -08:00
catalog.py Consistent Server Description and Version (#674) 2025-11-03 15:20:12 -08:00
config.py 🏗️ Restructure: Multi-Package Architecture + uv Migration (#412) 2025-06-11 16:48:17 -07:00
config_model.py feat: Support multiple orgs & projects in Arcade CLI (#717) 2025-12-11 12:58:55 -08:00
constants.py feat: Support multiple orgs & projects in Arcade CLI (#717) 2025-12-11 12:58:55 -08:00
context.py MCP Local (#563) 2025-09-25 15:28:15 -07:00
discovery.py MCP Local (#563) 2025-09-25 15:28:15 -07:00
errors.py Tool Error Handling (#539) 2025-09-10 10:45:18 -07:00
executor.py Worker Stability (#688) 2025-11-20 11:13:41 -08:00
output.py Tool Error Handling (#539) 2025-09-10 10:45:18 -07:00
parse.py MCP Local (#563) 2025-09-25 15:28:15 -07:00
py.typed 🏗️ Restructure: Multi-Package Architecture + uv Migration (#412) 2025-06-11 16:48:17 -07:00
schema.py Better Handling of MCP-specific Context usage for managed servers (#679) 2025-11-07 10:26:56 -08:00
toolkit.py Fix: Skip currently executing file during tool discovery (#668) 2025-11-03 11:26:51 -08:00
utils.py Fix MCP capabilities, examples, tests, and more (#657) 2025-10-30 11:59:00 -07:00
version.py 🏗️ Restructure: Multi-Package Architecture + uv Migration (#412) 2025-06-11 16:48:17 -07:00