Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael Sourty committed May 26, 2024
1 parent b9feb94 commit 359e178
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ __pycache__/
cache/
# C extensions
*.so
test/

# Distribution / packaging
.Python
Expand Down
6 changes: 3 additions & 3 deletions pyprojet.toml
Original file line number Diff line number Diff line change
@@ -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"
target = "rslenlp"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
)

0 comments on commit 359e178

Please sign in to comment.