Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
00eaf75
Modernize setup.py
IvanIsCoding Apr 6, 2025
576a886
Farewell to retworkx
IvanIsCoding Apr 6, 2025
1a15354
Add release note about retworkx removal
IvanIsCoding Apr 6, 2025
13cec34
Move even more data to pyproject.toml
IvanIsCoding Apr 6, 2025
e7d69d6
PEP 639 says this is deprecated
IvanIsCoding Apr 6, 2025
90112c6
Add dependency groups later
IvanIsCoding Apr 6, 2025
d569676
Move even from setup.py to pyproject.toml
IvanIsCoding Apr 6, 2025
fd814cb
Migrate all setup.py to pyproject.toml
IvanIsCoding Apr 6, 2025
ec03072
Move nox dependencies to pyproject.toml
IvanIsCoding Apr 6, 2025
caf72e6
Document new way to do debug builds now that we no longer use setup.py
IvanIsCoding Apr 6, 2025
ae29d4a
Better way to phrase the documentation
IvanIsCoding Apr 6, 2025
8b5532e
Remove duplicate section
IvanIsCoding Apr 6, 2025
51baa2e
Try updating setuptools for coverage job
IvanIsCoding Apr 6, 2025
a9fde4f
Add docs dependency group as well
IvanIsCoding Apr 6, 2025
b8e2efe
Make description the same as the paper
IvanIsCoding Apr 6, 2025
5f52826
This doesn't work yet
IvanIsCoding Apr 6, 2025
24334f2
Pin uv in CI
IvanIsCoding Apr 6, 2025
7205151
Make workflow work with newer Python versions
IvanIsCoding Apr 6, 2025
df87b8f
Pass frozen via environment variables
IvanIsCoding Apr 6, 2025
af22a8e
Update CONTRIBUTING.md to mention uv.lock procedures
IvanIsCoding Apr 6, 2025
91ee307
Explicitly install rustworkx and use debug mode
IvanIsCoding Apr 6, 2025
2f28c9e
Use multiple threads in sphinx
IvanIsCoding Apr 6, 2025
7cf5e4b
Don't make -j auto mandatory in CI
IvanIsCoding Apr 6, 2025
ca2263d
Document how to build faster in the guide
IvanIsCoding Apr 6, 2025
349f34b
Fix typo
IvanIsCoding Apr 6, 2025
b0eb530
Merge branch 'main' into modernize-setup
IvanIsCoding Apr 7, 2025
3c67cdb
Revert retworkx code
IvanIsCoding Apr 7, 2025
3177208
Say this will be the last retworkx release
IvanIsCoding Apr 7, 2025
d3c3d1e
Trying to make retworkx work
IvanIsCoding Apr 7, 2025
93fc909
retworkx has its own setup.py
IvanIsCoding Apr 7, 2025
9749294
Account for new directory when publishing
IvanIsCoding Apr 7, 2025
9cd1112
Document setuptools-rust
IvanIsCoding Apr 7, 2025
bbd37bc
Merge remote-tracking branch 'upstream/main' into modernize-setup
IvanIsCoding Apr 7, 2025
91f5f10
Merge branch 'modernize-setup' into new-uv-branch
IvanIsCoding Apr 7, 2025
87305de
Edit message saying it is the final release
IvanIsCoding Apr 7, 2025
f8e97dd
sunset -> retired
IvanIsCoding Apr 7, 2025
c85ed90
Endline
IvanIsCoding Apr 7, 2025
a49906a
Merge branch 'main' into modernize-setup
IvanIsCoding Apr 8, 2025
cd3849e
Merge branch 'modernize-setup' into new-uv-branch
IvanIsCoding Apr 8, 2025
d0e79da
Frozen is implied
IvanIsCoding Apr 8, 2025
3009010
Merge branch 'main' into modernize-setup
IvanIsCoding Apr 8, 2025
49df6ad
Merge branch 'main' into modernize-setup
IvanIsCoding Apr 9, 2025
23d306e
Merge branch 'main' into modernize-setup
IvanIsCoding Apr 10, 2025
1041709
Merge branch 'main' into modernize-setup
IvanIsCoding Apr 10, 2025
6ac2a82
Merge remote-tracking branch 'upstream/main' into new-uv-branch
IvanIsCoding Apr 12, 2025
6e88243
Merge branch 'main' into modernize-setup
IvanIsCoding Apr 12, 2025
8a894ad
Ensure setuptools-rust is up-to-date
IvanIsCoding Apr 13, 2025
bc17616
Use setuptools>=70.1.0 and remove wheel
IvanIsCoding Apr 13, 2025
2040aa1
Merge branch 'modernize-setup' into new-uv-branch
IvanIsCoding Apr 13, 2025
6979c6b
Merge branch 'main' into modernize-setup
IvanIsCoding Apr 18, 2025
979849c
Apply suggestions from code review
IvanIsCoding Apr 19, 2025
de999e1
Black
IvanIsCoding Apr 19, 2025
318f95e
Merge branch 'main' into modernize-setup
IvanIsCoding Apr 22, 2025
6fd352e
Merge branch 'main' into new-uv-branch
IvanIsCoding Apr 24, 2025
03408bf
Merge branch 'main' into modernize-setup
IvanIsCoding May 1, 2025
4cfa29c
Merge branch 'main' into new-uv-branch
IvanIsCoding May 2, 2025
112654b
Merge branch 'main' into modernize-setup
IvanIsCoding May 2, 2025
5444392
Merge branch 'modernize-setup' into new-uv-branch
IvanIsCoding May 2, 2025
e9a8cfe
Merge remote-tracking branch 'upstream/main' into new-uv-branch
IvanIsCoding May 5, 2025
03c42c7
Use dependency groups in CI
IvanIsCoding May 6, 2025
dcb4010
Merge branch 'dependency-groups' into new-uv-branch
IvanIsCoding May 6, 2025
51ddf4f
Trying a newer setup-tools
IvanIsCoding May 6, 2025
26002fb
Merge branch 'dependency-groups' into new-uv-branch
IvanIsCoding May 6, 2025
dc0c0ff
Fix coverage
IvanIsCoding May 6, 2025
b4b06fa
Merge branch 'dependency-groups' into new-uv-branch
IvanIsCoding May 6, 2025
85694e2
Merge branch 'main' into dependency-groups
IvanIsCoding May 6, 2025
3377305
Merge branch 'main' into new-uv-branch
IvanIsCoding May 6, 2025
e174a57
testinfra -> releaseinfra
IvanIsCoding May 7, 2025
39fb357
Merge branch 'dependency-groups' into new-uv-branch
IvanIsCoding May 7, 2025
2c48049
Pip 25.1 arrives by default on GitHub
IvanIsCoding May 8, 2025
334f24b
Merge branch 'dependency-groups' into new-uv-branch
IvanIsCoding May 8, 2025
57e5896
Merge remote-tracking branch 'upstream/main' into new-uv-branch
IvanIsCoding May 10, 2025
db87094
Fix py-project toml
IvanIsCoding May 10, 2025
7cea72b
Merge branch 'main' into new-uv-branch
IvanIsCoding May 11, 2025
5279876
Merge branch 'main' into new-uv-branch
IvanIsCoding May 17, 2025
50be6e9
Try adding jupyterlite-sphinx
IvanIsCoding May 19, 2025
6c6f1af
Add jupyterlite-sphinx
IvanIsCoding May 19, 2025
28791ec
Add bare minimum config
IvanIsCoding May 19, 2025
b4ce1f9
Add playground
IvanIsCoding May 19, 2025
a041dd7
Fix playground underline
IvanIsCoding May 19, 2025
12caf51
Fix playground
IvanIsCoding May 19, 2025
673152a
Fix name
IvanIsCoding May 19, 2025
0ea2f29
Include in toctree
IvanIsCoding May 19, 2025
b345590
Minor fixes
IvanIsCoding May 19, 2025
f8887f4
Add draw in hopes the demo works slightly better
IvanIsCoding May 19, 2025
a54250d
Make playground just print version
IvanIsCoding May 19, 2025
688850f
Check wheel from .json actually exists
IvanIsCoding May 20, 2025
531d98f
Make displaying the Petersen Graph be the default demo
IvanIsCoding May 20, 2025
c9304d3
Update uv in uv.lock
IvanIsCoding May 22, 2025
0ca6725
Merge branch 'new-uv-branch' into jupyterlite-docs
IvanIsCoding May 22, 2025
981fbf6
Use uv 0.7.8
IvanIsCoding May 24, 2025
d9d5ad0
Use uv 0.7.8 (pyproject.toml)
IvanIsCoding May 24, 2025
4437d3e
Merge branch 'new-uv-branch' into jupyterlite-docs
IvanIsCoding May 24, 2025
e4f1d82
Merge remote-tracking branch 'upstream/main' into jupyterlite-docs
IvanIsCoding May 29, 2025
5b6fe20
Bump pyodide to 0.27.6
IvanIsCoding May 30, 2025
1a1ffda
Simplify playground
IvanIsCoding May 30, 2025
20a4ecf
Just import rustworkx
IvanIsCoding May 30, 2025
d5bce88
Merge remote-tracking branch 'upstream/main' into jupyterlite-docs
IvanIsCoding May 30, 2025
3e0d0c7
Use stable version of jupyterlite and related deps
IvanIsCoding Jun 4, 2025
78cc79c
Merge branch 'main' into jupyterlite-docs
IvanIsCoding Jun 28, 2025
ab3b19c
Merge branch 'main' into jupyterlite-docs
IvanIsCoding Jun 29, 2025
b94c1f1
Merge branch 'main' into jupyterlite-docs
IvanIsCoding Jul 1, 2025
6eef9a2
Merge branch 'main' into jupyterlite-docs
IvanIsCoding Jul 2, 2025
2192fa3
Merge branch 'main' into jupyterlite-docs
IvanIsCoding Sep 29, 2025
a26a50a
Merge branch 'main' into jupyterlite-docs
IvanIsCoding Oct 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ rustworkx-core/Cargo.lock
**/.DS_Store
venv/
.python-version
.jupyterlite.doit.db
docs/source/.cache
15 changes: 14 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# rustworkx documentation build configuration file
#

