Skip to content

Commit b88180d

Browse files
authored
chore: transition dev-env management tool to uv (#28)
1 parent 6f7db85 commit b88180d

6 files changed

Lines changed: 1862 additions & 49 deletions

File tree

.github/workflows/build-wheels.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ on:
55
workflow_call:
66

77
jobs:
8-
run-pytest:
8+
test-package:
99
uses: ./.github/workflows/test-package.yml
1010

1111
build-wheels:
12-
needs: run-pytest
12+
needs: test-package
1313
runs-on: ${{ matrix.os }}
1414
name: Build wheels on ${{ matrix.os }}
1515
strategy:
@@ -29,7 +29,7 @@ jobs:
2929
path: ./wheelhouse/*.whl
3030

3131
build-sdist:
32-
needs: run-pytest
32+
needs: test-package
3333
name: Build source distribution
3434
runs-on: ubuntu-latest
3535
steps:

.github/workflows/deploy-docs.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,15 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v4
1515

16-
- name: Set up Python
17-
uses: actions/setup-python@v4
16+
- uses: astral-sh/setup-uv@v5
1817
with:
1918
python-version: "3.13"
2019

2120
- name: Install dependencies
2221
run: |
2322
sudo apt-get update
2423
sudo apt-get install -y doxygen
25-
python -m pip install --upgrade pip
26-
pip install -e .[docs]
24+
uv sync --group=docs
2725
2826
- name: Build docs
2927
run: |

.github/workflows/test-package.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,13 @@ jobs:
2222
steps:
2323
- uses: actions/checkout@v4
2424

25-
- uses: actions/setup-python@v5
25+
- uses: astral-sh/setup-uv@v5
2626
with:
2727
python-version: ${{ matrix.python-version }}
2828

2929
- name: Install dependencies
3030
run: |
31-
python -m pip install --upgrade pip
32-
pip install .[dev]
31+
uv sync
3332
3433
- name: Run pytest
3534
run: |
@@ -41,17 +40,15 @@ jobs:
4140
steps:
4241
- uses: actions/checkout@v4
4342

44-
- name: Set up Python
45-
uses: actions/setup-python@v4
43+
- uses: astral-sh/setup-uv@v5
4644
with:
4745
python-version: "3.13"
4846

4947
- name: Install dependencies
5048
run: |
5149
sudo apt-get update
5250
sudo apt-get install -y doxygen
53-
python -m pip install --upgrade pip
54-
pip install -e .[docs]
51+
uv sync --group=docs
5552
5653
- name: Build docs
5754
run: |

pyproject.toml

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -35,26 +35,6 @@ classifiers = [
3535
"Topic :: Utilities",
3636
]
3737

38-
optional-dependencies = { "dev" = [
39-
"pytest",
40-
"pytest-xdist",
41-
"build",
42-
], "docs" = [
43-
"sphinx>=8.2",
44-
"sphinx-book-theme",
45-
"myst_parser",
46-
"sphinx-design",
47-
"sphinx-copybutton",
48-
"sphinxext-rediraffe",
49-
"sphinxext-opengraph",
50-
"sphinx-tippy",
51-
"sphinx-togglebutton",
52-
"sphinxcontrib-mermaid",
53-
"sphinx-autobuild",
54-
"sphinx-intl",
55-
"breathe",
56-
] }
57-
5838
urls = { "Homepage" = "https://github.com/mrzimu/uproot-custom" }
5939

6040
[tool.scikit-build]
@@ -83,3 +63,24 @@ build = ["cp*-manylinux_x86_64", "cp*-macosx_arm64", "cp*-win_amd64"]
8363
[tool.sphinx]
8464
source-dir = "docs"
8565
build-dir = "build"
66+
67+
[dependency-groups]
68+
dev = ["pytest"]
69+
docs = [
70+
"sphinx",
71+
"sphinx-book-theme",
72+
"myst_parser",
73+
"sphinx-design",
74+
"sphinx-copybutton",
75+
"sphinxext-rediraffe",
76+
"sphinxext-opengraph",
77+
"sphinx-tippy",
78+
"sphinx-togglebutton",
79+
"sphinxcontrib-mermaid",
80+
"sphinx-autobuild",
81+
"sphinx-intl",
82+
"breathe",
83+
]
84+
85+
[tool.uv]
86+
default-groups = ["dev"]

tests/test_docs.py

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

0 commit comments

Comments
 (0)