-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modernize CI, add poetry, update beets
- Loading branch information
1 parent
7ea11f8
commit b9634d3
Showing
11 changed files
with
523 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Check and test | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
python-version: | ||
- "3.8" # minimum required | ||
- "3.12" # latest | ||
- "3.13-dev" # next | ||
|
||
runs-on: ubuntu-latest | ||
continue-on-error: ${{ matrix.python-version == '3.13-dev' }} | ||
|
||
steps: | ||
- run: sudo apt-get install flac mp3val oggz-tools | ||
- uses: actions/checkout@v3 | ||
- run: pip install poetry | ||
- uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: poetry | ||
- run: poetry env use $(which python) | ||
- run: poetry install | ||
- run: poetry run flake8 | ||
|
||
build-beets-master: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: pip install poetry | ||
- uses: actions/setup-python@v3 | ||
with: | ||
python-version: 3.8 | ||
cache: poetry | ||
- run: poetry env use $(which python) | ||
- run: poetry install | ||
# We cannot use `poetry add` because poetry does not install beets | ||
# dependencies properly | ||
- run: poetry run pip install "git+https://github.com/beetbox/beets#master" | ||
- run: poetry run pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.7.7 | ||
3.8 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
[tool.poetry] | ||
name = "beets-check" | ||
version = "0.13.0" | ||
description = "beets plugin verifying file integrity with checksums" | ||
authors = ["Thomas Scholtes <geigerzaehler@axiom.fm>"] | ||
license = "MIT" | ||
readme = "README.md" | ||
repository = "http://www.github.com/geigerzaehler/beets-check" | ||
classifiers = [ | ||
"Topic :: Multimedia :: Sound/Audio", | ||
"Topic :: Multimedia :: Sound/Audio :: Players :: MP3", | ||
"License :: OSI Approved :: MIT License", | ||
"Environment :: Console", | ||
"Environment :: Web Environment", | ||
"Programming Language :: Python :: 3", | ||
] | ||
packages = [{ include = "beetsplug" }] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.8, >=3.8.1" | ||
beets = "^1.6.0" | ||
mediafile = "^0.12.0" | ||
|
||
|
||
[tool.poetry.group.dev.dependencies] | ||
flake8 = "^7.0.0" | ||
nose = "^1.3.7" | ||
pytest = "^8.0.0" | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters