Skip to content

Commit 69af7ff

Browse files
IvanIsCodingmergify[bot]mtreinishjakelishman
authored
Fix pyproject.toml and stop using setup.py (#1494)
* Add distance_matrix to rustworkx-core (#1439) (#1493) * Add distance_matrix to rustworkx-core This commit moves the distance matrix functionality to rustworkx. This is mostly a straightforward migration as the functionality was written in a generic way already. The only difference is how node holes were handled, the this opted to split the functions into 2, a verison that assumes the graph has compact indices and one that doesn't. * Optimize the implementation of distance matrix This commit performs some optimizations on the internals of the distance_matrix() function. It avoids extra allocations and uses a fixedbitset for tracking instead of hashsets. * Deduplicate functions * Add release note * Remove stray debug print * Remove invalid classifier and capitalize keywords * Bump release version to 0.17.1 --------- (cherry picked from commit 7318a80) Co-authored-by: Matthew Treinish <[email protected]> Co-authored-by: Jake Lishman <[email protected]> Co-authored-by: Ivan Carvalho <[email protected]> Co-authored-by: Ivan Carvalho <[email protected]> * Make workflow only trigger sdist steps * Tweak license field * Fix retworkx dist path * Limit trigger to today * Update timestamp condition in wheels.yml * Update build conditions for wheels on specific date * Revert to main status * Use build for wheels.yml * Fix newline --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: Matthew Treinish <[email protected]> Co-authored-by: Jake Lishman <[email protected]>
1 parent 28b1e9c commit 69af7ff

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

.github/workflows/wheels.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ jobs:
3131
with:
3232
python-version: '3.10'
3333
- name: Install deps
34-
run: pip install -U setuptools-rust
34+
run: pip install -U setuptools-rust build
3535
- name: Build sdist
36-
run: python setup.py sdist
36+
run: python -m build --sdist
3737
- uses: actions/upload-artifact@v4
3838
with:
3939
path: ./dist/*

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ dependencies = [
88
]
99
readme = {file = "README.md", content-type = "text/markdown"}
1010
license-files = ["LICENSE"]
11-
license = "Apache-2.0"
1211
classifiers=[
1312
"Intended Audience :: Developers",
1413
"Intended Audience :: Science/Research",

retworkx/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
long_description_content_type="text/markdown",
4343
author=pyproject["project"]["authors"][0]["name"],
4444
author_email=pyproject["project"]["authors"][0]["email"],
45-
license=pyproject["project"]["license"],
45+
license="Apache-2.0",
4646
classifiers=pyproject["project"]["classifiers"],
4747
keywords=pyproject["project"]["keywords"],
4848
project_urls=pyproject["project"]["urls"],

0 commit comments

Comments
 (0)