Repository navigation
chore: declare pytest as a uv dev dependency - #885
Conversation
safishamsi
left a comment
There was a problem hiding this comment.
Thanks for the CI improvement! One small fix needed before we can merge:
actions/checkout@v6 doesn't exist yet — the latest stable release is v4 (or v3 for older runners). Using v6 will cause the workflow to fail immediately on checkout.
Fix:
- uses: actions/checkout@v4Update that line and we can merge right away.
v6 does exist though? |
|
Current package is based on v8
…On Fri, 15 May 2026 at 23:48, Brian K ***@***.***> wrote:
@kanya-approve <https://github.com/kanya-approve> requested your review
on: Graphify-Labs/graphify#885
<#885> chore: declare pytest
as a uv dev dependency.
—
Reply to this email directly, view it on GitHub
<#885 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/BTSTP6YQKXQ7WDRJZWQQQWT426NEJAVCNFSM6AAAAACZABBQ6CVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMRVGU4TKOBSGIZDIMI>
.
You are receiving this because your review was requested.Message ID:
***@***.***>
|
The contributing guide currently tells contributors `pip install pytest` as a separate step, and CI does the same. Move pytest into PEP 735 `[dependency-groups]` so it's declared in pyproject.toml and `uv sync` installs it by default (no `--with` workaround, no separate install line). Update CI to use astral-sh/setup-uv + `uv sync` + `uv run pytest`, and refresh the Contributing section of the README to match. `[dependency-groups]` is the right home (vs `[project.optional-dependencies]`) because pytest is dev-only and shouldn't appear in the published wheel's optional features list alongside things like `pdf` or `mcp`.
I'm not following? |
|
Hey @kanya-approve, this PR has a merge conflict with v8 (likely due to recent pyproject.toml changes from version bumps). Could you rebase onto v8 and resolve the conflict? Happy to merge once it's clean. |
Done, also could you please see me comment on #886 @safishamsi - why revert this? The message says it's a library, but I thought this was a cli tool with no intent to be used as a library? |
|
The direction (uv for CI and dev setup) is right — uv is significantly faster than pip for CI cold-cache installs and the README dev-setup improvements are clean. Three issues to fix:
The stable version is
pytest needs to be in the dev dependency group If the intention is Fix those three and this is a clean, mergeable improvement. |
I took uv.lock out of gitignore but you reverted it for some reason as I asked on #886 (comment) pytest is already in the dev dependency group Are you actually looking at my comments? This is really confusing. |
|
@safishamsi Hmm? |
|
I tried to send you an enail, requesting for testing since made changes last night for DreamMaker, let me know if you're still stuck with something. I'll try sorting it all out today |
- CI: use astral-sh/setup-uv@v5 + uv sync --dev + uv run pytest - README: update contributing section with uv sync workflow - pyproject.toml: already has [dependency-groups] dev with pytest Closes Graphify-Labs#885
) * chore: declare pytest as a uv dev dependency The contributing guide currently tells contributors `pip install pytest` as a separate step, and CI does the same. Move pytest into PEP 735 `[dependency-groups]` so it's declared in pyproject.toml and `uv sync` installs it by default (no `--with` workaround, no separate install line). Update CI to use astral-sh/setup-uv + `uv sync` + `uv run pytest`, and refresh the Contributing section of the README to match. `[dependency-groups]` is the right home (vs `[project.optional-dependencies]`) because pytest is dev-only and shouldn't appear in the published wheel's optional features list alongside things like `pdf` or `mcp`. * remove uv.lock from gitignore
Summary
The contributing guide currently tells contributors to
pip install pytestas a separate step, and CI does the same. This PR moves pytest into PEP 735[dependency-groups]so it's declared inpyproject.tomlanduv syncinstalls it by default — no separate install line, no--withworkaround.pyproject.toml: new[dependency-groups]block withdev = ["pytest"].github/workflows/ci.yml: switched toastral-sh/setup-uv+uv sync+uv run pytestREADME.md: Contributing section refreshed touv sync/uv run pytest[dependency-groups]is the right home (vs[project.optional-dependencies]) because pytest is dev-only — it shouldn't appear in the published wheel's optional features list alongside things likepdformcp.Test plan
uv syncresolves the dev group and installs pytestuv run pytest tests/ -q— full suite green locally (modulo the 8 pre-existing SQL failures that need--extra sql, untouched by this PR)