anime-sama-api 0.1.0__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_api-0.1.0/.github/workflows/ci.yaml +41 -0
- anime_sama_api-0.1.0/.github/workflows/release.yaml +31 -0
- anime_sama_api-0.1.0/.gitignore +16 -0
- anime_sama_api-0.1.0/.python-version +1 -0
- anime_sama_api-0.1.0/LICENSE +674 -0
- anime_sama_api-0.1.0/PKG-INFO +59 -0
- anime_sama_api-0.1.0/README.md +31 -0
- anime_sama_api-0.1.0/TODO.md +23 -0
- anime_sama_api-0.1.0/anime_sama_api/__init__.py +47 -0
- anime_sama_api-0.1.0/anime_sama_api/catalogue.py +69 -0
- anime_sama_api-0.1.0/anime_sama_api/cli/__main__.py +67 -0
- anime_sama_api-0.1.0/anime_sama_api/cli/config.py +82 -0
- anime_sama_api-0.1.0/anime_sama_api/cli/config.toml +26 -0
- anime_sama_api-0.1.0/anime_sama_api/cli/downloader.py +152 -0
- anime_sama_api-0.1.0/anime_sama_api/cli/error_handeling.py +42 -0
- anime_sama_api-0.1.0/anime_sama_api/cli/internal_player.py +58 -0
- anime_sama_api-0.1.0/anime_sama_api/cli/play_menu.py +30 -0
- anime_sama_api-0.1.0/anime_sama_api/cli/utils.py +73 -0
- anime_sama_api-0.1.0/anime_sama_api/episode.py +85 -0
- anime_sama_api-0.1.0/anime_sama_api/langs.py +53 -0
- anime_sama_api-0.1.0/anime_sama_api/season.py +149 -0
- anime_sama_api-0.1.0/anime_sama_api/top_level.py +27 -0
- anime_sama_api-0.1.0/anime_sama_api/utils.py +17 -0
- anime_sama_api-0.1.0/pyproject.toml +55 -0
- anime_sama_api-0.1.0/tests/__init__.py +0 -0
- anime_sama_api-0.1.0/tests/data/catalogue_data.py +6 -0
- anime_sama_api-0.1.0/tests/data/episode_data.py +1602 -0
- anime_sama_api-0.1.0/tests/data/season_data.py +29 -0
- anime_sama_api-0.1.0/tests/test_catalogue.py +37 -0
- anime_sama_api-0.1.0/tests/test_cli_utils.py +78 -0
- anime_sama_api-0.1.0/tests/test_download.py +26 -0
- anime_sama_api-0.1.0/tests/test_seasons.py +12 -0
- anime_sama_api-0.1.0/tests/test_top_level.py +23 -0
- anime_sama_api-0.1.0/tests/test_utils.py +12 -0
- anime_sama_api-0.1.0/uv.lock +499 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
pull_request:
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
run-tests:
|
|
9
|
+
strategy:
|
|
10
|
+
fail-fast: false
|
|
11
|
+
matrix:
|
|
12
|
+
os: [ubuntu-latest, windows-latest]
|
|
13
|
+
python-version:
|
|
14
|
+
- "3.10"
|
|
15
|
+
- "3.11"
|
|
16
|
+
- "3.12"
|
|
17
|
+
- "3.13"
|
|
18
|
+
- "3.14"
|
|
19
|
+
|
|
20
|
+
name: Test
|
|
21
|
+
runs-on: ${{ matrix.os }}
|
|
22
|
+
steps:
|
|
23
|
+
- name: Checkout
|
|
24
|
+
uses: actions/checkout@v4
|
|
25
|
+
|
|
26
|
+
- name: Install uv
|
|
27
|
+
uses: astral-sh/setup-uv@v5
|
|
28
|
+
with:
|
|
29
|
+
version: "0.6.3"
|
|
30
|
+
python-version: ${{ matrix.python-version }}
|
|
31
|
+
enable-cache: true
|
|
32
|
+
cache-dependency-glob: "uv.lock"
|
|
33
|
+
|
|
34
|
+
- name: Install the project
|
|
35
|
+
run: uv sync --all-extras --dev
|
|
36
|
+
|
|
37
|
+
- name: Run tests
|
|
38
|
+
run: uv run pytest tests
|
|
39
|
+
|
|
40
|
+
- name: Minimize uv cache
|
|
41
|
+
run: uv cache prune --ci
|
|
@@ -0,0 +1,31 @@
|
|
|
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_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
|
+
version: "0.6.3"
|
|
23
|
+
python-version-file: "pyproject.toml"
|
|
24
|
+
enable-cache: true
|
|
25
|
+
# cache-dependency-glob: "uv.lock"
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.10
|