We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96eaf26 commit a7b0bd3Copy full SHA for a7b0bd3
mrmat_python_api_flask/__init__.py
@@ -44,7 +44,12 @@
44
log = logging.getLogger(__name__)
45
console = Console()
46
47
-__version__ = importlib.metadata.version('mrmat-python-api-flask')
+try:
48
+ __version__ = importlib.metadata.version('mrmat-python-api-flask')
49
+except importlib.metadata.PackageNotFoundError:
50
+ # You have not actually installed the wheel yet. We may be within CI so pick that version or fall back
51
+ __version__ = os.environ.get('MRMAT_VERSION', '0.0.0.dev0')
52
+
53
db = SQLAlchemy()
54
ma = Marshmallow()
55
migrate = Migrate()
0 commit comments