Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert pythonfinder from pydantic to vanilla dataclasses #157

Merged
merged 14 commits into from
Jan 28, 2024

Conversation

matteius
Copy link
Contributor

@matteius matteius commented Jan 22, 2024

Ok -- This is it folks, the pythonfinder PR you've all been waiting for: removal of pydantic. I've ported the equivalent changes over to pipenv and got the tests passing there (and ported those changes back to here).

Corresponding pipenv PR that shows these changes passing: https://github.com/pypa/pipenv/actions/runs/7676466722/job/20924059607

Key highlights:

  • Remove the posix path conversions and learn more heavily into pathlib.
  • Use string path keys to the paths dictionary
  • reduce complexity in the python version comparison operators (and fix at least one bug there).
  • Probably some other things--you should want to review this PR.

@matteius
Copy link
Contributor Author

Initial pass is actually working for mac os and linux but needs some investigation on the windows side: https://github.com/pypa/pipenv/actions/runs/7606560585/job/20712546096

@matteius matteius marked this pull request as ready for review January 27, 2024 05:13
@matteius matteius changed the title Initial pass at converting off pydantic Convert pythonfinder from pydantic to vanilla dataclasses Jan 27, 2024
@oz123 oz123 self-requested a review January 28, 2024 10:54
@oz123 oz123 self-assigned this Jan 28, 2024
src/pythonfinder/models/python.py Outdated Show resolved Hide resolved
src/pythonfinder/models/mixins.py Outdated Show resolved Hide resolved
@matteius matteius requested a review from oz123 January 28, 2024 11:31
@oz123 oz123 merged commit f18c876 into master Jan 28, 2024
15 checks passed
@oz123 oz123 deleted the remove-pydantic branch January 28, 2024 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants