From 5b6abf7a307609163cb289e6184a63044bd9061a Mon Sep 17 00:00:00 2001 From: Michael Panchenko Date: Mon, 29 Apr 2024 14:26:11 +0200 Subject: [PATCH] More project_name -> package_name --- {{cookiecutter.project_name}}/docs/autogen_rst.py | 2 +- {{cookiecutter.project_name}}/docs/spelling_wordlist.txt | 1 + {{cookiecutter.project_name}}/pyproject.toml | 2 +- .../__init__.py | 0 .../sample_module.py | 0 .../sample_package/__init__.py | 0 .../sample_package/sample_module.py | 0 7 files changed, 3 insertions(+), 2 deletions(-) rename {{cookiecutter.project_name}}/src/{{{cookiecutter.project_name}} => {{cookiecutter.package_name}}}/__init__.py (100%) rename {{cookiecutter.project_name}}/src/{{{cookiecutter.project_name}} => {{cookiecutter.package_name}}}/sample_module.py (100%) rename {{cookiecutter.project_name}}/src/{{{cookiecutter.project_name}} => {{cookiecutter.package_name}}}/sample_package/__init__.py (100%) rename {{cookiecutter.project_name}}/src/{{{cookiecutter.project_name}} => {{cookiecutter.package_name}}}/sample_package/sample_module.py (100%) diff --git a/{{cookiecutter.project_name}}/docs/autogen_rst.py b/{{cookiecutter.project_name}}/docs/autogen_rst.py index bf8cd8a..e832287 100644 --- a/{{cookiecutter.project_name}}/docs/autogen_rst.py +++ b/{{cookiecutter.project_name}}/docs/autogen_rst.py @@ -145,7 +145,7 @@ def make_rst(src_root, rst_root, clean=False, overwrite=False, package_prefix="" logging.basicConfig(level=logging.INFO) docs_root = Path(__file__).parent make_rst( - docs_root / ".." / "src" / "{{cookiecutter.project_name}}", + docs_root / ".." / "src" / "{{cookiecutter.package_name}}", docs_root / "03_api", clean=True, ) diff --git a/{{cookiecutter.project_name}}/docs/spelling_wordlist.txt b/{{cookiecutter.project_name}}/docs/spelling_wordlist.txt index f85fd14..d42b61d 100644 --- a/{{cookiecutter.project_name}}/docs/spelling_wordlist.txt +++ b/{{cookiecutter.project_name}}/docs/spelling_wordlist.txt @@ -1,6 +1,7 @@ {{cookiecutter.project_name}} {{cookiecutter.package_name}} {{cookiecutter.author}} +{{cookiecutter.github_username}} appliedAI autogenerated diff --git a/{{cookiecutter.project_name}}/pyproject.toml b/{{cookiecutter.project_name}}/pyproject.toml index cd9b6a1..0a119a9 100644 --- a/{{cookiecutter.project_name}}/pyproject.toml +++ b/{{cookiecutter.project_name}}/pyproject.toml @@ -129,7 +129,7 @@ move-optionals-to-bottom = true PYDEVD_DISABLE_FILE_VALIDATION="1" # keep relevant parts in sync with pre-commit [tool.poe.tasks] # https://github.com/nat-n/poethepoet -test = "pytest test --cov={{cookiecutter.project_name}} --cov-report=xml --cov-report=term-missing --durations=0 -v --color=yes" +test = "pytest test --cov={{cookiecutter.package_name}} --cov-report=xml --cov-report=term-missing --durations=0 -v --color=yes" # Adjust to a smaller set of tests if appropriate test-subset = "pytest test --color=yes" _black_check = "black --check ." diff --git a/{{cookiecutter.project_name}}/src/{{cookiecutter.project_name}}/__init__.py b/{{cookiecutter.project_name}}/src/{{cookiecutter.package_name}}/__init__.py similarity index 100% rename from {{cookiecutter.project_name}}/src/{{cookiecutter.project_name}}/__init__.py rename to {{cookiecutter.project_name}}/src/{{cookiecutter.package_name}}/__init__.py diff --git a/{{cookiecutter.project_name}}/src/{{cookiecutter.project_name}}/sample_module.py b/{{cookiecutter.project_name}}/src/{{cookiecutter.package_name}}/sample_module.py similarity index 100% rename from {{cookiecutter.project_name}}/src/{{cookiecutter.project_name}}/sample_module.py rename to {{cookiecutter.project_name}}/src/{{cookiecutter.package_name}}/sample_module.py diff --git a/{{cookiecutter.project_name}}/src/{{cookiecutter.project_name}}/sample_package/__init__.py b/{{cookiecutter.project_name}}/src/{{cookiecutter.package_name}}/sample_package/__init__.py similarity index 100% rename from {{cookiecutter.project_name}}/src/{{cookiecutter.project_name}}/sample_package/__init__.py rename to {{cookiecutter.project_name}}/src/{{cookiecutter.package_name}}/sample_package/__init__.py diff --git a/{{cookiecutter.project_name}}/src/{{cookiecutter.project_name}}/sample_package/sample_module.py b/{{cookiecutter.project_name}}/src/{{cookiecutter.package_name}}/sample_package/sample_module.py similarity index 100% rename from {{cookiecutter.project_name}}/src/{{cookiecutter.project_name}}/sample_package/sample_module.py rename to {{cookiecutter.project_name}}/src/{{cookiecutter.package_name}}/sample_package/sample_module.py