Skip to content

Commit

Permalink
[WIP] ModuleNotFound Error Fix (#115)
Browse files Browse the repository at this point in the history
* reponame vs packagename fix

* added test and tweaked version determination

* linting

* linting

* linting

* debugging github actions- is pip installing into correct env within test?

* remove redundant tests

* Authors + Changelog + Removed unused import

---------

Co-authored-by: Lily Wang <[email protected]>
  • Loading branch information
ljwoods2 and lilyminium authored May 28, 2024
1 parent 961a9f8 commit 11fdc10
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
3 changes: 3 additions & 0 deletions AUTHORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ The rules for this file:
- Ian Kenney \<@ianmkenney\>
- Rocco Meli \<@RMeli\>
- Oliver Beckstein \<@orbeckst\>

**2024**
- Lawson Woods \<@ljwoods2\>
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ The rules for this file:
- ianmkenney
- RMeli
- orbeckst
- ljwoods2

### Added
<!-- New added features -->
- Fixed ModuleNotFound after installation (Issue #113, PR #115)
- Add black configurartion to `pyproject.toml` (Issue #73, PR #75)
- Cookiecutter version dependency (Issue #33, PR #46)
- Configuration files for external hooks (PR #9)
Expand Down
1 change: 0 additions & 1 deletion tests/test_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from .utils import CookiecutterMDAKit, DependencyType


class TestAnalysis:

@pytest.mark.parametrize("analysis_name", ["", "Press Enter to skip"])
Expand Down
6 changes: 3 additions & 3 deletions {{cookiecutter.repo_name}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ doc = [
# source = "https://github.com/{{cookiecutter.github_url}}"
# documentation = "https://{{cookiecutter.repo_name}}.readthedocs.io"

[tool.setuptools]
py-modules = []
[tool.setuptools.packages.find]
include = ["{{cookiecutter.package_name}}"]

[tool.pytest.ini_options]
minversion = "6.0"
testpaths = [
"{{cookiecutter.repo_name}}/tests",
"{{cookiecutter.package_name}}/tests",
]

[tool.black]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Add imports here
from importlib.metadata import version

__version__ = version("{{cookiecutter.package_name}}")
__version__ = version("{{cookiecutter.repo_name}}")

0 comments on commit 11fdc10

Please sign in to comment.