Add CLI entry point umd

- add the following file:
  + src/urban_meal_delivery/console.py => click-based CLI tools
  + tests/test_console.py => tests for the module above
- add a CLI entry point `umd`:
  + implement the --version / -V option
    to show the installed package's version
  + rework to package's top-level:
    * add a __pkg_name__ variable to parameterize the package name
  + add unit and integration tests
- fix that pylint cannot know the proper order of imports in the
  isolated nox session
This commit is contained in:
Alexander Hess 2020-08-04 21:14:40 +02:00
commit 97d714d9ee
Signed by: alexander
GPG key ID: 344EA5AB10D868E0
7 changed files with 196 additions and 15 deletions

View file

@ -27,6 +27,8 @@ repository = "https://github.com/webartifex/urban-meal-delivery"
[tool.poetry.dependencies]
python = "^3.8"
click = "^7.1.2"
[tool.poetry.dev-dependencies]
# Task Runners
nox = "^2020.5.24"
@ -51,3 +53,6 @@ wemake-python-styleguide = "^0.14.1" # flake8 plug-in
packaging = "^20.4" # used to test the packaged version
pytest = "^6.0.1"
pytest-cov = "^2.10.0"
[tool.poetry.scripts]
umd = "urban_meal_delivery.console:main"