Commit 3bcf5f7
committed
fix: make python-magic import graceful on Windows (avoids segfault when libmagic missing)
- Wrap import magic in try/except so the module can be imported on
Windows without libmagic installed.
- Guard _identify MIME-type lookup — returns None (falling back
to extension matching) when magic is unavailable.
- CI: skip --extras dbc and pre-commit on Windows.
- CI: per-OS timeout (30 m Windows, 15 m Linux).
- CI: guard Pages deployment steps behind refs/heads/main to avoid
failure on PRs from forks.
- Coverage: omit pysus/management/client.py and pysus/tui/*.1 parent 99c8e34 commit 3bcf5f7
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
18 | 23 | | |
19 | 24 | | |
20 | 25 | | |
| |||
832 | 837 | | |
833 | 838 | | |
834 | 839 | | |
| 840 | + | |
| 841 | + | |
835 | 842 | | |
836 | 843 | | |
837 | 844 | | |
| |||
0 commit comments