From 01a5a3814c20fa332c3661d45eb655888e5f331c Mon Sep 17 00:00:00 2001 From: Raphael Sourty Date: Sun, 26 May 2024 02:25:01 +0200 Subject: [PATCH] update ci --- .github/workflows/wheels.yml | 9 +++------ pyprojet.toml | 6 +++--- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 7b7f093..78dd4d5 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -30,13 +30,10 @@ jobs: override: true - name: Install build dependencies - run: pip install setuptools-rust + run: pip install build setuptools-rust - - name: Build wheel - run: pip wheel . - - - name: Create source distribution - run: python setup.py sdist + - name: Build wheel and source distribution + run: python -m build - name: Upload artifacts uses: actions/upload-artifact@v3 diff --git a/pyprojet.toml b/pyprojet.toml index d63a5c6..c54a902 100644 --- a/pyprojet.toml +++ b/pyprojet.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["maturin>=1.0,<2.0", ] -build-backend = "maturin" +requires = ["setuptools>=42", "wheel", "setuptools-rust>=0.12.1"] +build-backend = "setuptools.build_meta" [[tool.setuptools-rust.ext-modules]] -target = "rslenlp" \ No newline at end of file +target = "rslenlp"