Skip to content

Commit

Permalink
Release 0.1.28
Browse files Browse the repository at this point in the history
Fix importlib
  • Loading branch information
holgern committed Feb 21, 2022
1 parent 454bd8c commit 62515d5
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 4 deletions.
18 changes: 18 additions & 0 deletions doc/release/0.1.28-notes.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
=============================
PyEDFlib 0.1.28 Release Notes
=============================

.. contents::

- fix importlib

Authors
=======

* Holger Nahrstaedt

Issues closed for v0.1.28
-------------------------

Pull requests for v0.1.28
-------------------------
1 change: 1 addition & 0 deletions doc/source/release.0.1.28.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.. include:: ../release/0.1.28-notes.rst
11 changes: 7 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

MAJOR = 0
MINOR = 1
MICRO = 27
MICRO = 28
ISRELEASED = True
VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO)

Expand Down Expand Up @@ -128,9 +128,12 @@ def get_version_info():
GIT_REVISION = git_version()
elif os.path.exists('pyedflib/version.py'):
# must be a source distribution, use existing version file
# load it as a separate module to not load pywt/__init__.py
import importlib
version = importlib.import_module('pyedflib.version', 'pyedflib/version.py')
# load it as a separate module to not load pyedflib/__init__.py
import types
from importlib.machinery import SourceFileLoader
loader = SourceFileLoader('pyedflib.version', 'pyedflib/version.py')
version = types.ModuleType(loader.name)
loader.exec_module(version)
GIT_REVISION = version.git_revision
else:
GIT_REVISION = "Unknown"
Expand Down

0 comments on commit 62515d5

Please sign in to comment.