-
Notifications
You must be signed in to change notification settings - Fork 657
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
Update package metadata opentelemetry-api #2867
Conversation
@srikanthccv Hello! Should we add the |
@ofek probably not since this doesn't change anything for an end user but we might want to discuss the dropping support for 3.6. We decided to keep it until around metrics SDK becomes stable enough. |
No worries, in that case I can keep the existing cap and only require 3.7+ in CI/CD. How does that sound? |
sgtm |
Pushed! Would you mind triggering the CI with that button below? |
Only the changelog job is failing. |
Failing job is just a flake for a performance regression |
Everything is passing now! Though it looks like the 3.6 jobs are hard coded in this repo's GitHub settings as required/expected. |
There was a conflict due to a typo fix that just got merged so I rebased. As far as I'm reading, merging might actually remove the required 3.6 checks rather than having to edit the repo settings 🙂 |
No, the merge can only be done after "required" checks are successful. So this requires updating settings. |
Oh okay, just let me know how I can help! |
@ofek If we wanted to update opentelemetry-instrumentation to use
What would be your recommendation in how to define an entry point with the |
[project.scripts]
opentelemetry-instrument = "opentelemetry.instrumentation.auto_instrumentation:run"
opentelemetry-bootstrap = "opentelemetry.instrumentation.bootstrap:run"
[project.entry-points.opentelemetry_environment_variables]
instrumentation = "opentelemetry.instrumentation.environment_variables" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few outstanding questions.
Awesome, @ofek 😎 |
Looks like Github is expecting for the Python3.6 test to run to pass status checks but we removed them from the build matrix in this PR. Should we remove Python3.6 from preventing builds passing? |
Yes, I was wondering if there is way to continue run tests for 3.6 but that doesn't seem possible. |
Well, metrics is already stable, so we are ready to remove support for 3.6. I would prefer to first remove support for 3.6 and update our build system to use 3.7 in a separate PR just for clarity in our history, since dropping support for 3.6 is important for our users. I'll update #2360. |
This one? #2763 |
Yes, I am working right now on making the test cases pass there. |
@ofek The PR that dropped support for py36 is merged. Please resolve the conflicts and we can get this merged. |
Done! |
Background
Hello there! The Python packaging ecosystem has standardized on the interface for build backends (PEP 517/PEP 660) and the format for metadata declaration (PEP 621/PEP 631). As a result, the execution of
setup.py
files is now deprecated.So, I'm spending my free time updating important projects so that they are modernized and set an example for others 😄
Description
This implements PEP 621 for
opentelemetry-api
, obviating the need forsetup.py
,setup.cfg
, andMANIFEST.in
. Our tooling already supports this. I'll open one PR per package after this one.The build backend
hatchling
(of which I am a maintainer in the PyPA) is now used as that is the default in the official Python packaging tutorial. Hatchling is available on all the major distribution channels such as Debian, Fedora, Arch Linux, conda-forge, Nixpkgs, Alpine Linux, FreeBSD, Gentoo Linux, MacPorts, OpenEmbedded, Spack, etc.Type of change
How Has This Been Tested?
Does This PR Require a Contrib Repo Change?
Checklist: