plexer-cli 0.0.1.post7__tar.gz → 0.0.3__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 (29) hide show
  1. plexer_cli-0.0.3/.github/workflows/release.yml +72 -0
  2. plexer_cli-0.0.1.post7/.github/workflows/release.yml → plexer_cli-0.0.3/.github/workflows/release_docker_image.yml +15 -38
  3. {plexer_cli-0.0.1.post7 → plexer_cli-0.0.3}/=1.2 +1 -1
  4. {plexer_cli-0.0.1.post7 → plexer_cli-0.0.3}/PKG-INFO +1 -1
  5. {plexer_cli-0.0.1.post7 → plexer_cli-0.0.3}/src/plexer_cli/main.py +1 -1
  6. {plexer_cli-0.0.1.post7 → plexer_cli-0.0.3}/.codacy.yml +0 -0
  7. {plexer_cli-0.0.1.post7 → plexer_cli-0.0.3}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  8. {plexer_cli-0.0.1.post7 → plexer_cli-0.0.3}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  9. {plexer_cli-0.0.1.post7 → plexer_cli-0.0.3}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  10. {plexer_cli-0.0.1.post7 → plexer_cli-0.0.3}/.github/dependabot.yml +0 -0
  11. {plexer_cli-0.0.1.post7 → plexer_cli-0.0.3}/.github/workflows/openssf_scorecard.yml +0 -0
  12. {plexer_cli-0.0.1.post7 → plexer_cli-0.0.3}/.github/workflows/run_full_test_suite.yml +0 -0
  13. {plexer_cli-0.0.1.post7 → plexer_cli-0.0.3}/.gitignore +0 -0
  14. {plexer_cli-0.0.1.post7 → plexer_cli-0.0.3}/.pre-commit-config.yaml +0 -0
  15. {plexer_cli-0.0.1.post7 → plexer_cli-0.0.3}/CODE_OF_CONDUCT.md +0 -0
  16. {plexer_cli-0.0.1.post7 → plexer_cli-0.0.3}/Dockerfile +0 -0
  17. {plexer_cli-0.0.1.post7 → plexer_cli-0.0.3}/LICENSE +0 -0
  18. {plexer_cli-0.0.1.post7 → plexer_cli-0.0.3}/README.md +0 -0
  19. {plexer_cli-0.0.1.post7 → plexer_cli-0.0.3}/SECURITY.md +0 -0
  20. {plexer_cli-0.0.1.post7 → plexer_cli-0.0.3}/pyproject.toml +0 -0
  21. {plexer_cli-0.0.1.post7 → plexer_cli-0.0.3}/src/plexer_cli/__init__.py +0 -0
  22. {plexer_cli-0.0.1.post7 → plexer_cli-0.0.3}/src/plexer_cli/artifact.py +0 -0
  23. {plexer_cli-0.0.1.post7 → plexer_cli-0.0.3}/src/plexer_cli/const.py +0 -0
  24. {plexer_cli-0.0.1.post7 → plexer_cli-0.0.3}/src/plexer_cli/file_manager.py +0 -0
  25. {plexer_cli-0.0.1.post7 → plexer_cli-0.0.3}/src/plexer_cli/metadata.py +0 -0
  26. {plexer_cli-0.0.1.post7 → plexer_cli-0.0.3}/tests/conftest.py +0 -0
  27. {plexer_cli-0.0.1.post7 → plexer_cli-0.0.3}/tests/test_file_manager.py +0 -0
  28. {plexer_cli-0.0.1.post7 → plexer_cli-0.0.3}/tests/test_metadata.py +0 -0
  29. {plexer_cli-0.0.1.post7 → plexer_cli-0.0.3}/tox.ini +0 -0