import sys, os
import sys, os, json, pathlib
import subprocess

# General configuration:
Expand All @@ -41,6 +41,7 @@
'sphinxemoji.sphinxemoji',
'sphinx_reredirects',
'qiskit_sphinx_theme',
'jupyterlite_sphinx',
]
templates_path = ['_templates']
extra_css_files = ["overrides.css"]
Expand Down Expand Up @@ -111,6 +112,18 @@
# Jupyter Sphinx options
jupyter_execute_default_kernel = "python3"

# JupyterLite Sphinx options for the Playground
jupyterlite_config = "jupyter_lite_config.json"
with open(jupyterlite_config, "r") as test_json_config:
# If there are syntax errors, jupyterlite fails silently
# so we validate with Python
test_config_dictionary = json.load(test_json_config)
playground_url = test_config_dictionary["PipliteAddon"]["piplite_urls"][0]
playground_wheel = pathlib.Path(__file__).parent / playground_url
# If the wheel does not exist, jupyterlite fails silently. So we check
# ourselves.
assert playground_wheel.is_file()

# Texinfo options

texinfo_documents = [
Expand Down
1 change: 1 addition & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ Contents:

About Rustworkx <self>
Installation and Getting Started <install>
Rustworkx Playground <playground>
Rustworkx Tutorials and Guides <tutorial/index>
Rustworkx API <api/index>
Visualization <visualization>
Expand Down
10 changes: 10 additions & 0 deletions docs/source/jupyter_lite_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"LiteBuildConfig": {
"no_sourcemaps": true,
"no_unused_shared_packages": true,
"apps": ["repl"]
},
"PipliteAddon": {
"piplite_urls": ["rustworkx-0.17.0-cp39-abi3-pyodide_2024_0_wasm32.whl"]
}
}
28 changes: 28 additions & 0 deletions docs/source/playground.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
.. _rustworkx_playground:

