Skip to content

Commit 8df5f87

Browse files
Consolidated version spec into one file
1 parent fc91277 commit 8df5f87

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

mkl_fft/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
from ._pydfti import (fft, ifft, fft2, ifft2, fftn, ifftn, rfft, irfft,
2828
rfft_numpy, irfft_numpy, rfftn_numpy, irfftn_numpy)
2929

30-
__version__ = '1.0.4'
30+
from .version import __version__
31+
3132
__all__ = ['fft', 'ifft', 'fft2', 'ifft2', 'fftn', 'ifftn', 'rfft', 'irfft',
3233
'rfft_numpy', 'irfft_numpy', 'rfftn_numpy', 'irfftn_numpy']

mkl_fft/_version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = '1.0.5'

setup.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2626

2727
from __future__ import division, print_function, absolute_import
28+
import io
29+
import re
2830

29-
MAJOR = 1
30-
MINOR = 0
31-
MICRO = 4
32-
ISRELEASED = False
31+
with io.open('mkl_fft/_version.py', 'rt', encoding='utf8') as f:
32+
version = re.search(r'__version__ = \'(.*?)\'', f.read()).group(1)
3333

34-
VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO)
34+
VERSION = version
3535

3636
CLASSIFIERS = """\
3737
Development Status :: 5 - Production/Stable

0 commit comments

Comments
 (0)