Opened 3 years ago

Closed 2 years ago

#21845 closed Cleanup/optimization (wontfix)

Deprecate .py suffix for

Reported by: apollo13 Owned by: nobody
Component: Core (Management commands) Version: master
Severity: Normal Keywords:
Cc: berker.peksag@… Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


We need to find a nice way to deprecate Warnings probably won't work, we might wanna resort to "print(file=sys.stderr)". Docs also need updates :/

Change History (8)

comment:1 Changed 3 years ago by timo

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 3 years ago by carljm

Is there some missing context to this ticket? Is it just the .py suffix we're deprecating, or the script itself? If the latter, how are we expecting people to run startproject?

comment:3 Changed 3 years ago by mjtamlyn

I believe it's the .py suffix. In order to make the script executable on windows, we're now using a setuptools entry point. This is however impossible with a .py suffix. (I think)

comment:4 Changed 2 years ago by claudep

  • Summary changed from Deprecate to Deprecate .py suffix for

comment:5 Changed 2 years ago by apollo13

Fwiw, we don't have to deprecate it and can just install both variants, if we think the deprecation isn't worth it -- eg to many programs relying on it.

comment:6 Changed 2 years ago by berkerpeksag

  • Cc berker.peksag@… added

comment:7 Changed 2 years ago by timo

  • Severity changed from Release blocker to Normal

Both variants are installed as of #21827. I tend to think deprecation may not be worth it as it doesn't seem like we gain very much besides perhaps reduced confusion from not having two ways to do the same thing). I'll leave the ticket open, but I'm unmarking it as a release blocker.

comment:8 Changed 2 years ago by timgraham

  • Resolution set to wontfix
  • Status changed from new to closed

Doc updates were made in #23067. I'll close this for now until someone comes up with a good reason why we need to deprecate the .py variant.

Note: See TracTickets for help on using tickets.
Back to Top