google-cloud-python icon indicating copy to clipboard operation
google-cloud-python copied to clipboard

Add deprecated copy for https://pypi.python.org/pypi/gcloud

Open daspecster opened this issue 10 years ago • 28 comments

Follow up from #2744.

Is there some kind of status or message we could add to https://pypi.python.org/pypi/gcloud to direct people to https://pypi.python.org/pypi/google-cloud?

Or possibly set the category to Development Status :: 7 - Inactive?

daspecster avatar Nov 17 '16 15:11 daspecster

@jonparrott WDYT is the right move here?

dhermes avatar Nov 17 '16 18:11 dhermes

I'm for it. (as in what @daspecster said is fine)

theacodes avatar Nov 17 '16 18:11 theacodes

@jonparrott Would it be strange to do a new release of gcloud that just throws an ImportError with instructions to upgrade to google-cloud?

dhermes avatar Nov 17 '16 18:11 dhermes

Yes, please don't do that.

theacodes avatar Nov 17 '16 18:11 theacodes

@daspecster Are you taking charge of this?

dhermes avatar Dec 02 '16 18:12 dhermes

I can if you want. What are the steps to do it?

  • Branch of of the 0.18.3 tag.
  • Update setup.py to reflect the deprecated status.
  • Then you can push it to pypi?

Also, I'm not sure where the commit for that change would/should end up exactly just in a branch?

daspecster avatar Dec 02 '16 18:12 daspecster

I'm not sure either, have been discussing (more like arguing) with @jonparrott in chat about what to do

dhermes avatar Dec 02 '16 18:12 dhermes

(more like arguing)

giphy

theacodes avatar Dec 02 '16 18:12 theacodes

@jonparrott @dhermes did you guys ever figure out the path for this?

#2885 sounds related as well.

daspecster avatar Dec 19 '16 19:12 daspecster

In my mind #2885 is a duplicate of this.

dhermes avatar Dec 19 '16 20:12 dhermes

Shameless prod: Is there an ETA on this?

kir-titievsky avatar Dec 19 '16 20:12 kir-titievsky

It will be very quick to do once we decide WHAT to do. There is no ETA on deciding WHAT to do.

@jonparrott Do you know if other projects have gone through a rename that we could refer to? I'm worried that if we only put a "big red warning" at the top of https://pypi.python.org/pypi/gcloud/0.18.3, then not all "stuck on gcloud" users will get the message.

dhermes avatar Dec 19 '16 20:12 dhermes

Do you know if other projects have gone through a rename that we could refer to?

Not off the top of my head. I've seen projects that change their index name but kept their import name, and packages that kept their index name but changed their import name, but I can't think of any off the top of my head that did both (though I'm sure they're out there).

if we only put a "big red warning" at the top of https://pypi.python.org/pypi/gcloud/0.18.3, then not all "stuck on gcloud" users will get the message.

That's fair, but you guys are only doing an sdist - why not go ahead and add a warning in setup.py?

Another thing is that during the gcloud phase this project was very clearly marked as alpha. I would tread a bit more carefully if we had renamed a GA library.

theacodes avatar Dec 19 '16 20:12 theacodes

go ahead and add a warning in setup.py

Like via warnings? Also, I look at the output of pip install (or some other command that invokes setup.py) less than 5% of the time (made-up number, but probably true). How will a warning help?

dhermes avatar Dec 19 '16 20:12 dhermes

Like via warnings?

Sure, print works just as well in this case.

Also, I look at the output of pip install (or some other command that invokes setup.py) less than 5% of the time (made-up number, but probably true). How will a warning help?

It's just due diligence. We can't track down and ask everyone who is using gcloud to "update, pretty please". What we can do is that if someone files a bug or support request it will be clearly communicated in their logs that the library is no longer supported.

This is a similar to someone using an outdated version of google-cloud - our first support impulse would be to tell them to update and see if it helps. The story is the same here, but we're just being extra explicit that this isn't supported and leaving a trail of auditability.

Also, it's very likely that users who are still on gcloud won't update from whatever version they're currently using. So even if you did the nuclear option of deploying a broken package, they still probably wouldn't notice.

theacodes avatar Dec 19 '16 21:12 theacodes

@jonparrott wouldn't using print, possibly break some people immediately on upgrade?

Bad example...but...it could put whatever our message is at the top of people's websites.

daspecster avatar Dec 19 '16 21:12 daspecster

Here's how flask does it... https://github.com/pallets/flask/blob/de1652467b0584fe9ee4060bc42101e8255838a3/flask/app.py#L553

daspecster avatar Dec 19 '16 21:12 daspecster

@daspecster how so? python setup.py install / pip install expects packages to product output on stdout. Warnings does the same but on stderr.

theacodes avatar Dec 19 '16 21:12 theacodes

Oh, I was thinking on import instead of on install.

daspecster avatar Dec 19 '16 21:12 daspecster

Could we start with a disclaimer at the top of the documentation page in PyPi? Just "this version of the library has been deprecated. Development continues in ..."

On Mon, Dec 19, 2016 at 4:09 PM Thomas Schultz [email protected] wrote:

Oh, I was thinking on import instead of on install.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/GoogleCloudPlatform/google-cloud-python/issues/2748#issuecomment-268079083, or mute the thread https://github.com/notifications/unsubscribe-auth/ARrMFsBUt-XwQGw7LsZqCsNVxMQRz1Z4ks5rJvJzgaJpZM4K1aYA .

--

Kir Titievsky | Product Manager | Google Cloud Pub/Sub

kir-titievsky avatar Dec 19 '16 21:12 kir-titievsky