Skip to content

Commit 23fdab6

Browse files
committed
Use uv for dependencies
1 parent acea250 commit 23fdab6

31 files changed

+5911
-3320
lines changed

.github/workflows/nightly.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- uses: ts-graphviz/setup-graphviz@c001ccfb5aff62e28bda6a6c39b59a7e061be5b9 # v1
3737
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
3838
with:
39-
python-version: "3.10"
39+
python-version: "3.11"
4040
- name: Install dependencies
4141
run: |
4242
python -m pip install --upgrade pip

.github/workflows/pr.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- uses: ts-graphviz/setup-graphviz@c001ccfb5aff62e28bda6a6c39b59a7e061be5b9 # v1
3535
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
3636
with:
37-
python-version: "3.10"
37+
python-version: "3.11"
3838
- name: Install dependencies
3939
run: |
4040
python -m pip install --upgrade pip
@@ -51,7 +51,7 @@ jobs:
5151
- uses: ts-graphviz/setup-graphviz@c001ccfb5aff62e28bda6a6c39b59a7e061be5b9 # v1
5252
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
5353
with:
54-
python-version: "3.10"
54+
python-version: "3.11"
5555
- name: Install dependencies
5656
run: |
5757
python -m pip install --upgrade pip
@@ -69,7 +69,7 @@ jobs:
6969
- uses: ts-graphviz/setup-graphviz@c001ccfb5aff62e28bda6a6c39b59a7e061be5b9 # v1
7070
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
7171
with:
72-
python-version: "3.10"
72+
python-version: "3.11"
7373
- name: Install dependencies
7474
run: |
7575
python -m pip install --upgrade pip
@@ -89,7 +89,7 @@ jobs:
8989
fetch-depth: 0
9090
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
9191
with:
92-
python-version: "3.10"
92+
python-version: "3.11"
9393
- name: Install dependencies
9494
run: |
9595
python -m pip install --upgrade pip
@@ -109,7 +109,7 @@ jobs:
109109
fetch-depth: 0
110110
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
111111
with:
112-
python-version: "3.10"
112+
python-version: "3.11"
113113
- name: Install dependencies
114114
run: |
115115
python -m pip install --upgrade pip
@@ -129,7 +129,7 @@ jobs:
129129
fetch-depth: 0
130130
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
131131
with:
132-
python-version: "3.10"
132+
python-version: "3.11"
133133
- name: Install dependencies
134134
run: |
135135
python -m pip install --upgrade pip
@@ -148,7 +148,7 @@ jobs:
148148
- uses: ts-graphviz/setup-graphviz@c001ccfb5aff62e28bda6a6c39b59a7e061be5b9 # v1
149149
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
150150
with:
151-
python-version: "3.10"
151+
python-version: "3.11"
152152
- name: Install dependencies
153153
run: |
154154
python -m pip install --upgrade pip

MANIFEST.in

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Python package for fault-tolerant quantum algorithms research.
88

99
[![Licensed under the Apache 2.0 open-source license](https://img.shields.io/badge/License-Apache%202.0-3c60b1.svg?logo=opensourceinitiative\&logoColor=white\&style=flat-square)](https://github.com/quantumlib/qualtran/blob/main/LICENSE)
10-
[![Compatible with Python versions 3.10 and higher](https://img.shields.io/badge/Python-3.10+-6828b2.svg?style=flat-square&logo=python&logoColor=white)](https://www.python.org/downloads/)
10+
[![Compatible with Python versions 3.11 and higher](https://img.shields.io/badge/Python-3.11+-6828b2.svg?style=flat-square&logo=python&logoColor=white)](https://www.python.org/downloads/)
1111
[![Qualtran project on PyPI](https://img.shields.io/pypi/v/qualtran.svg?logo=python&logoColor=white&label=PyPI&style=flat-square&color=9d3bb8)](https://pypi.org/project/qualtran)
1212

1313
[Installation](#installation) –

dev_tools/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66
name = "qualtran-dev-tools"
77
version = "0.1.0"
88
description = "Local development tools for the Qualtran project."
9-
requires-python = ">=3.10"
9+
requires-python = ">=3.11"
1010

1111
[tool.setuptools]
1212
packages = ["qualtran_dev_tools"]

dev_tools/requirements/Dockerfile

Lines changed: 0 additions & 26 deletions
This file was deleted.

dev_tools/requirements/README

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
We use `uv` to manage dependencies.
2+
3+
- From the project's root directory, run `uv lock` to pin the versions of all transitive
4+
dependencies in the uv.lock file.
5+
- Run `uv lock -U` to upgrade the pinned versions.
6+
- Run `uv sync --frozen --no-dev [--group test/typing/lint/..]` to install the pinned dependencies.
7+
- You can use `export-from-uv-lock.sh` in this directory to output legacy requirements.txt
8+
environment files.

dev_tools/requirements/deps/README

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
This directory use to contain "factored out" dependencies, with one dependency group per file.
2+
The Python packaging ecosystem now has better support for dependency groups through `uv`,
3+
so please find the dependency groups in pyproject.toml.

dev_tools/requirements/deps/dev-tools.txt

Lines changed: 0 additions & 9 deletions
This file was deleted.

dev_tools/requirements/deps/docs.txt

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)