build: using extras_require and console_script entry point#100
build: using extras_require and console_script entry point#100novoid merged 1 commit intonovoid:masterfrom
Conversation
Dependencies are made optional using setuptools extras_require argument. Users can now install the package via `pip install memacs[gps,rss]`. To get all the functionality, use `pip install memacs[all]` Scripts now have a main function that functions as console entry point; they're now specified as entry_points "console_scripts" with any optional dependency. During the dependencies analysis, imports were optimized using pycharm.
|
Wow, this is truly awesome. Thank you very much for this. I'll create the package soon. |
|
Hi @sanzoghenzo, |
|
hi @novoid , As the paragraph says,
So you have to use Note that memacs is always installed with all the modules, the dependences are those that can be installed (or not) via the extras declaration. |
|
Thanks for clarification - so the README is correct as it is for now.
Damn. I was not choosing the right words for my question although I knew it's about dependencies. Thanks for the correction and your help. Very much appreciated! |
Dependencies are made optional using setuptools extras_require argument.
Users can now install the package via
pip install memacs[gps,rss].To get all the functionality, use
pip install memacs[all]During the dependencies analysis, imports were optimized using pycharm.
Scripts now have a main function that functions as console entry point;
they're now specified as entry_points "console_scripts" to be cross-platform compatible.
I also moved from "scripts" to "console_scripts" because setuptools documentation states that, after specifying the "extra" required for an entry point,
Unfortunately I wasn't able to reproduce this behavior, the scripts are all installed and running them doesn't result in the display message.