Include test files, manual to sdist

This commit is contained in:
Šarūnas Nejus 2024-11-26 15:38:13 +00:00
parent 37a2ceccd1
commit 9c4d4d9632
No known key found for this signature in database
GPG key ID: DD28F6704DBE3435
3 changed files with 14 additions and 2 deletions

View file

@ -53,7 +53,7 @@ jobs:
cache: poetry cache: poetry
- name: Install dependencies - name: Install dependencies
run: poetry install --only=release run: poetry install --with=release --extras=docs
- name: Install pandoc - name: Install pandoc
run: sudo apt update && sudo apt install pandoc -y run: sudo apt update && sudo apt install pandoc -y
@ -67,7 +67,7 @@ jobs:
} >> "$GITHUB_OUTPUT" } >> "$GITHUB_OUTPUT"
- name: Build a binary wheel and a source tarball - name: Build a binary wheel and a source tarball
run: poetry build run: poe build
- name: Store the distribution packages - name: Store the distribution packages
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4

View file

@ -20,6 +20,8 @@ Bug fixes:
* Fix bug where matcher doesn't consider medium number when importing. This makes * Fix bug where matcher doesn't consider medium number when importing. This makes
it difficult to import hybrid SACDs and other releases with duplicate tracks. it difficult to import hybrid SACDs and other releases with duplicate tracks.
:bug:`5148` :bug:`5148`
* Bring back test files and the manual to the source distribution tarball.
:bug:`5513`
For packagers: For packagers:

View file

@ -26,6 +26,7 @@ packages = [
{ include = "beets" }, { include = "beets" },
{ include = "beetsplug" }, { include = "beetsplug" },
] ]
include = ["test", "man/**/*"] # extra files to include in the sdist
[tool.poetry.urls] [tool.poetry.urls]
Changelog = "https://github.com/beetbox/beets/blob/master/docs/changelog.rst" Changelog = "https://github.com/beetbox/beets/blob/master/docs/changelog.rst"
@ -149,6 +150,15 @@ build-backend = "poetry.core.masonry.api"
poethepoet = ">=0.26" poethepoet = ">=0.26"
poetry = ">=1.8" poetry = ">=1.8"
[tool.poe.tasks.build]
help = "Build the package"
shell = """
make -C docs man
rm -rf man
mv docs/_build/man .
poetry build
"""
[tool.poe.tasks.bump] [tool.poe.tasks.bump]
help = "Bump project version and update relevant files" help = "Bump project version and update relevant files"
cmd = "python ./extra/release.py bump $version" cmd = "python ./extra/release.py bump $version"