-
Notifications
You must be signed in to change notification settings - Fork 24
Fix entrypoint for console script #336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
@km-64 the intention here was to avoid installing the rsocket-py command if the [cli] option was not specified on install. In general the rsocket package does not require any dependencies to be installed. all extra requirements are for additionally specified option on install (eg. [cli], [aiohttp]). Installing the script indeed does not work. Please fix the command line python script to avoid it failing due to missing import of asynclick, and if it doesn't exist there should be a message. something like : print("This command requires the CLI extra.") |
@km-64 on a side note, and since i have no other way of communicating with you: |
Yeah I was thinking about something like that. It looked like the FastAPI actually separates the cli code into a separate package to achieve this behaviour. Maybe we could do something similar? |
I think that's overkill. i'll test your pr and merge when i get a chance. thanks |
I sent you an email with some contact info to the address I found in your commits |
It looks like the current
setup.cfg
console script entrypoint doesn't conform to the setuptools docs https://setuptools.pypa.io/en/latest/userguide/entry_point.html#console-scripts