Skip to content

Commit

Permalink
UPD: Update all python requirement to latest versions
Browse files Browse the repository at this point in the history
  • Loading branch information
nandyalu committed Aug 3, 2024
1 parent e31ba6c commit 90a77be
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 42 deletions.
16 changes: 7 additions & 9 deletions .devcontainer/dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
# DevContainer requirements
# Backend
aiohttp==3.9.3
aiofiles==23.2.1
alembic==1.13.1
aiohttp==3.10.0
aiofiles==24.1.0 # Update in main requirements.txt if working
alembic==1.13.2
apscheduler==3.10.4
async-lru==2.0.4
fastapi==0.110.1
pillow==10.3.0
sqlmodel==0.0.16
uvicorn[standard]==0.29.0
gunicorn==21.2.0
yt_dlp==2024.4.9
fastapi[standard]==0.112.0
pillow==10.4.0
sqlmodel==0.0.21
yt_dlp==2024.8.1

# Testing
aioresponses==0.7.6
Expand Down
54 changes: 34 additions & 20 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,23 @@
"version": "2.0.0",
"tasks": [
{
// Build the docker image without frontend changes
"type": "docker-build",
"label": "docker-build",
"label": "Docker build without Frontend",
"detail": "Build the docker image without frontend changes",
"platform": "python",
"dockerBuild": {
"tag": "trailarr2:latest",
"dockerfile": "${workspaceFolder}/Dockerfile",
"context": "${workspaceFolder}",
"pull": true
}
},
{
// Build the docker image with frontend changes
"type": "docker-build",
"label": "Docker build with Frontend",
"detail": "Build the docker image with frontend changes",
"dependsOn": [
"frontend - build",
],
Expand All @@ -17,35 +32,33 @@
}
},
{
"type": "docker-run",
"label": "docker-run: debug",
// Build & Run the docker image without frontend changes
"type": "shell",
"label": "Docker build run without Frontend",
"detail": "Run the docker image without frontend changes",
"dependsOn": [
"docker-build"
"Docker build without Frontend"
],
"python": {
"args": [
"main:app",
"--host",
"0.0.0.0",
"--port",
"7889"
],
"module": "uvicorn"
}
"command": "python ./restart_stack.py",
"problemMatcher": []
},
{
// Build & Run the docker image with frontend changes
"type": "shell",
"label": "docker-build-run",
"label": "Docker build run with Frontend",
"detail": "Run the docker image with frontend changes",
"dependsOn": [
"docker-build"
"Docker build with Frontend"
],
"command": "python ./restart_stack.py",
"problemMatcher": []
},
{
// Generate PyTest HTML Report by running the tests
"label": "Generate PyTest HTML Report",
"detail": "Generate PyTest HTML Report by running the tests",
"type": "shell",
"command": "source ${workspaceFolder}/.venv/bin/activate && pytest --cov=. --cov-report=html",
"command": "cd backend && pytest --cov=. --cov-report=html",
"group": {
"kind": "test",
"isDefault": false
Expand Down Expand Up @@ -100,13 +113,14 @@
}
},
{
// Build the frontend using Angular CLI
"label": "frontend - build",
"detail": "Build the frontend using Angular CLI",
"type": "npm",
"script": "build",
"path": "frontend",
"group": "build",
"problemMatcher": [],
"detail": "ng build"
"problemMatcher": []
},
{
"label": "fastapi: run",
Expand All @@ -115,7 +129,7 @@
"frontend - build"
],
"isBackground": true,
"command": "gunicorn --bind 0.0.0.0:7888 -k uvicorn.workers.UvicornWorker backend.main:trailarr_api",
"command": "uvicorn backend.main:trailarr_api --host 0.0.0.0 --port 7888",
"problemMatcher": []
}
]
Expand Down
16 changes: 7 additions & 9 deletions backend/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# Backend
aiohttp==3.9.3
aiofiles==23.2.1
alembic==1.13.1
aiohttp==3.10.0
aiofiles==24.1.0
alembic==1.13.2
apscheduler==3.10.4
async-lru==2.0.4
fastapi==0.110.1
pillow==10.3.0
sqlmodel==0.0.16
uvicorn[standard]==0.29.0
gunicorn==21.2.0
yt_dlp==2024.4.9
fastapi[standard]==0.112.0 # Update version in README.md as well
pillow==10.4.0
sqlmodel==0.0.21
yt-dlp==2024.8.1
4 changes: 2 additions & 2 deletions frontend-build/browser/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1, interactive-widget=resizes-visual">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<style>:root{font-size:16px;font-family:Roboto,open sans,Helvetica Neue,Helvetica,Arial,sans-serif;--transition-speed: .6s;--color-success: #00bc8c;--color-info: #3498db;--color-warning: #f39c12;--color-danger: #e74c3c;--color-success-text: #ccf2e8;--color-info-text: #d6eaf8;--color-warning-text: #fdebd0;--color-danger-text: #fadbd8}*{box-sizing:border-box;scrollbar-width:thin!important;scrollbar-color:var(--color-secondary) transparent}body{margin:0;height:100dvh;background-color:var(--color-surface-container);color:var(--color-on-surface);transition:background-color .5s ease,color .5s ease}.dark{--color-primary: rgb(128 213 212);--color-surface-tint: rgb(128 213 212);--color-on-primary: rgb(0 55 55);--color-primary-container: rgb(0 79 79);--color-on-primary-container: rgb(156 241 240);--color-secondary: rgb(176 204 203);--color-on-secondary: rgb(27 53 52);--color-secondary-container: rgb(50 75 75);--color-on-secondary-container: rgb(204 232 231);--color-tertiary: rgb(179 200 232);--color-on-tertiary: rgb(28 49 75);--color-tertiary-container: rgb(51 72 99);--color-on-tertiary-container: rgb(211 228 255);--color-error: rgb(255 180 171);--color-on-error: rgb(105 0 5);--color-error-container: rgb(147 0 10);--color-on-error-container: rgb(255 218 214);--color-background: rgb(14 21 20);--color-on-background: rgb(221 228 227);--color-surface: rgb(14 21 20);--color-on-surface: rgb(221 228 227);--color-surface-variant: rgb(63 73 72);--color-on-surface-variant: rgb(190 201 200);--color-outline: rgb(136 147 146);--color-outline-variant: rgb(63 73 72);--color-shadow: rgb(0 0 0);--color-scrim: rgb(0 0 0);--color-inverse-surface: rgb(221 228 227);--color-inverse-on-surface: rgb(43 50 49);--color-inverse-primary: rgb(0 106 106);--color-primary-fixed: rgb(156 241 240);--color-on-primary-fixed: rgb(0 32 32);--color-primary-fixed-dim: rgb(128 213 212);--color-on-primary-fixed-variant: rgb(0 79 79);--color-secondary-fixed: rgb(204 232 231);--color-on-secondary-fixed: rgb(5 31 31);--color-secondary-fixed-dim: rgb(176 204 203);--color-on-secondary-fixed-variant: rgb(50 75 75);--color-tertiary-fixed: rgb(211 228 255);--color-on-tertiary-fixed: rgb(4 28 53);--color-tertiary-fixed-dim: rgb(179 200 232);--color-on-tertiary-fixed-variant: rgb(51 72 99);--color-surface-dim: rgb(14 21 20);--color-surface-bright: rgb(52 58 58);--color-surface-container-lowest: rgb(9 15 15);--color-surface-container-low: rgb(22 29 29);--color-surface-container: rgb(26 33 33);--color-surface-container-high: rgb(37 43 43);--color-surface-container-highest: rgb(47 54 54)}
</style><link rel="stylesheet" href="styles-UKAIBKO5.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles-UKAIBKO5.css"></noscript></head>
</style><link rel="stylesheet" href="styles-BHPHEKXY.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles-BHPHEKXY.css"></noscript></head>
<body class="dark">
<app-root></app-root>
<script src="polyfills-GTEVC5Y5.js" type="module"></script><script src="main-IEDYTN4N.js" type="module"></script></body>
<script src="polyfills-GTEVC5Y5.js" type="module"></script><script src="main-WJXCW63T.js" type="module"></script></body>
</html>

Large diffs are not rendered by default.

Loading

0 comments on commit 90a77be

Please sign in to comment.