Skip to content

Commit

Permalink
Replace version information mechansim
Browse files Browse the repository at this point in the history
For now the version and iformation will be updated using a git hook and nox target.
When the project is upgraded to 3.8 we should replace this mechanism by
the use of importlib.metadata.

see also:
* #145 (comment)
* python-poetry/poetry#2366 (comment)
* #135 (comment)
  • Loading branch information
Nicoretti committed Jun 1, 2022
1 parent 286305a commit 4ea0d5e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions sqlalchemy_exasol/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
try:
from ._version import version as __version__
except ImportError: # pragma: no cover
__version__ = "unknown"

from version import VERSION
from sqlalchemy_exasol import base, pyodbc
__version__ = VERSION

# default dialect
base.dialect = pyodbc.dialect
Expand Down

0 comments on commit 4ea0d5e

Please sign in to comment.