install libev on build scripts

+ fix: scanning system dirs on mac
This commit is contained in:
cwilvx
2025-04-03 14:25:44 +03:00
parent d6821bb6d3
commit 056c0456f9
7 changed files with 17 additions and 9 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ jobs:
- name: Activate virtualenv (linux)
if: matrix.os == 'ubuntu-20.04'
run: |
source .venv/bin/activate && pip install bjoern
apt-get install libev-dev && source .venv/bin/activate && pip install bjoern
- name: Activate virtualenv (windows)
if: matrix.os == 'windows-2019'
run: |
+3
View File
@@ -32,3 +32,6 @@ testdata.py
test.py
nohup.out
*s.json
.DS_Store
+1 -1
View File
@@ -23,7 +23,7 @@ cd swingmusicbuilder
git clone --quiet https://github.com/swing-opensource/swingmusic-client.git
git clone --quiet https://github.com/swing-opensource/swingmusic.git
# Manual poetry installation as installers are broken.
python3.11 -m venv venv
source venv/bin/activate
+1 -1
View File
@@ -71,7 +71,7 @@ def handle_build(*args, **kwargs):
f"--add-data=client{_s}client",
f"--add-data=version.txt{_s}.",
f"--add-data={flask_openapi_path}/templates/static{_s}flask_openapi3/templates/static",
f"--icon=assets/logo-fill.light.ico",
"--icon=assets/logo-fill.light.ico",
"-y",
]
)
+1 -2
View File
@@ -1,5 +1,4 @@
from dataclasses import asdict
import math
import os
from concurrent.futures import ProcessPoolExecutor
import platform
@@ -45,7 +44,7 @@ class CordinateMedia:
)
log.error(e) # REVIEW More informations = good
else:
log.warning(f"No internet connection. Downloading artist images suspended!")
log.warning("No internet connection. Downloading artist images suspended!")
# Re-process the new artist images.
if tried_to_download_new_images:
-4
View File
@@ -1,4 +1,3 @@
import math
import os
from functools import partial
from multiprocessing import Pool, cpu_count
@@ -116,9 +115,6 @@ class IndexTracks:
return unmodified_paths, modified_tracks
def get_untagged(self):
tracks = TrackTable.get_all()
@staticmethod
def _process_file(file: str, config: UserConfig) -> dict | None:
"""Worker function to process individual files"""
+10
View File
@@ -14,6 +14,16 @@ def run_fast_scandir(_dir: str, full=False) -> tuple[list[str], list[str]]:
Scans a directory for files with a specific extension.
Returns a list of files and folders in the directory.
"""
# if on mac, ignore Library folder and its children
if os.name == "posix":
dir_path = Path(_dir)
library_path = Path.home() / "Library"
if dir_path == library_path or library_path in dir_path.parents:
return [], []
# if the path contains "node_modules" ignore
if "node_modules" in _dir:
return [], []
if _dir == "":
return [], []