-
Notifications
You must be signed in to change notification settings - Fork 42
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
Replace deprecated pkg_resources with packaging #105
Conversation
Replace pkg_resources.Requirement with packaging.requirements.Requirement. Signed-off-by: Esa Jokinen <[email protected]>
Thanks for the contribution @oh2fih. As you can see - all tests are failing - looks like you forgot to commit an updated |
Signed-off-by: Esa Jokinen <[email protected]>
@madpah Thanks for accepting the pipeline. I did not yet really focus on the workflows so much as I could not get their output anyway. The |
Q000 Double quotes found but single quotes preferred Signed-off-by: Esa Jokinen <[email protected]>
Although the output looks the same, I still got this typing error:
Should I try to fix this or just blindly This is an example of the conversion I use and its output:
However I test this the type is
I'll just ignore this... |
Getting closer!
|
@oh2fih - can you also see that the DCO check is not passing https://github.com/madpah/requirements-parser/pull/105/checks?check_run_id=28655859108 |
Yes, the practice of using It seems the old library used was a bit more flexible with the line formatting and I still need to add some pre-processing. However, I am now able to run the workflows on the fork, so maybe I'll get there. |
- Hashable type required. Convert list to tuple. - Ignore incompatible types. - Remove comments before passing the line to Req(). - Extras should be in lower case. - Complete the list of comparison operators with '!'. Signed-off-by: Esa Jokinen <[email protected]>
@madpah It is always a bit challenging to adjust to the developing environment of a new project, but the |
Had I known, I would have cleaned up the commit history a bit, as now the changelog does not contain what was actually improved, the first commit message being most meaningful compared to the minor adjustments in the end. |
No worries - this PR is here forever. Thanks for the contribution @oh2fih - |
Before madpah#105, `pkg_resources` was implictly present with `setuptools`. So `types-setuptools` is not needed (and should probably never have been a dependency, but only a dev dependency anyway, as it was most likely only needed locally to verify typing).
Before madpah#105, `pkg_resources` was implictly present with `setuptools`. So `types-setuptools` is not needed anymore (and should probably never have been a dependency, but only a dev dependency anyway, as it was most likely only needed locally to verify typing).
Before madpah#105, `pkg_resources` was implicitly present with `setuptools`. So `types-setuptools` is not needed anymore (and should probably never have been a dependency, but only a dev dependency anyway, as it was most likely only needed locally to verify typing).
Before madpah#105, `pkg_resources` was implicitly present with `setuptools`, so it was useful to have `types-setuptools` to check typing. But now that the usage is gone, the typing dependency should not be needed. It probably should have never been a direct dependency anyway, but only a dev dependency, as AFAIK it was only useful locally to verify typing, not when installing the library for consumers.
Before madpah#105, `pkg_resources` was implicitly present with `setuptools`, so it was useful to have `types-setuptools` to check typing. But now that the usage is gone, the typing dependency should not be needed. It probably should have never been a direct dependency anyway, but only a dev dependency, as AFAIK it was only useful locally to verify typing, not when installing the library for consumers.
Before madpah#105, `pkg_resources` was implicitly present with `setuptools`, so it was useful to have `types-setuptools` to check typing. But now that the usage is gone, the typing dependency should not be needed. It probably should have never been a direct dependency anyway, but only a dev dependency, as AFAIK it was only useful locally to verify typing, not when installing the library for consumers. Signed-off-by: Mathieu Kniewallner <[email protected]>
Before #105, `pkg_resources` was implicitly present with `setuptools`, so it was useful to have `types-setuptools` to check typing. But now that the usage is gone, the typing dependency should not be needed. It probably should have never been a direct dependency anyway, but only a dev dependency, as AFAIK it was only useful locally to verify typing, not when installing the library for consumers. Signed-off-by: Mathieu Kniewallner <[email protected]>
Replace
pkg_resources.Requirement
withpackaging.requirements.Requirement
.setuptools
becomes unnecessary.