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

[BUG]: importlib-metadata version requirement several major versions behind. #192

Closed
1 task done
whardier opened this issue Aug 27, 2023 · 2 comments
Closed
1 task done
Labels
bug Something isn't working

Comments

@whardier
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Description of the bug

Can you increase the scope for importlib-metadata and matrix test against 4.x, 5.x and 6.x if you need to support 4.x or 5.x for any reason.

If you need to use an older importlib-metadata it is VERY easy to vendor using vendorize and I can provide a pyproject.toml config section for how to enable that.

Steps To Reproduce

Modern opentelemetry - some flake8 tooling (that uses importlib-metadata for entrypoint solving) and others require ~=6.0

Additional Information

No response

@whardier whardier added the bug Something isn't working label Aug 27, 2023
@whardier
Copy link
Contributor Author

For the work that is being done with importlib_metadata here - you can replace it with setuptools-scm and enable it in your pyproject when using setuptools. In your case with poetry there is a plugin for poetry that allows for writing a version tag out to a file that will be included in the output as a python script (replacement or overwrite).

I have often used stuff like _myproject_version.py as a top level file outside of my myproject module area when installed in site-packages in order to support this.

@whardier
Copy link
Contributor Author

I believe python now also supports this out of the box.. but I'm not entirely sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants