From be60aafa00f2c7a6843105949e15b4acce34094c Mon Sep 17 00:00:00 2001 From: Faerbit Date: Thu, 29 Sep 2022 03:10:56 +0200 Subject: [PATCH] Improve version handling --- src/fime/__init__.py | 6 +++++- src/fime/_version.py | 5 ----- 2 files changed, 5 insertions(+), 6 deletions(-) delete mode 100644 src/fime/_version.py diff --git a/src/fime/__init__.py b/src/fime/__init__.py index f0a039d..857ee33 100644 --- a/src/fime/__init__.py +++ b/src/fime/__init__.py @@ -1 +1,5 @@ -from _version import __version__, __version_tuple__ +try: + from _version import __version__, __version_tuple__ +except ImportError: + __version__ = version = '1.0.0.dev0' + __version_tuple__ = version_tuple = (1, 0, 0, 'dev0') diff --git a/src/fime/_version.py b/src/fime/_version.py deleted file mode 100644 index 2b0c6b0..0000000 --- a/src/fime/_version.py +++ /dev/null @@ -1,5 +0,0 @@ -# coding: utf-8 -# file generated by setuptools_scm -# don't change, don't track in version control -__version__ = version = '1.0.0.dev0' -__version_tuple__ = version_tuple = (1, 0, 0, 'dev0')