Closed jdblischak closed 5 months ago
cc @viniciusdc
I added jsonschema to the run requirements of the conda-forge recipe in https://github.com/conda-forge/conda-smithy-feedstock/pull/282
@beckermr volunteered to send the repodata-patch to patch the metadata of the binary from yesterday
What about pyproject.toml
? That seems like a natural place to define run requirements. Is there a reason the run requirements are only specified in environment.yml
?
So we're more "conda first" here typically. The pyproject.toml usually lists dependencies from pypi, not say conda-forge, at least in the normal spots. Items on pypi don't always have the same name as they do in conda-forge so this can create issues and confusion. Some items are missing too. Some are not there on purpose: https://pypi.org/project/conda/
That all being said, projects like pixi are blurring the boundaries more which is both cool to see and certainly one of many possible paths forward.
The pyproject.toml usually lists dependencies from pypi, not say conda-forge, at least in the normal spots. Items on pypi don't always have the same name as they do in conda-forge so this can create issues and confusion.
@beckermr Thanks for the explanation! That makes sense. I see now that the conda-forge recipe uses GitHub releases as the source, and not PyPI, so I agree that maintaining a pyproject.toml isn't necessary.
Solution to issue cannot be found in the documentation.
Issue
The recently released v3.32.0 included PR https://github.com/conda-forge/conda-smithy/pull/1756, which added a requirement on jsonschema. jsonschema was added to
environment.yml
, but notpyproject.toml
https://github.com/conda-forge/conda-smithy/blob/85ddb5deabda9ab58ae6ec898e2a1e33393117b7/environment.yml#L36
jsonschema was also not added as a requirement in the automerged feedstock PR https://github.com/conda-forge/conda-smithy-feedstock/pull/281
This has caused my CI pipelines that run
conda smithy rerender
to fail with the following error:Shouldn't jsonschema be added at minimum to the conda recipe requirements?
xref: https://github.com/TileDB-Inc/conda-forge-nightly-controller/issues/64, https://github.com/TileDB-Inc/conda-forge-nightly-controller/issues/65, https://github.com/TileDB-Inc/tiledbsoma-feedstock/issues/100
Installed packages
Environment info