Setups click completion after install.
Project description
Click Completion Installer
Helps setting up click-completion when a pip package with click is installed. Supports
- bash
- fish (currently not implemented)
- zsh (currently not implemented)
Using in your setup.py (setuptools)
- append as requirement to your setup.py
REQUIRED = [ 'click', 'inquirer', 'arrow', 'pathlib', 'click-completion-helper', 'click-default-group' ]
...
class InstallCommand(install):
def run(self):
install.run(self)
self.setup_click_autocompletion()
def setup_click_autocompletion(self):
for console_script in setup_cfg['options']['entry_points']['console_scripts']:
console_call = console_script.split("=")[0].strip()
# if click completion helper is fresh installed and not available now
subprocess.run([
"click-completion-helper",
"setup",
console_call,
])
setup(
...
setup_requires=['click-completion-helper', ...],
...
)
or in setup.cfg:
[options]
setup_requires =
click-completion-helper
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for click-completion-helper-0.0.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2cd9a6c76dbd4ca2d84c8dd5b6197534683b652aa1850d08edc4c366bf7a6d4 |
|
MD5 | 2508ee61da425d8ddf11f309e24c186f |
|
BLAKE2b-256 | c3680546d7b7081cc773b2a66b5b81d68e949955a14fc7051293bb0bfba55bb8 |