astral-sh / packse

Python packaging scenarios
Apache License 2.0
93 stars 9 forks source link

Break up and/or build JSON scenarios from code #173

Open notatallshaw opened 4 months ago

notatallshaw commented 4 months ago

I'm finding reading through the JSONs a little challenging, I have two suggestions (and would be happy to work on them at some point):

zanieb commented 4 months ago

I don't feel strongly about reducing the size of the files, i.e. we could have scenarios/prerelease/<kind>.json — I'm a little unsure what this helps with though you just end up needing to navigate across more files?

I think we may want to support JSON5 or YAML to allow comments in the files, that seems helpful for readability.

I don't see any problem with generating scenarios from code, but I think that would be a step before packse which is intended to build packages from scenarios. I don't think packse should be complicated by reading code to generate scenarios, but generating scenarios from code and then processing them with packse sounds nice.