anime-sama-cli-api 0.4.0__tar.gz → 0.4.1.1__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.
- {anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/.github/workflows/ci.yaml +11 -4
- anime_sama_cli_api-0.4.1.1/.github/workflows/release.yaml +87 -0
- {anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/PKG-INFO +5 -5
- {anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/README.md +1 -1
- {anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/pyproject.toml +5 -6
- {anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/uv.lock +5 -9
- anime_sama_cli_api-0.4.0/.github/workflows/release.yaml +0 -31
- {anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/.gitignore +0 -0
- {anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/.python-version +0 -0
- {anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/LICENSE +0 -0
- {anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/TODO.md +0 -0
- {anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/Tree.md +0 -0
- {anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/anime_sama_api/__init__.py +0 -0
- {anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/anime_sama_api/catalogue.py +0 -0
- {anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/anime_sama_api/cli/__main__.py +0 -0
- {anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/anime_sama_api/cli/config.py +0 -0
- {anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/anime_sama_api/cli/config.toml +0 -0
- {anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/anime_sama_api/cli/downloader.py +0 -0
- {anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/anime_sama_api/cli/error_handling.py +0 -0
- {anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/anime_sama_api/cli/internal_player.py +0 -0
- {anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/anime_sama_api/cli/play_menu.py +0 -0
- {anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/anime_sama_api/cli/utils.py +0 -0
- {anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/anime_sama_api/episode.py +0 -0
- {anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/anime_sama_api/langs.py +0 -0
- {anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/anime_sama_api/link_resolver.py +0 -0
- {anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/anime_sama_api/season.py +0 -0
- {anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/anime_sama_api/top_level.py +0 -0
- {anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/anime_sama_api/utils.py +0 -0
- {anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/examples/new_episodes_rss.py +0 -0
- {anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/examples/run_cli_(for_debugging).py +0 -0
- {anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/examples/scan_catalogue.py +0 -0
- {anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/tests/__init__.py +0 -0
- {anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/tests/data/catalogue_data.py +0 -0
- {anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/tests/data/episode_data.py +0 -0
- {anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/tests/data/season_data.py +0 -0
- {anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/tests/data/update_episode_data.py +0 -0
- {anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/tests/test_api_portage.py +0 -0
- {anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/tests/test_catalogue.py +0 -0
- {anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/tests/test_cli_utils.py +0 -0
- {anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/tests/test_download.py +0 -0
- {anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/tests/test_link_resolver_portage.py +0 -0
- {anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/tests/test_module_consolidation.py +0 -0
- {anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/tests/test_seasons.py +0 -0
- {anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/tests/test_top_level.py +0 -0
- {anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/tests/test_utils.py +0 -0
|
@@ -4,8 +4,14 @@ on:
|
|
|
4
4
|
push:
|
|
5
5
|
pull_request:
|
|
6
6
|
|
|
7
|
+
permissions:
|
|
8
|
+
contents: read
|
|
9
|
+
|
|
7
10
|
jobs:
|
|
8
11
|
run-tests:
|
|
12
|
+
name: Python ${{ matrix.python-version }} / ${{ matrix.os }}
|
|
13
|
+
runs-on: ${{ matrix.os }}
|
|
14
|
+
|
|
9
15
|
strategy:
|
|
10
16
|
fail-fast: false
|
|
11
17
|
matrix:
|
|
@@ -16,9 +22,7 @@ jobs:
|
|
|
16
22
|
- "3.13"
|
|
17
23
|
- "3.14"
|
|
18
24
|
- "3.15"
|
|
19
|
-
|
|
20
|
-
name: Test
|
|
21
|
-
runs-on: ${{ matrix.os }}
|
|
25
|
+
|
|
22
26
|
steps:
|
|
23
27
|
- name: Checkout
|
|
24
28
|
uses: actions/checkout@v4
|
|
@@ -31,6 +35,9 @@ jobs:
|
|
|
31
35
|
enable-cache: true
|
|
32
36
|
cache-dependency-glob: "uv.lock"
|
|
33
37
|
|
|
38
|
+
- name: Install Python
|
|
39
|
+
run: uv python install
|
|
40
|
+
|
|
34
41
|
- name: Install the project
|
|
35
42
|
run: uv sync --all-extras --dev
|
|
36
43
|
|
|
@@ -38,4 +45,4 @@ jobs:
|
|
|
38
45
|
run: uv run pytest tests
|
|
39
46
|
|
|
40
47
|
- name: Minimize uv cache
|
|
41
|
-
run: uv cache prune --ci
|
|
48
|
+
run: uv cache prune --ci
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
|
|
12
|
+
concurrency:
|
|
13
|
+
group: release-${{ github.ref }}
|
|
14
|
+
cancel-in-progress: false
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
run-tests:
|
|
18
|
+
name: Python ${{ matrix.python-version }} / ${{ matrix.os }}
|
|
19
|
+
runs-on: ${{ matrix.os }}
|
|
20
|
+
|
|
21
|
+
strategy:
|
|
22
|
+
fail-fast: false
|
|
23
|
+
matrix:
|
|
24
|
+
os: [ubuntu-latest, windows-latest]
|
|
25
|
+
python-version:
|
|
26
|
+
- "3.11"
|
|
27
|
+
- "3.12"
|
|
28
|
+
- "3.13"
|
|
29
|
+
- "3.14"
|
|
30
|
+
- "3.15"
|
|
31
|
+
|
|
32
|
+
steps:
|
|
33
|
+
- name: Checkout
|
|
34
|
+
uses: actions/checkout@v4
|
|
35
|
+
|
|
36
|
+
- name: Install uv
|
|
37
|
+
uses: astral-sh/setup-uv@v5
|
|
38
|
+
with:
|
|
39
|
+
version: "0.13.3"
|
|
40
|
+
python-version: ${{ matrix.python-version }}
|
|
41
|
+
enable-cache: true
|
|
42
|
+
cache-dependency-glob: "uv.lock"
|
|
43
|
+
|
|
44
|
+
- name: Install Python
|
|
45
|
+
run: uv python install
|
|
46
|
+
|
|
47
|
+
- name: Install the project
|
|
48
|
+
run: uv sync --all-extras --dev
|
|
49
|
+
|
|
50
|
+
- name: Run tests
|
|
51
|
+
run: uv run pytest tests
|
|
52
|
+
|
|
53
|
+
- name: Minimize uv cache
|
|
54
|
+
run: uv cache prune --ci
|
|
55
|
+
|
|
56
|
+
pypi-publish:
|
|
57
|
+
name: Upload release to PyPI
|
|
58
|
+
needs: run-tests
|
|
59
|
+
if: github.ref == 'refs/heads/main'
|
|
60
|
+
runs-on: ubuntu-latest
|
|
61
|
+
|
|
62
|
+
environment:
|
|
63
|
+
name: pypi
|
|
64
|
+
url: https://pypi.org/p/anime-sama_cli_api
|
|
65
|
+
|
|
66
|
+
permissions:
|
|
67
|
+
contents: read
|
|
68
|
+
id-token: write
|
|
69
|
+
|
|
70
|
+
steps:
|
|
71
|
+
- name: Checkout
|
|
72
|
+
uses: actions/checkout@v4
|
|
73
|
+
|
|
74
|
+
- name: Install uv
|
|
75
|
+
uses: astral-sh/setup-uv@v5
|
|
76
|
+
with:
|
|
77
|
+
version: "0.13.3"
|
|
78
|
+
enable-cache: true
|
|
79
|
+
|
|
80
|
+
- name: Install Python
|
|
81
|
+
run: uv python install
|
|
82
|
+
|
|
83
|
+
- name: Build package
|
|
84
|
+
run: uv build
|
|
85
|
+
|
|
86
|
+
- name: Publish package distributions to PyPI
|
|
87
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: anime-sama_cli_api
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.1.1
|
|
4
4
|
Summary: Api for anime-sama
|
|
5
5
|
Project-URL: Repository, https://github.com/Mathieux83/anime-sama_api
|
|
6
6
|
Author-email: NiniKo <pcninik@gmail.com>, Mathieux83 <car.math@live.fr>
|
|
@@ -22,10 +22,10 @@ Classifier: Topic :: System :: Archiving
|
|
|
22
22
|
Requires-Python: >=3.11
|
|
23
23
|
Requires-Dist: httpx2>=2.16.0
|
|
24
24
|
Requires-Dist: httpx>=0.28.1
|
|
25
|
+
Requires-Dist: platformdirs>=4.13.5
|
|
26
|
+
Requires-Dist: rich>=15.0.0
|
|
27
|
+
Requires-Dist: yt-dlp>=2026.8.19
|
|
25
28
|
Provides-Extra: cli
|
|
26
|
-
Requires-Dist: platformdirs>=4.13.5; extra == 'cli'
|
|
27
|
-
Requires-Dist: rich>=15.0.0; extra == 'cli'
|
|
28
|
-
Requires-Dist: yt-dlp>=2026.8.19; extra == 'cli'
|
|
29
29
|
Description-Content-Type: text/markdown
|
|
30
30
|
|
|
31
31
|
> [!WARNING]
|
|
@@ -48,7 +48,7 @@ Requirements:
|
|
|
48
48
|
You can simply install it with (note that you can use tools like pipx to isolate the installation):
|
|
49
49
|
|
|
50
50
|
```bash
|
|
51
|
-
pip install anime-sama-api
|
|
51
|
+
pip install anime-sama-cli-api
|
|
52
52
|
```
|
|
53
53
|
|
|
54
54
|
And to run it:
|
|
@@ -6,7 +6,7 @@ build-backend = "hatchling.build"
|
|
|
6
6
|
|
|
7
7
|
[project]
|
|
8
8
|
name = "anime-sama_cli_api"
|
|
9
|
-
version = "0.4.
|
|
9
|
+
version = "0.4.1.1"
|
|
10
10
|
description = "Api for anime-sama"
|
|
11
11
|
authors = [
|
|
12
12
|
{name = "NiniKo", email = "pcninik@gmail.com"},
|
|
@@ -34,6 +34,9 @@ requires-python = ">=3.11"
|
|
|
34
34
|
dependencies = [
|
|
35
35
|
"httpx>=0.28.1",
|
|
36
36
|
"httpx2>=2.16.0",
|
|
37
|
+
"platformdirs>=4.13.5",
|
|
38
|
+
"rich>=15.0.0",
|
|
39
|
+
"yt-dlp>=2026.8.19",
|
|
37
40
|
]
|
|
38
41
|
|
|
39
42
|
[project.scripts]
|
|
@@ -43,11 +46,7 @@ anime-sama = "anime_sama_api:main"
|
|
|
43
46
|
Repository = "https://github.com/Mathieux83/anime-sama_api"
|
|
44
47
|
|
|
45
48
|
[project.optional-dependencies]
|
|
46
|
-
cli = [
|
|
47
|
-
"platformdirs>=4.13.5",
|
|
48
|
-
"rich>=15.0.0",
|
|
49
|
-
"yt-dlp>=2026.8.19",
|
|
50
|
-
]
|
|
49
|
+
cli = []
|
|
51
50
|
|
|
52
51
|
[dependency-groups]
|
|
53
52
|
dev = [
|
|
@@ -8,16 +8,12 @@ resolution-markers = [
|
|
|
8
8
|
]
|
|
9
9
|
|
|
10
10
|
[[package]]
|
|
11
|
-
name = "anime-sama-api"
|
|
12
|
-
version = "0.4.
|
|
11
|
+
name = "anime-sama-cli-api"
|
|
12
|
+
version = "0.4.1.1"
|
|
13
13
|
source = { editable = "." }
|
|
14
14
|
dependencies = [
|
|
15
15
|
{ name = "httpx" },
|
|
16
16
|
{ name = "httpx2" },
|
|
17
|
-
]
|
|
18
|
-
|
|
19
|
-
[package.optional-dependencies]
|
|
20
|
-
cli = [
|
|
21
17
|
{ name = "platformdirs" },
|
|
22
18
|
{ name = "rich" },
|
|
23
19
|
{ name = "yt-dlp" },
|
|
@@ -38,9 +34,9 @@ dev = [
|
|
|
38
34
|
requires-dist = [
|
|
39
35
|
{ name = "httpx", specifier = ">=0.28.1" },
|
|
40
36
|
{ name = "httpx2", specifier = ">=2.16.0" },
|
|
41
|
-
{ name = "platformdirs",
|
|
42
|
-
{ name = "rich",
|
|
43
|
-
{ name = "yt-dlp",
|
|
37
|
+
{ name = "platformdirs", specifier = ">=4.13.5" },
|
|
38
|
+
{ name = "rich", specifier = ">=15.0.0" },
|
|
39
|
+
{ name = "yt-dlp", specifier = ">=2026.8.19" },
|
|
44
40
|
]
|
|
45
41
|
provides-extras = ["cli"]
|
|
46
42
|
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
name: Release
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
workflow_dispatch:
|
|
5
|
-
|
|
6
|
-
jobs:
|
|
7
|
-
pypi-publish:
|
|
8
|
-
name: Upload release to PyPI
|
|
9
|
-
runs-on: ubuntu-latest
|
|
10
|
-
environment:
|
|
11
|
-
name: pypi
|
|
12
|
-
url: https://pypi.org/p/anime-sama_cli_api
|
|
13
|
-
permissions:
|
|
14
|
-
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
|
|
15
|
-
steps:
|
|
16
|
-
- name: Checkout
|
|
17
|
-
uses: actions/checkout@v4
|
|
18
|
-
|
|
19
|
-
- name: Install uv
|
|
20
|
-
uses: astral-sh/setup-uv@v5
|
|
21
|
-
with:
|
|
22
|
-
enable-cache: true
|
|
23
|
-
|
|
24
|
-
- name: Install Python
|
|
25
|
-
run: uv python install
|
|
26
|
-
|
|
27
|
-
- name: Build package
|
|
28
|
-
run: uv build
|
|
29
|
-
|
|
30
|
-
- name: Publish package distributions to PyPI
|
|
31
|
-
uses: pypa/gh-action-pypi-publish@release/v1
|
|
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
|
{anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/anime_sama_api/cli/error_handling.py
RENAMED
|
File without changes
|
{anime_sama_cli_api-0.4.0 → anime_sama_cli_api-0.4.1.1}/anime_sama_api/cli/internal_player.py
RENAMED
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|