sarugaku / plette

Structured Pipfile and Pipfile.lock models.
ISC License
7 stars 7 forks source link

Update validation schema for Requires #31

Closed jerempy closed 1 year ago

jerempy commented 1 year ago

Per this bug: https://github.com/pypa/pipenv/issues/5395

Maybe I went a little overboard by adding the regex validations.

Basically made it so both python_full_version or python_version can be initialized with the Requires() object.

Since the main thing "oneof" checks is the validation schemas itself, and the main thing we are checking is the name of the key, i.e. python_full_version or python_version i didn't see how to plug in "oneof".