####################
Rustworkx Playground
####################

Welcome to the Rustworkx Playground! This is an interactive environment where you can
experiment with Rustworkx on your browser.

.. replite::
:kernel: python
:height: 600px
:prompt: Try it!
:prompt_color: #6929c4

import piplite
await piplite.install("rustworkx")

import rustworkx as rx
print(f"Rustworkx Playground with version: {rx.__version__}")

.. note::
The `rustworkx` version in the playground is not always the latest. Verify the deployed
version with `rustworkx.__version__`.

.. note::
The `rustworkx` version in the playground experimental. If you find any issues, please
report them at https://github.com/Qiskit/rustworkx/issues.
Binary file not shown.
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@ docs = [
"sphinxemoji",
"ipykernel",
"lxml_html_clean",
# Required to pin Pyodide 0.27.6 with jupyterlite-sphinx.
# jupyterlite-pyodide-kernel is pinned to specific Pyodide versions,
# therefore we need to pick releases that are compatible.
"jupyterlite-sphinx==0.20.2",
"jupyterlite-core==0.6.0",
"jupyterlite-pyodide-kernel==0.6.0",
]
releaseinfra = [
"cibuildwheel==2.23.2",
Expand Down
508 changes: 482 additions & 26 deletions uv.lock

Large diffs are not rendered by default.