Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

RFC: Makefile based boilerplate for python projects #1756

Merged
merged 9 commits into from Dec 10, 2019
Merged

RFC: Makefile based boilerplate for python projects #1756

merged 9 commits into from Dec 10, 2019

Commits on Nov 28, 2019

  1. seatup.py: fix [dev_]requirements and open file with context

    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 <markus.heiser@darmarit.de>
    return42 committed Nov 28, 2019
    Configuration menu
    Copy the full SHA
    a56c56e View commit details
    Browse the repository at this point in the history
  2. boilerplate: add inital Makefile with run & install targets

    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 <markus.heiser@darmarit.de>
    return42 committed Nov 28, 2019
    Configuration menu
    Copy the full SHA
    b55a800 View commit details
    Browse the repository at this point in the history
  3. Makefile: add test.pep8 test.unit test.robot (from manage.sh)

    Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
    return42 committed Nov 28, 2019
    Configuration menu
    Copy the full SHA
    7e572a2 View commit details
    Browse the repository at this point in the history
  4. boilerplate: add pylint / WIP: balance linting with pylint

    Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
    return42 committed Nov 28, 2019
    Configuration menu
    Copy the full SHA
    796197d View commit details
    Browse the repository at this point in the history
  5. boilerplate: add .dir-locals.el with emacs python enviroment

    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 <markus.heiser@darmarit.de>
    return42 committed Nov 28, 2019
    Configuration menu
    Copy the full SHA
    62a4b74 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    147f40c View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2019

  1. .dir-locals.el: add some comments about jedi & EPC

    Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
    return42 committed Nov 29, 2019
    Configuration menu
    Copy the full SHA
    52450fd View commit details
    Browse the repository at this point in the history

Commits on Dec 3, 2019

  1. Configuration menu
    Copy the full SHA
    1b90e14 View commit details
    Browse the repository at this point in the history

Commits on Dec 10, 2019

  1. Configuration menu
    Copy the full SHA
    7beb49b View commit details
    Browse the repository at this point in the history