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

Refactor parsers and support pyproject-only projects #8

Merged
merged 11 commits into from
Oct 6, 2023

Conversation

santisoler
Copy link
Member

@santisoler santisoler commented Sep 22, 2023

Refactor the parsers functions into classes, simplify the logic of parsers and add support for projects that only have a pyproject.toml file.

Relevant issues/PRs:

Dependente was failing when moving Harmonica to pyproject.toml only in
fatiando/harmonica#438

Todo

  • test the new features
  • refactor tests to ensure backward compatibility

Refactor the parsers functions into classes, simplify the logic of
parsers and add support for projects that only have a `pyproject.toml`
file.
@welcome
Copy link

welcome bot commented Sep 22, 2023

💖 Thank you for opening your first pull request in this repository! 💖

A few things to keep in mind:

No matter what, we are really grateful that you put in the effort to do this!

@santisoler santisoler marked this pull request as ready for review September 26, 2023 17:16
Raise error if pyproject.toml is missing **and** "build" is a requested
source. Otherwise just parse setup.cfg for the other required sources.
Rename function.
Test if the function that finds configuration files in disk and decide
which sources must be parsed from which file works as expected.
@santisoler
Copy link
Member Author

@leouieda would you mind taking a look at this? I want to have this released so I can continue moving Harmonica to pyproject.toml-only in fatiando/harmonica#438

There are some coverage lacking in the classes, mostly on errors raised when some sections aren't found in the configuration files. Let me know what do you think about them and if we should write tests for them as well.

@santisoler santisoler merged commit 3973c4a into main Oct 6, 2023
5 checks passed
@santisoler santisoler deleted the refactor-parsers branch October 6, 2023 23:31
@welcome
Copy link

welcome bot commented Oct 6, 2023

🎉 Congrats on merging your first pull request and welcome to the team! 🎉

If you would like to be added as a author on the Zenodo archive of the next release, add your full name, affiliation, and ORCID (optional) to the AUTHORS.md file of this repository. Feel free to do this in a new pull request if needed.

We hope that this was a good experience for you. Let us know if there is any way that the contributing process could be improved.

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.

1 participant