wi1-bot 2.0.3__tar.gz → 2.0.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. wi1_bot-2.0.4/.github/workflows/docker.yaml +124 -0
  2. {wi1_bot-2.0.3 → wi1_bot-2.0.4}/PKG-INFO +1 -1
  3. {wi1_bot-2.0.3 → wi1_bot-2.0.4}/compose.yaml +4 -4
  4. {wi1_bot-2.0.3 → wi1_bot-2.0.4}/wi1_bot/webhook.py +5 -0
  5. wi1_bot-2.0.3/.github/workflows/docker.yaml +0 -61
  6. {wi1_bot-2.0.3 → wi1_bot-2.0.4}/.dockerignore +0 -0
  7. {wi1_bot-2.0.3 → wi1_bot-2.0.4}/.envrc +0 -0
  8. {wi1_bot-2.0.3 → wi1_bot-2.0.4}/.github/workflows/pypi-publish.yml +0 -0
  9. {wi1_bot-2.0.3 → wi1_bot-2.0.4}/.gitignore +0 -0
  10. {wi1_bot-2.0.3 → wi1_bot-2.0.4}/.pre-commit-config.yaml +0 -0
  11. {wi1_bot-2.0.3 → wi1_bot-2.0.4}/Dockerfile +0 -0
  12. {wi1_bot-2.0.3 → wi1_bot-2.0.4}/LICENSE +0 -0
  13. {wi1_bot-2.0.3 → wi1_bot-2.0.4}/README.md +0 -0
  14. {wi1_bot-2.0.3 → wi1_bot-2.0.4}/config.yaml.template +0 -0
  15. {wi1_bot-2.0.3 → wi1_bot-2.0.4}/flake.nix +0 -0
  16. {wi1_bot-2.0.3 → wi1_bot-2.0.4}/pyproject.toml +0 -0
  17. {wi1_bot-2.0.3 → wi1_bot-2.0.4}/tests/movie_downloaded.py +0 -0
  18. {wi1_bot-2.0.3 → wi1_bot-2.0.4}/uv.lock +0 -0
  19. {wi1_bot-2.0.3 → wi1_bot-2.0.4}/wi1_bot/__init__.py +0 -0
  20. {wi1_bot-2.0.3 → wi1_bot-2.0.4}/wi1_bot/arr/__init__.py +0 -0
  21. {wi1_bot-2.0.3 → wi1_bot-2.0.4}/wi1_bot/arr/download.py +0 -0
  22. {wi1_bot-2.0.3 → wi1_bot-2.0.4}/wi1_bot/arr/episode.py +0 -0
  23. {wi1_bot-2.0.3 → wi1_bot-2.0.4}/wi1_bot/arr/movie.py +0 -0
  24. {wi1_bot-2.0.3 → wi1_bot-2.0.4}/wi1_bot/arr/radarr.py +0 -0
  25. {wi1_bot-2.0.3 → wi1_bot-2.0.4}/wi1_bot/arr/sonarr.py +0 -0
  26. {wi1_bot-2.0.3 → wi1_bot-2.0.4}/wi1_bot/arr/util.py +0 -0
  27. {wi1_bot-2.0.3 → wi1_bot-2.0.4}/wi1_bot/config.py +0 -0
  28. {wi1_bot-2.0.3 → wi1_bot-2.0.4}/wi1_bot/discord/__init__.py +0 -0
  29. {wi1_bot-2.0.3 → wi1_bot-2.0.4}/wi1_bot/discord/bot.py +0 -0
  30. {wi1_bot-2.0.3 → wi1_bot-2.0.4}/wi1_bot/discord/cogs/__init__.py +0 -0
  31. {wi1_bot-2.0.3 → wi1_bot-2.0.4}/wi1_bot/discord/cogs/movie.py +0 -0
  32. {wi1_bot-2.0.3 → wi1_bot-2.0.4}/wi1_bot/discord/cogs/series.py +0 -0
  33. {wi1_bot-2.0.3 → wi1_bot-2.0.4}/wi1_bot/discord/helpers.py +0 -0
  34. {wi1_bot-2.0.3 → wi1_bot-2.0.4}/wi1_bot/push.py +0 -0
  35. {wi1_bot-2.0.3 → wi1_bot-2.0.4}/wi1_bot/scripts/__init__.py +0 -0
  36. {wi1_bot-2.0.3 → wi1_bot-2.0.4}/wi1_bot/scripts/add_tag.py +0 -0
  37. {wi1_bot-2.0.3 → wi1_bot-2.0.4}/wi1_bot/scripts/rescan.py +0 -0
  38. {wi1_bot-2.0.3 → wi1_bot-2.0.4}/wi1_bot/scripts/start.py +0 -0
  39. {wi1_bot-2.0.3 → wi1_bot-2.0.4}/wi1_bot/scripts/transcode_item.py +0 -0
  40. {wi1_bot-2.0.3 → wi1_bot-2.0.4}/wi1_bot/transcoder/__init__.py +0 -0
  41. {wi1_bot-2.0.3 → wi1_bot-2.0.4}/wi1_bot/transcoder/transcode_queue.py +0 -0
  42. {wi1_bot-2.0.3 → wi1_bot-2.0.4}/wi1_bot/transcoder/transcoder.py +0 -0
@@ -0,0 +1,124 @@
1
+ name: docker
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+ permissions:
9
+ packages: write
10
+ contents: read
11
+ attestations: write
12
+ id-token: write
13
+
14
+ jobs:
15
+ docker:
16
+ strategy:
17
+ fail-fast: false
18
+ matrix:
19
+ platform: [linux/amd64, linux/arm64]
20
+ include:
21
+ - platform: linux/amd64
22
+ runner: ubuntu-latest
23
+ - platform: linux/arm64
24
+ runner: ubuntu-24.04-arm
25
+
26
+ runs-on: ${{ matrix.runner }}
27
+
28
+ steps:
29
+ - name: Prepare
30
+ run: |
31
+ platform=${{ matrix.platform }}
32
+ echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
33
+
34
+ - name: Checkout
35
+ uses: actions/checkout@v4
36
+
37
+ - name: Login to Docker Hub
38
+ uses: docker/login-action@v3
39
+ with:
40
+ username: ${{ vars.DOCKERHUB_USERNAME }}
41
+ password: ${{ secrets.DOCKERHUB_TOKEN }}
42
+
43
+ - name: Set up Docker Buildx
44
+ uses: docker/setup-buildx-action@v3
45
+
46
+ - name: Docker meta
47
+ id: meta
48
+ uses: docker/metadata-action@v5
49
+ with:
50
+ images: wthueb/wi1-bot
51
+
52
+ - name: Build and push by digest
53
+ id: build
54
+ uses: docker/build-push-action@v6
55
+ with:
56
+ context: .
57
+ platforms: ${{ matrix.platform }}
58
+ tags: wthueb/wi1-bot
59
+ labels: ${{ steps.meta.outputs.labels }}
60
+ outputs: type=image,push-by-digest=true,name-canonical=true,push=true
61
+ cache-from: type=gha
62
+ cache-to: type=gha,mode=max
63
+
64
+ - name: Export digest
65
+ run: |
66
+ mkdir -p ${{ runner.temp }}/digests
67
+ digest="${{ steps.build.outputs.digest }}"
68
+ touch "${{ runner.temp }}/digests/${digest#sha256:}"
69
+
70
+ - name: Upload digest
71
+ uses: actions/upload-artifact@v4
72
+ with:
73
+ name: digests-${{ env.PLATFORM_PAIR }}
74
+ path: ${{ runner.temp }}/digests
75
+ if-no-files-found: error
76
+ retention-days: 1
77
+
78
+ merge:
79
+ runs-on: ubuntu-latest
80
+ needs: docker
81
+
82
+ steps:
83
+ - name: Download digests
84
+ uses: actions/download-artifact@v4
85
+ with:
86
+ path: ${{ runner.temp }}/digests
87
+ pattern: digests-*
88
+ merge-multiple: true
89
+
90
+ - name: Login to Docker Hub
91
+ uses: docker/login-action@v3
92
+ with:
93
+ username: ${{ vars.DOCKERHUB_USERNAME }}
94
+ password: ${{ secrets.DOCKERHUB_TOKEN }}
95
+
96
+ - name: Login to GitHub Container Registry
97
+ uses: docker/login-action@v3
98
+ with:
99
+ registry: ghcr.io
100
+ username: ${{ github.actor }}
101
+ password: ${{ secrets.GITHUB_TOKEN }}
102
+
103
+ - name: Set up Docker Buildx
104
+ uses: docker/setup-buildx-action@v3
105
+
106
+ - name: Docker meta
107
+ id: meta
108
+ uses: docker/metadata-action@v5
109
+ with:
110
+ images: |
111
+ wthueb/wi1-bot
112
+ ghcr.io/${{ github.repository_owner }}/wi1-bot
113
+
114
+ - name: Create Docker Hub manifest list and push
115
+ working-directory: ${{ runner.temp }}/digests
116
+ run: |
117
+ docker buildx imagetools create \
118
+ $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
119
+ $(printf 'wthueb/wi1-bot@sha256:%s ' *)
120
+
121
+ - name: Inspect image
122
+ run: |
123
+ docker buildx imagetools inspect wthueb/wi1-bot:${{ steps.meta.outputs.version }}
124
+ docker buildx imagetools inspect ghcr.io/${{ github.repository_owner }}/wi1-bot:${{ steps.meta.outputs.version }}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wi1-bot
3
- Version: 2.0.3
3
+ Version: 2.0.4
4
4
  Summary: Discord bot for Radarr/Sonarr integration
