deprecate Package.python_marker#446
Conversation
radoering
left a comment
There was a problem hiding this comment.
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!
|
7ae4575 to
41323b5
Compare
|
Kudos, SonarCloud Quality Gate passed!
|
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!
|
|
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 |
radoering
left a comment
There was a problem hiding this comment.
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