diff --git a/.github/workflows/make_release.yaml b/.github/workflows/make_release.yaml index 16d5c155f..0a39a9dba 100644 --- a/.github/workflows/make_release.yaml +++ b/.github/workflows/make_release.yaml @@ -53,7 +53,7 @@ jobs: cache: poetry - name: Install dependencies - run: poetry install --only=release + run: poetry install --with=release --extras=docs - name: Install pandoc run: sudo apt update && sudo apt install pandoc -y @@ -67,7 +67,7 @@ jobs: } >> "$GITHUB_OUTPUT" - name: Build a binary wheel and a source tarball - run: poetry build + run: poe build - name: Store the distribution packages uses: actions/upload-artifact@v4 diff --git a/docs/changelog.rst b/docs/changelog.rst index 93685a823..33ac9f65f 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -20,6 +20,8 @@ Bug fixes: * 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. :bug:`5148` +* Bring back test files and the manual to the source distribution tarball. + :bug:`5513` For packagers: diff --git a/pyproject.toml b/pyproject.toml index 736e8c14d..a12313516 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,6 +26,7 @@ packages = [ { include = "beets" }, { include = "beetsplug" }, ] +include = ["test", "man/**/*"] # extra files to include in the sdist [tool.poetry.urls] Changelog = "https://github.com/beetbox/beets/blob/master/docs/changelog.rst" @@ -149,6 +150,15 @@ build-backend = "poetry.core.masonry.api" poethepoet = ">=0.26" 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] help = "Bump project version and update relevant files" cmd = "python ./extra/release.py bump $version"