@@ -0,0 +1,72 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ # run only against version tags
6
+ tags:
7
+ - 'v*'
8
+
9
+ jobs:
10
+ release:
11
+ name: Generate New Release - ${{ github.ref_name }}
12
+ runs-on: ubuntu-latest
13
+ environment: release
14
+
15
+ permissions:
16
+ attestations: write
17
+ contents: write # needed to create GH Release
18
+ id-token: write # IMPORTANT: this permission is mandatory for trusted publishing to PyPI
19
+ packages: write # required for pushing image to GHCR
20
+
21
+ steps:
22
+ - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
23
+ with:
24
+ fetch-depth: 0
25
+
26
+ - name: Setup python for build
27
+ uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
28
+ with:
29
+ python-version: "3.x"
30
+
31
+ # run tests
32
+ - name: Install tox
33
+ run: python -m pip install tox-gh>=1.2
34
+
35
+ - name: Setup test suite
36
+ run: tox -vv --notest -e test
37
+
38
+ - name: Run test suite
39
+ run: tox --skip-pkg-install -e test
40
+
41
+ # build and publish
42
+ - name: Install Hatch
43
+ run: pipx install hatch
44
+
45
+ - name: Build dist artifacts
46
+ run: hatch build
47
+
48
+ # PyPI Release
49
+ # required instead of using hatch due to usage of trusted publishers
50
+ - name: Publish to TestPyPI
51
+ uses: pypa/gh-action-pypi-publish@897895f1e160c830e369f9779632ebc134688e1b # v1.10.2
52
+ with:
53
+ repository-url: https://test.pypi.org/legacy/
54
+ print-hash: true
55
+ verbose: true
56
+
57
+ - name: Publish to PyPI
58
+ uses: pypa/gh-action-pypi-publish@897895f1e160c830e369f9779632ebc134688e1b # v1.10.2
59
+ with:
60
+ attestations: true
61
+
62
+ # Github Release
63
+ - name: Create Github Release
64
+ uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191 # v2.0.8
65
+ with:
66
+ name:
67
+ files: |
68
+ dist/*
69
+ fail_on_unmatched_files: true
70
+ generate_release_notes: true
71
+ make_latest: true
72
+
@@ -1,20 +1,22 @@
1
- name: Release
1
+ name: Release - Docker Images
2
2
 
3
3
  on:
4
- push:
5
- # run only against version tags
6
- tags:
7
- - 'v*'
4
+ release:
5
+ types: [published]
8
6
 
9
7
  jobs:
10
- release:
11
- name: Generate New Release - ${{ github.ref_name }}
8
+ docker_release:
9
+ name: Push Docker Image Release - ${{ github.ref_name }}
12
10
  runs-on: ubuntu-latest
13
11
  environment: release
14
12
 
13
+ strategy:
14
+ matrix:
15
+ container_repos: ["docker.io", "ghcr.io"]
16
+
15
17
  permissions:
16
18
  attestations: write
17
- contents: write # needed to create GH Release
19
+ contents: read
18
20
  id-token: write # IMPORTANT: this permission is mandatory for trusted publishing to PyPI
19
21
  packages: write # required for pushing image to GHCR
20
22
 
@@ -45,20 +47,6 @@ jobs:
45
47
  - name: Build dist artifacts
46
48
  run: hatch build
47
49
 
48
- # PyPI Release
49
- # required instead of using hatch due to usage of trusted publishers
50
- - name: Publish to TestPyPI
51
- uses: pypa/gh-action-pypi-publish@897895f1e160c830e369f9779632ebc134688e1b # v1.10.2
52
- with:
53
- repository-url: https://test.pypi.org/legacy/
54
- print-hash: true
55
- verbose: true
56
-
57
- - name: Publish to PyPI
58
- uses: pypa/gh-action-pypi-publish@897895f1e160c830e369f9779632ebc134688e1b # v1.10.2
59
- with:
60
- attestations: true
61
-
62
50
  # Docker Release
63
51
  # REF: https://docs.github.com/en/actions/use-cases-and-examples/publishing-packages/publishing-docker-images#publishing-images-to-docker-hub-and-github-packages
64
52
  - name: Log in to Docker Hub
@@ -66,7 +54,7 @@ jobs:
66
54
  with:
67
55
  username: ${{ secrets.DOCKER_USERNAME }}
68
56
  password: ${{ secrets.DOCKER_PASSWORD }}
69
-
57
+
70
58
  - name: Log in to Github Container registry
71
59
  uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
72
60
  with:
@@ -79,10 +67,10 @@ jobs:
79
67
  uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1
80
68
  with:
81
69
  images: |
82
- magneticstain/plexer-cli
70
+ magneticstain/${{ github.repository }}
83
71
  ghcr.io/${{ github.repository }}
84
72
 
85
- - name: Build and push Docker images
73
+ - name: Build and push Docker images to all registries
86
74
  id: push
87
75
  uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0
88
76
  with:
@@ -91,21 +79,10 @@ jobs:
91
79
  tags: ${{ steps.meta.outputs.tags }}
92
80
  labels: ${{ steps.meta.outputs.labels }}
93
81
 
94
- - name: Generate artifact attestation
82
+ - name: Generate artifact attestation for GHCR
95
83
  uses: actions/attest-build-provenance@1c608d11d69870c2092266b3f9a6f3abbf17002c # v1.4.3
96
84
  with:
97
- subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
85
+ subject-name: ghcr.io/${{ github.repository }}
98
86
  subject-digest: ${{ steps.push.outputs.digest }}
99
87
  push-to-registry: true
100
-
101
- # Github Release
102
- - name: Create Github Release
103
- uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191 # v2.0.8
104
- with:
105
- name:
106
- files: |
107
- dist/*
108
- fail_on_unmatched_files: true
109
- generate_release_notes: true
110
- make_latest: true
111
88
 
@@ -33,7 +33,7 @@ Downloading platformdirs-4.3.6-py3-none-any.whl (18 kB)
33
33
  Downloading pluggy-1.5.0-py3-none-any.whl (20 kB)
34
34
  Downloading pyproject_api-1.8.0-py3-none-any.whl (13 kB)
35
35
  Downloading virtualenv-20.27.0-py3-none-any.whl (3.1 MB)
36
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.1/3.1 MB 87.7 MB/s eta 0:00:00
36
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.1/3.1 MB 46.8 MB/s eta 0:00:00
37
37
  Downloading distlib-0.3.9-py2.py3-none-any.whl (468 kB)
38
38
  Installing collected packages: distlib, pluggy, platformdirs, packaging, filelock, colorama, chardet, cachetools, virtualenv, pyproject-api, tox, tox-gh
39
39
  Successfully installed cachetools-5.5.0 chardet-5.2.0 colorama-0.4.6 distlib-0.3.9 filelock-3.16.1 packaging-24.1 platformdirs-4.3.6 pluggy-1.5.0 pyproject-api-1.8.0 tox-4.23.0 tox-gh-1.4.4 virtualenv-20.27.0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: plexer_cli
3
- Version: 0.0.1.post7
3
+ Version: 0.0.3
4
4
  Summary: Normalize media files for use with Plex Media Server
5
5
  Project-URL: Repository, https://github.com/magneticstain/plexer.git
6
6
  Project-URL: Documentation, https://github.com/magneticstain/plexer#readme
@@ -6,7 +6,7 @@ Main App Entrypoint
6
6
  """
7
7
 
8
8
  __author__ = "magneticstain"
9
- __version__ = "0.0.1-7"
9
+ __version__ = "0.0.3"
10
10
  __license__ = "MIT"
11
11
 
12
12
  import argparse
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes