Skip to content

Commit

Permalink
Remove boilerplate code
Browse files Browse the repository at this point in the history
No need for all that now that we only support Python 3.9+

Signed-off-by: Aurélien Bompard <[email protected]>
  • Loading branch information
abompard committed Jun 2, 2022
1 parent 42870a2 commit d964295
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions noggin/__init__.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
# Set the version
try:
import importlib.metadata
import importlib.metadata

__version__ = importlib.metadata.version("noggin-aaa")
except ImportError:
try:
import pkg_resources

try:
__version__ = pkg_resources.get_distribution("noggin-aaa").version
except pkg_resources.DistributionNotFound:
# The app is not installed, but the flask dev server can run it nonetheless.
__version__ = None
except ImportError:
__version__ = None
__version__ = importlib.metadata.version("noggin-aaa")

0 comments on commit d964295

Please sign in to comment.