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

Use safe_extra to standardize extra dependencies #4122

Merged
merged 2 commits into from
Jun 7, 2022
Merged

Use safe_extra to standardize extra dependencies #4122

merged 2 commits into from
Jun 7, 2022

Conversation

deepyaman
Copy link
Contributor

@deepyaman deepyaman commented May 31, 2021

Pull Request Check List

Resolves: #4123

  • Added tests for changed code.
  • Updated documentation for changed code.

@deepyaman deepyaman marked this pull request as ready for review June 1, 2021 04:28
@deepyaman
Copy link
Contributor Author

I can't quite figure out why the two running jobs are failing; the tests pass on my machine (aside from venv-related ones that didn't pass even when I first cloned the project), and the timeouts seem to happen before tests run.

@finswimmer finswimmer requested a review from a team June 4, 2021 09:43
Copy link
Member

@finswimmer finswimmer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for your contribution @deepyaman 👍

I've talked about it with @sdispater and he's fine with being not case sensitiv here. But instead of using pkg_resources.safe_extra it would be better to implement our own helper method. Thus we can avoid a dependency that isn't absolutely necessary. The implementation seems to be trivial: https://github.com/pypa/pkg_resources/blob/6f81a44010d1266494025647dd1e1f0befa5b26b/pkg_resources/__init__.py#L1435

fin swimmer

@sonarcloud
Copy link

sonarcloud bot commented Jun 9, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@deepyaman
Copy link
Contributor Author

But instead of using pkg_resources.safe_extra it would be better to implement our own helper method.

@finswimmer Sorry for the delay, but this is done!

@finswimmer finswimmer requested review from a team and removed request for finswimmer August 2, 2021 15:07
Copy link
Member

@neersighted neersighted left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me -- can we rebase this so it can be merged?

@neersighted neersighted added this to the 1.2 milestone Jun 4, 2022
@neersighted neersighted added the status/waiting-on-response Waiting on response from author label Jun 4, 2022
@neersighted
Copy link
Member

Looks like we still need to get CI working -- also there's a lot of junk commits. Could we squash this PR down to 1-3 (logical/meaningful) commits?

@deepyaman
Copy link
Contributor Author

Looks like we still need to get CI working -- also there's a lot of junk commits. Could we squash this PR down to 1-3 (logical/meaningful) commits?

Sorry, I had to step out, but I was in the middle of setting up my local env to resolve the issues. It's been a year, so a lot has changed, including my laptop. :)

I'll ping you once I've got them resolved, and I can also squash down to a change or two (I wrongly assumed or forgot that Poetry doesn't just squash-merge everything).

@deepyaman
Copy link
Contributor Author

@neersighted Think we're good now! I'll just update with rebase since there's been more pushes, but I don't imagine there will be any issues.

@deepyaman
Copy link
Contributor Author

Looks like we still need to get CI working -- also there's a lot of junk commits. Could we squash this PR down to 1-3 (logical/meaningful) commits?

As an unrelated note on this, looking at the (recent) commit history, there's a mix of Conventional Commit and old-school sentence-case commits. Maybe it makes sense to standardize on one?

@neersighted
Copy link
Member

Looks like we still need to get CI working -- also there's a lot of junk commits. Could we squash this PR down to 1-3 (logical/meaningful) commits?

As an unrelated note on this, looking at the (recent) commit history, there's a mix of Conventional Commit and old-school sentence-case commits. Maybe it makes sense to standardize on one?

We're not picky yet but eventually I'll get around to gating commits on conventional commit compliance 😄

And we do squash merge when needed, but during a more involved change (with a developer that knows how to rebase) like this I prefer to have logical commits to make bisecting easier -- e.g. in this case I'd prefer add tests then add code to make the change.

@deepyaman
Copy link
Contributor Author

I'd prefer add tests then add code to make the change.

@neersighted Do you want me to do this, or is this good to go as is? I've never broken commits down like that (because generally try to ensure that tests pass on each commit on the main branch on projects I've worked on), but I can update it if that's the standard for Poetry and what we need to close this out.

@neersighted
Copy link
Member

I'd prefer add tests then add code to make the change.

@neersighted Do you want me to do this, or is this good to go as is? I've never broken commits down like that (because generally try to ensure that tests pass on each commit on the main branch on projects I've worked on), but I can update it if that's the standard for Poetry and what we need to close this out.

It's nothing enforced -- merely a preference for review, and given we're already reviewed this change one commit is fine 😄

@neersighted neersighted merged commit 2afe984 into python-poetry:master Jun 7, 2022
@deepyaman deepyaman deleted the patch-1 branch June 8, 2022 02:48
@deepyaman
Copy link
Contributor Author

@neersighted Thank you so much for your help in closing this out!

Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status/waiting-on-response Waiting on response from author
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Poetry silently skips installing "extras" that aren't lowercase
3 participants