Skip to content

Conversation

@neutrinoceros
Copy link
Collaborator

Close #475
The first commit is temporary.

@neutrinoceros neutrinoceros added pkg: cli about `nonos-cli` pkg: lib about the `nonos` library labels Aug 29, 2025
@neutrinoceros neutrinoceros force-pushed the tst/backward-compat-checks branch 2 times, most recently from 0426e7d to 958c03d Compare August 29, 2025 13:48
@neutrinoceros
Copy link
Collaborator Author

I think I may be hitting a bug in uv.
Specifically, here's the current (as of uv 0.8.14) help for uv sync's --no-sources argument

--no-sources
Ignore the tool.uv.sources table when resolving dependencies. Used to lock
against the standards-compliant, publishable package metadata, as opposed to
using any workspace
, Git, URL, or local path sources

(emphasis mine)

I would thus expect that

uv sync --package nonos --all-extras --no-sources

results in an env where nonos itself is installed from source, but nonos-cli is installed from PyPI. Instead, I get this:

Resolved 71 packages in 6ms
Installed 22 packages in 82ms
 + cblind==2.3.1
 + cmocean==4.0.3
 + cmyt==2.0.2
 + contourpy==1.3.3
 + cycler==0.12.1
 + fonttools==4.59.1
 + inifix==6.1.1
 + kiwisolver==1.4.9
 + lick==0.7.1
 + loguru==0.7.3
 + matplotlib==3.10.5
 + nonos==0.19.1 (from file:///Users/clm/dev/la-niche/nonos)
 + nonos-cli==0.1.1 (from file:///Users/clm/dev/la-niche/nonos/cli)
 + numpy==2.3.2
 + packaging==25.0
 + pillow==11.3.0
 + pyparsing==3.2.3
 + python-dateutil==2.9.0.post0
 + rlic==0.5.1
 + scipy==1.16.1
 + six==1.17.0
 + tqdm==4.67.1

I don't know if that behavior is expected or not. Admittedly the dependency cycle between both workspace packages may constitute an edge case, either broken or unsupported. Either way, I'll report this upstream later if I cannot figure it out myself in the interval.

I also note that neither --no-install-workspace (skip any workspace members, including the --package argument) nor --no-install-project (which conceptually translates to the infamously missing --only-deps arg from pip install) fit my needs.

@neutrinoceros neutrinoceros force-pushed the tst/backward-compat-checks branch from 958c03d to 4d394d7 Compare February 1, 2026 09:25
@neutrinoceros neutrinoceros force-pushed the tst/backward-compat-checks branch from 89f1c05 to 09ecb06 Compare February 1, 2026 09:33
@neutrinoceros
Copy link
Collaborator Author

I think this upstream discussion is close to what I'd need: astral-sh/uv#17351

@neutrinoceros neutrinoceros removed this from the nonos 0.19.0, nonos-cli 0.1.0 milestone Feb 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg: cli about `nonos-cli` pkg: lib about the `nonos` library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TST: check both-way backward compatibility between nonos and nonos-cli

1 participant