-
Notifications
You must be signed in to change notification settings - Fork 254
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
deprecate Package.python_marker
#446
deprecate Package.python_marker
#446
Conversation
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.
I'm a little torn whether we should deprecate it before removing because there might be some plugin out there using it.
There's lots of crud in poetry-core that it's desirable to remove (I have similar queued up that I'll submit when things quieten down / I have a large enough collection). Going through deprecation periods for everything is going to get tedious. IMO: clean up at will, note it in the changelog, do major version bumps if we think we've made possibly-breaking changes. I see nothing to be afraid of in this package going 2.0 or 10.0 or even 50.0. |
5e7464b
to
48ba7ca
Compare
Added a couple more removals to this MR, probably might as well discuss / make a decision for them all in the same place
|
Actually the export plugin is an example of a project that relies on the python_marker, but only for the root package. I'm pretty neutral about whether to leave it on the root package (reasoning about cost can't matter for a single package), or have the export plugin work it out itself from the root python_constraint. Or we could just keep |
48ba7ca
to
7ae4575
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
7ae4575
to
41323b5
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
41323b5
to
32f9e80
Compare
We could make it a |
Unless profiling shows otherwise, I doubt that there's enough of a performance issue to justify adding complication. My goal in deleting code is quite the opposite of that: I want to remove complication.
|
32f9e80
to
5f4b866
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Now that we dropped Python 3.7 and |
python 3.7 and cached_property are irrelevant here: per my last I have no intention of making code more complicated, the goal is to delete it. this is blocked only by a maintainer agreeing that that is a good idea |
5f4b866
to
2996d24
Compare
Kudos, SonarCloud Quality Gate passed! |
2996d24
to
08ee00a
Compare
Kudos, SonarCloud Quality Gate passed! |
@dimbleby would you rebase? With 2.0 coming we are introducing breaking changes anyway, so we might as well break this too |
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.
With 2.0 coming we are introducing breaking changes anyway, so we might as well break this too
In general, I agree...
Actually the export plugin is an example of a project that relies on the python_marker, but only for the root package.
...but we should at least check our plugins and prepare them for the removal if we remove something they are still using.
08ee00a
to
5aebdd1
Compare
By the way, I renamed the PR because |
5aebdd1
to
e1b8759
Compare
Package.python_marker
remove with_python_versions() on the grounds that
with_
(orwithout_
) on the package is nowadays being used to mean "a clone of the package with (or without) this thing", this collides with and confuses that