From 287f01ce63d7d92b135657146df1bab415d100da 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, 5 insertions(+), 13 deletions(-) delete mode 100644 pyprojet.toml 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 deleted file mode 100644 index d63a5c6..0000000 --- a/pyprojet.toml +++ /dev/null @@ -1,6 +0,0 @@ -[build-system] -requires = ["maturin>=1.0,<2.0", ] -build-backend = "maturin" - -[[tool.setuptools-rust.ext-modules]] -target = "rslenlp" \ No newline at end of file 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"], )