-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change: Rename
bottle.py
script install to bottle
docs: Update details on CLI use, release notes, and minor other changes Naming the script command `bottle.py` breaks with a circular import error because that script tries to `import bottle` and finds itself on the module search path instead of the actual bottle module. This worked with setuptools because instead of as small entrypoint script, setuptools generated wheels copied the entire contents of bottle.py into the bin/Scripts path of the environment (and bottle fixed sys.modules at runtime). This is no longer feasible with modern pyproject.toml script entrypoints and the only sensible way moving forward is to rename the `bottle.py` script entrypoint to just `bottle` and deprecate the old name in Bottle 0.13. Hint: You can still execute bottle.py directly or via `python -m bottle`. The only change is that the command installed by pip into the bin/Scripts folder of the (virtual) environment is now called `bottle`.
- Loading branch information
Showing
5 changed files
with
37 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters