[ENH][SCHEMA] Use Universal Path Library for Schema Retrieval#2351
[ENH][SCHEMA] Use Universal Path Library for Schema Retrieval#2351bendhouseart wants to merge 7 commits intomasterfrom
Conversation
|
Also, can we convert the build backend to not pdm? Uv does not like it. |
for more information, see https://pre-commit.ci
…tandard/bids-specification into enh-allow-schema-loading-from-url
effigies
left a comment
There was a problem hiding this comment.
I really don't want to do this. If anything, I want fewer dependencies for tools that want to use the schema. We allow users to use UPaths.
What problems are you having with pdm?
Okay does that mean I should kill this or switch it over to urllib to handle collecting the schema?
UV run was not behaving until I went and setup the environment for bst with pdm first. |
I would prefer to kill it, myself. I don't think we should handle requests. Supporting
Interesting. I only use |
Okay, sounds good, it's straight forward enough to GET then load on one's own. |
Yeah I think it's a me uv/pdm/brew thing, but I kept getting invalid/unavailable backend when I was running uv run pytest... will make a smaller PR when I get the chance next week. |
for more information, see https://pre-commit.ci
I had initially added this to a PR for pybids but it seems more appropriate here. I think this also plays a bit into the discussion at issue #965 in so far as python users are concerned.
Conversely, a user could make a request first to
https://bids-specification.readthedocs.io/en/stable/schema.jsonthen useschema.load_schemafollowing that retrieval.I don't know, maybe this is a solution in search of a problem and/or should be fleshed out to retrieve specific versions of the schema from bids-standard/bids-schema.