From ceb8857c0c8c468346efbea47be47ad2f422609b Mon Sep 17 00:00:00 2001 From: Luko van der Maas Date: Thu, 3 Oct 2024 14:29:08 +0200 Subject: [PATCH] Make models and family modules to allow importing them --- paynt/family/__init__.py | 10 ++++++++++ paynt/models/__init__.py | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100644 paynt/family/__init__.py create mode 100644 paynt/models/__init__.py diff --git a/paynt/family/__init__.py b/paynt/family/__init__.py new file mode 100644 index 00000000..343a1ca8 --- /dev/null +++ b/paynt/family/__init__.py @@ -0,0 +1,10 @@ +__version__ = "unknown" + +try: + from .._version import __version__ +except ImportError: + # We're running in a tree that doesn't have a _version.py, so we don't know what our version is. + pass + +def version(): + return __version__ \ No newline at end of file diff --git a/paynt/models/__init__.py b/paynt/models/__init__.py new file mode 100644 index 00000000..343a1ca8 --- /dev/null +++ b/paynt/models/__init__.py @@ -0,0 +1,10 @@ +__version__ = "unknown" + +try: + from .._version import __version__ +except ImportError: + # We're running in a tree that doesn't have a _version.py, so we don't know what our version is. + pass + +def version(): + return __version__ \ No newline at end of file