From 359e1786695410f049aa13a25839f7351f399b50 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 +++------ .gitignore | 1 + pyprojet.toml | 6 +++--- setup.py | 2 +- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 7b7f093..68f9982 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 - - 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 --no-isolation - name: Upload artifacts uses: actions/upload-artifact@v3 diff --git a/.gitignore b/.gitignore index e1665a9..eb9313f 100644 --- a/.gitignore +++ b/.gitignore @@ -21,6 +21,7 @@ __pycache__/ cache/ # C extensions *.so +test/ # Distribution / packaging .Python diff --git a/pyprojet.toml b/pyprojet.toml index d63a5c6..bc74630 100644 --- a/pyprojet.toml +++ b/pyprojet.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["maturin>=1.0,<2.0", ] -build-backend = "maturin" +requires = ["setuptools>=70.0.0", "wheel", "setuptools-rust>=1.9.0"] +build-backend = "setuptools.build_meta" [[tool.setuptools-rust.ext-modules]] -target = "rslenlp" \ No newline at end of file +target = "rslenlp" diff --git a/setup.py b/setup.py index 258be55..83875e5 100644 --- a/setup.py +++ b/setup.py @@ -30,5 +30,5 @@ ], python_requires=">=3.8", rust_extensions=[RustExtension("rslenlp", binding=Binding.PyO3)], - setup_requires=["setuptools-rust>=1.4.0", "maturin >= 1.5.1"], + setup_requires=["setuptools-rust>=1.9.0"], )