[Distutils] How to deprecate a python package

Alexander Walters tritium-list at sdamon.com
Tue Apr 5 18:47:08 EDT 2016

I am not 100% sure if pip will let stderr messages though, but i THINK 
it does.  Warnings on import will work regardless.

Honestly, I don't care if its marginally easier (and it would only be 
marginally easier) to mark a package deprecated by flipping a bit on the 
site - it's the last thing they will ever do with the package.

On 4/5/2016 18:40, Alex Grönholm wrote:
> Wouldn't my suggestion or Glyph's be easier for the maintainers? That 
> way they wouldn't even have to make a new release, just modify a 
> setting on the package settings page on PyPI.
> Also, are you going you see the warning if it's emitted on installation?
> 06.04.2016, 01:37, Alexander Walters kirjoitti:
>> On 4/5/2016 18:34, Glyph wrote:
>>> Perhaps, before anyone tries to make pip doing something mechanical 
>>> about deprecations, we should just have the website itself do this 
>>> sort of redirect?  Removing the download would be drastic; giving 
>>> people an interstitial that says "This package is no longer 
>>> maintained, please use $X instead" would be very informative.
>>> -glyph
>> I don't remember the last time I used the pypi website.  I use pypi 
>> every day.  I don't know if I am weird, but redirecting web views 
>> would do nothing for me.  Redirecting packages is pure evil.
>> I really think the best course of action is for the maintainer to 
>> release a final version of the package that warns on install and import.
>> _______________________________________________
>> Distutils-SIG maillist  -  Distutils-SIG at python.org
>> https://mail.python.org/mailman/listinfo/distutils-sig
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> https://mail.python.org/mailman/listinfo/distutils-sig

More information about the Distutils-SIG mailing list