5
5
  Project-URL: Homepage, https://github.com/wthueb/wi1-bot
6
6
  Author-email: William Huebner <wilhueb@gmail.com>
@@ -2,18 +2,18 @@ services:
2
2
  wi1-bot:
3
3
  container_name: wi1-bot
4
4
  image: wthueb/wi1-bot
5
- runtime: nvidia
6
5
  deploy:
7
6
  resources:
8
7
  reservations:
9
8
  devices:
10
- - capabilities:
11
- - gpu
9
+ - driver: nvidia
10
+ count: all
11
+ capabilities: [gpu]
12
12
  devices:
13
13
  - /dev/dri:/dev/dri
14
14
  environment:
15
15
  - WB_CONFIG_PATH=/data/config.yaml
16
- - WB_LOG_PATH=/data/logs
16
+ - WB_LOG_DIR=/data/logs
17
17
  - MONGODB_CONNECTION_STRING=mongodb://mongodb:27017
18
18
  volumes:
19
19
  - .:/data
@@ -103,6 +103,11 @@ def index() -> Any:
103
103
  return "", 200
104
104
 
105
105
 
106
+ @app.route("/health", methods=["GET"])
107
+ def health() -> Any:
108
+ return "OK", 200
109
+
110
+
106
111
  def start() -> None:
107
112
  logger.info("starting webhook listener")
108
113
 
@@ -1,61 +0,0 @@
1
- name: docker
2
-
3
- on:
4
- push:
5
- branches:
6
- - main
7
-
8
- jobs:
9
- docker:
10
- runs-on: ubuntu-latest
11
- permissions:
12
- packages: write
13
- contents: read
14
- attestations: write
15
- id-token: write
16
- steps:
17
- - name: Checkout
18
- uses: actions/checkout@v4
19
- with:
20
- fetch-depth: 0
21
-
22
- - name: Login to Docker Hub
23
- uses: docker/login-action@v3
24
- with:
25
- username: ${{ vars.DOCKERHUB_USERNAME }}
26
- password: ${{ secrets.DOCKERHUB_TOKEN }}
27
-
28
- - name: Login to GitHub Container Registry
29
- uses: docker/login-action@v3
30
- with:
31
- registry: ghcr.io
32
- username: ${{ github.actor }}
33
- password: ${{ secrets.GITHUB_TOKEN }}
34
-
35
- - name: Set up QEMU
36
- uses: docker/setup-qemu-action@v3
37
-
38
- - name: Set up Docker Buildx
39
- uses: docker/setup-buildx-action@v3
40
-
41
- - name: Docker meta
42
- id: meta
43
- uses: docker/metadata-action@v5
44
- with:
45
- images: |
46
- wthueb/wi1-bot
47
- ghcr.io/wthueb/wi1-bot
48
-
49
- - name: Build and push
50
- id: push
51
- uses: docker/build-push-action@v6
52
- with:
53
- context: .
54
- cache-from: type=gha
55
- cache-to: type=gha,mode=max
56
- platforms: linux/amd64,linux/arm64
57
- push: true
58
- tags: |
59
- wthueb/wi1-bot:latest
60
- ghcr.io/wthueb/wi1-bot:latest
61
- labels: ${{ steps.meta.outputs.labels }}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes