Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
RFC: Makefile based boilerplate for python projects #1756
This PR adds a boilerplate for shorter development cycles. Its build from a subset of makefiles I used since years / boilerplate.
I really like to have such handy make targets and the smooth emacs integration, hope other see the benefit also ..
BTW: this series starts with a bugfix of setup.py, which is not special to this PR
setup(..) named arguments 'install_requires' and 'extras_require' need lists arguments, the <map object> is ignored when installing extra environment 'test':: pip install -e .\[test\] Signed-off-by: Markus Heiser <firstname.lastname@example.org>
Add *Makefile* boilerplate useful for python projects. All python tasks are using a virtualenv from ./local/py3 $ make help run - run developer instance install - developer install (./local) uninstall - uninstall (./local) Signed-off-by: Markus Heiser <email@example.com>
The .dir-locals.el set the project's python enviroment for the emacs tasks like flycheck or jedi. The py-environment has to be next to <repo>/.dir-locals.el:: ./local/py3 To setup such an environment build target 'pyenv' or 'pyenvinstall':: $ make pyenvinstall TL;DR Alternatively create the virtualenv, source it and install jedi + epc (required by `emacs-jedi <https://tkf.github.io/emacs-jedi>`_):: $ virtualenv --python=python3 "--no-site-packages" ./local/py3 ... $ source ./local/py3/bin/activate (py3)$ # now install into the activated 'py3' environment .. (py3)$ pip install jedi epc ... Signed-off-by: Markus Heiser <firstname.lastname@example.org>