Skip to content

Commit 3664b84

Browse files
author
Felix Erdmann
committed
Fix module imports and __init__ files - cookiecutter finally working :)
1 parent 1ff4ffa commit 3664b84

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

{{cookiecutter.project_name}}/README.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,13 @@ Here write a short description of the plugin, indicating the importers, diagnost
1919
Installation instructions
2020
=========================
2121

22-
Describe the installation instructions here. For example, how to install the plugin from
23-
the sources (cloning the repository and running `setup.py install`), or using `pip`.
22+
The pysteps plugin can be installed as a python package using ``pip`` from the local path *{{cookiecutter.project_slug}}/*.
23+
24+
Install with
25+
26+
.. code-block:: console
27+
28+
pip install {{cookiecutter.project_slug}}/
2429
2530
Test the plugin
2631
===============
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from . import {{cookiecutter.plugin_type}}
2+
3+
__all__ = ["{{cookiecutter.plugin_type}}"]
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
from {{cookiecutter.project_slug}}.diagnostic import {{cookiecutter.plugin_name}}
1+
from .{{cookiecutter.plugin_name}} import {{cookiecutter.plugin_function}}
2+
3+
__all__ = ["{{cookiecutter.plugin_name}}"]
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
from {{cookiecutter.project_slug}}.importer import {{cookiecutter.plugin_name}}
1+
from .{{cookiecutter.plugin_name}} import {{cookiecutter.plugin_function}}
2+
3+
__all__ = ["{{cookiecutter.plugin_name}}"]

0 commit comments

Comments
 (0)