From ad9d5a5b0287693b5055212068ac38ad05a73158 Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Sun, 20 Sep 2020 11:37:54 +0100 Subject: [PATCH] Moved package source under lib Follows development guidelines regarding avoiding root level modules. --- .pre-commit-config.yaml | 2 +- {gri => lib/gri}/__init__.py | 0 {gri => lib/gri}/__main__.py | 0 {gri => lib/gri}/console.py | 0 {gri => lib/gri}/gerrit.py | 0 {gri => lib/gri}/review.py | 0 setup.cfg | 4 +++- 7 files changed, 4 insertions(+), 2 deletions(-) rename {gri => lib/gri}/__init__.py (100%) rename {gri => lib/gri}/__main__.py (100%) rename {gri => lib/gri}/console.py (100%) rename {gri => lib/gri}/gerrit.py (100%) rename {gri => lib/gri}/review.py (100%) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3a50c70..cbd2dc6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -46,7 +46,7 @@ repos: - id: mypy # empty args needed in order to match mypy cli behavior args: [] - entry: mypy gri/ + entry: mypy lib/ pass_filenames: false additional_dependencies: - click-help-colors diff --git a/gri/__init__.py b/lib/gri/__init__.py similarity index 100% rename from gri/__init__.py rename to lib/gri/__init__.py diff --git a/gri/__main__.py b/lib/gri/__main__.py similarity index 100% rename from gri/__main__.py rename to lib/gri/__main__.py diff --git a/gri/console.py b/lib/gri/console.py similarity index 100% rename from gri/console.py rename to lib/gri/console.py diff --git a/gri/gerrit.py b/lib/gri/gerrit.py similarity index 100% rename from gri/gerrit.py rename to lib/gri/gerrit.py diff --git a/gri/review.py b/lib/gri/review.py similarity index 100% rename from gri/review.py rename to lib/gri/review.py diff --git a/setup.cfg b/setup.cfg index d0c6603..7da229e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -36,6 +36,8 @@ classifiers = [options] use_scm_version = True python_requires = >=3.6 +package_dir = + = lib packages = find: include_package_data = True zip_safe = False @@ -47,7 +49,7 @@ install_requires = rich>=6.2.0 [options.packages.find] -where = . +where = lib [options.entry_points] console_scripts =