From eb60ae03c7f830a430da63237753dc09f01f7439 Mon Sep 17 00:00:00 2001 From: jacobkahn Date: Sun, 25 Feb 2024 19:22:35 -0800 Subject: [PATCH] Add Python 3.12 wheels/fix some sdist build problems (#78) Summary: Resolves https://github.com/flashlight/text/issues/76. ### Test Plan (required) CI + CIBW + local wheel test ### Checklist - [x] Test coverage - [x] Tests pass - [x] Code formatted - [x] Rebased on latest matter - [x] Code documented Pull Request resolved: https://github.com/flashlight/text/pull/78 Reviewed By: bwasti Differential Revision: D54173813 Pulled By: jacobkahn fbshipit-source-id: 747adf9380bdf261e0d54b8e16d7e8a457eea578 --- .github/workflows/wheels.yml | 6 +++--- MANIFEST.in | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 773af621..fa568eaa 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -16,7 +16,7 @@ jobs: fetch-depth: 0 - uses: actions/setup-python@v4 with: - python-version: '3.10' + python-version: '3.12' # Use a venv for macOS runners - name: "Create Python virtual environment" @@ -27,7 +27,7 @@ jobs: if: runner.os == 'macOS' - name: Install cibuildwheel - run: python -m pip install cibuildwheel==2.12.1 + run: python -m pip install cibuildwheel==2.16.5 - name: Compute version run: echo "$(python bindings/python/compute_version.py)" > BUILD_VERSION.txt - name: Build wheels @@ -52,7 +52,7 @@ jobs: run: echo "BUILD_VERSION=$(python bindings/python/compute_version.py)" >> $GITHUB_ENV - name: Build sdist - run: pipx run build --sdist --no-isolation + run: pipx run build --sdist - uses: actions/upload-artifact@v3 with: diff --git a/MANIFEST.in b/MANIFEST.in index 9bdfcb24..52b8fce1 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -3,3 +3,8 @@ recursive-include cmake *.cmake *.cmake.in recursive-include flashlight/lib *.h *.cpp CMakeLists.txt recursive-include bindings/python *.cpp CMakeLists.txt global-exclude *.o *.so *.dylib *.a .git *.pyc *.swp + +include LICENSE +include bindings/python/version.txt +include bindings/python/README.md +include requirements.txt