From 818d8470bcfb2eb892ae9c8562d8781218efc21d Mon Sep 17 00:00:00 2001 From: David Hewitt <1939362+davidhewitt@users.noreply.github.com> Date: Mon, 19 Sep 2022 14:08:00 +0200 Subject: [PATCH] packaging: use setuptools-scm to include all files in sdist --- .github/workflows/python-publish.yml | 5 ++++- CHANGELOG.md | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index e701fc9e..b110b53b 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -23,8 +23,11 @@ jobs: with: python-version: '3.x' - name: Install dependencies + # Install build and packaging dependencies. + # setuptools-scm is necessary for ensuring all files from VCS (such as + # examples) are in the sdist. run: | - pip install --upgrade pip setuptools wheel twine + pip install --upgrade pip setuptools wheel twine setuptools-scm - name: Build and publish env: TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ecfa0c9..ac9f4452 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,8 @@ ## Unreleased ### Fixed -- Fix regression in `dylib` build artifacts not being found since 1.5.0. [#280](https://github.com/PyO3/setuptools-rust/pull/280) +- Fix regression in `dylib` build artifacts not being found since 1.5.0. [#290](https://github.com/PyO3/setuptools-rust/pull/290) +- Fix regression in sdist missing examples and other supplementary files since 1.5.0. [#291](https://github.com/PyO3/setuptools-rust/pull/291) ## 1.5.1 (2022-08-14) ### Fixed