Skip to content

Commit 9c4d4d9

Browse files
committed
Include test files, manual to sdist
1 parent 37a2cec commit 9c4d4d9

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

.github/workflows/make_release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
cache: poetry
5454

5555
- name: Install dependencies
56-
run: poetry install --only=release
56+
run: poetry install --with=release --extras=docs
5757

5858
- name: Install pandoc
5959
run: sudo apt update && sudo apt install pandoc -y
@@ -67,7 +67,7 @@ jobs:
6767
} >> "$GITHUB_OUTPUT"
6868
6969
- name: Build a binary wheel and a source tarball
70-
run: poetry build
70+
run: poe build
7171

7272
- name: Store the distribution packages
7373
uses: actions/upload-artifact@v4

docs/changelog.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ Bug fixes:
2020
* Fix bug where matcher doesn't consider medium number when importing. This makes
2121
it difficult to import hybrid SACDs and other releases with duplicate tracks.
2222
:bug:`5148`
23+
* Bring back test files and the manual to the source distribution tarball.
24+
:bug:`5513`
2325

2426
For packagers:
2527

pyproject.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ packages = [
2626
{ include = "beets" },
2727
{ include = "beetsplug" },
2828
]
29+
include = ["test", "man/**/*"] # extra files to include in the sdist
2930

3031
[tool.poetry.urls]
3132
Changelog = "https://github.com/beetbox/beets/blob/master/docs/changelog.rst"
@@ -149,6 +150,15 @@ build-backend = "poetry.core.masonry.api"
149150
poethepoet = ">=0.26"
150151
poetry = ">=1.8"
151152

153+
[tool.poe.tasks.build]
154+
help = "Build the package"
155+
shell = """
156+
make -C docs man
157+
rm -rf man
158+
mv docs/_build/man .
159+
poetry build
160+
"""
161+
152162
[tool.poe.tasks.bump]
153163
help = "Bump project version and update relevant files"
154164
cmd = "python ./extra/release.py bump $version"

0 commit comments

Comments
 (0)