From 0782c15be4532fa9aef78cd26c3e2bb0f084a610 Mon Sep 17 00:00:00 2001 From: Cliff Hill Date: Mon, 27 Oct 2025 10:49:05 -0400 Subject: [PATCH] Debugging cicd image. Signed-off-by: Cliff Hill --- Dockerfile.cicd | 16 +++++++++++++--- backend/pyproject.toml | 26 ++++++++++++++++++++++++++ backend/src/backend/__init__.py | 2 ++ 3 files changed, 41 insertions(+), 3 deletions(-) diff --git a/Dockerfile.cicd b/Dockerfile.cicd index 557f135..252d4d6 100644 --- a/Dockerfile.cicd +++ b/Dockerfile.cicd @@ -8,8 +8,18 @@ ENV TZ=America/New_York # Configure timezone RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone -# Install system dependencies +# Install apt-fast for faster downloads RUN apt-get update && apt-get install -y \ + apt-fast \ + && rm -rf /var/lib/apt/lists/* + +# Configure apt-fast for non-interactive use +RUN echo 'apt-fast apt-fast/maxdownloads string 10' | debconf-set-selections && \ + echo 'apt-fast apt-fast/dlflag boolean true' | debconf-set-selections && \ + echo 'apt-fast apt-fast/aptmanager string apt-get' | debconf-set-selections + +# Install system dependencies using apt-fast +RUN apt-fast update && apt-fast install -y \ git \ curl \ ca-certificates \ @@ -21,7 +31,7 @@ RUN apt-get update && apt-get install -y \ # Install Python 3.13 RUN add-apt-repository -y ppa:deadsnakes/ppa \ - && apt-get update && apt-get install -y \ + && apt-fast update && apt-fast install -y \ python3.13 \ python3.13-venv \ python3.13-dev \ @@ -29,7 +39,7 @@ RUN add-apt-repository -y ppa:deadsnakes/ppa \ # Install Node.js 24 RUN curl -fsSL https://deb.nodesource.com/setup_24.x | bash - \ - && apt-get update && apt-get install -y nodejs \ + && apt-fast update && apt-fast install -y nodejs \ && rm -rf /var/lib/apt/lists/* # Enable corepack for yarn and set up Yarn Berry diff --git a/backend/pyproject.toml b/backend/pyproject.toml index 1b7be71..3e1d2c2 100644 --- a/backend/pyproject.toml +++ b/backend/pyproject.toml @@ -21,6 +21,23 @@ dev = [ "xdoctest>=1.1.0" # For doctest support ] +[project] +authors = [{name = "DarkHelm", email = "darkhelm@darkhelm.org"}] +classifiers = [ + "Development Status :: 3 - Alpha", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.13" +] +description = "Backend service for Plex playlist management" +keywords = ["plex", "playlist", "media", "management"] +license = "MIT" +name = "plex-playlist-backend" +readme = "../README.md" +requires-python = ">=3.13" +version = "0.1.0" + [tool.coverage] [tool.coverage.report] @@ -48,9 +65,18 @@ source = ["src"] docstring_style = "google" strictness = "short" +[tool.hatch.build] +include = [ + "src/backend/**/*.py", + "src/backend/py.typed" +] + [tool.hatch.build.targets.wheel] packages = ["src/backend"] +[tool.hatch.version] +path = "src/backend/__init__.py" + [tool.pytest.ini_options] addopts = [ "--strict-markers", diff --git a/backend/src/backend/__init__.py b/backend/src/backend/__init__.py index 70327d5..2dcc65a 100644 --- a/backend/src/backend/__init__.py +++ b/backend/src/backend/__init__.py @@ -2,6 +2,8 @@ Plex Playlist Backend Package. """ +__version__ = "0.1.0" + from .main import app __all__ = ["app"]