From 99b52c5a8db038acd5fe6bc1fb2d6565f34ee4b8 Mon Sep 17 00:00:00 2001 From: Luthaf Date: Tue, 23 May 2023 10:30:40 +0200 Subject: [PATCH] Create sdist on CI --- .github/workflows/wheels.yml | 30 +++++++++++++++++++++++++++++- MANIFEST.in | 1 + 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 175b66b1..41ff7d2a 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -24,7 +24,9 @@ jobs: python-version: '3.10' - name: Install cibuildwheel - run: python -m pip install cibuildwheel==2.11.2 + run: | + python -m pip install --upgrade pip + python -m pip install cibuildwheel==2.11.2 - name: Build wheels run: python -m cibuildwheel --output-dir wheelhouse @@ -36,3 +38,29 @@ jobs: - uses: actions/upload-artifact@v3 with: path: ./wheelhouse/*.whl + name: wheels + + build_sdist: + name: build sdist + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v3 + with: + submodules: true + + - uses: actions/setup-python@v4 + with: + python-version: '3.10' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install --upgrade wheel setuptools + + - name: Build wheels + run: python setup.py sdist + + - uses: actions/upload-artifact@v3 + with: + path: ./dist/*.tar.gz + name: wheels diff --git a/MANIFEST.in b/MANIFEST.in index 7eab7353..2a58a31b 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -2,6 +2,7 @@ recursive-include chemfiles * recursive-include lib * prune lib/tests prune lib/doc +include pyproject.toml include CMakeLists.txt include README.md include LICENSE