File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ def readme():
88
99configuration = {
1010 "name" : "stumpy" ,
11- "version" : "1.0" ,
11+ "version" : "1.0.0 " ,
1212 "python_requires=" : ">=3.5" ,
1313 "author" : "Sean M. Law" ,
1414 "author_email" : "seanmylaw@gmail.com" ,
Original file line number Diff line number Diff line change 1717)
1818from .mstumped import mstumped # noqa: F401
1919from .chains import atsc , allc # noqa: F401
20+
21+ from pkg_resources import get_distribution , DistributionNotFound
22+ import os .path
23+
24+ try :
25+ _dist = get_distribution ("stumpy" )
26+ # Normalize case for Windows systems
27+ dist_loc = os .path .normcase (_dist .location )
28+ here = os .path .normcase (__file__ )
29+ if not here .startswith (os .path .join (dist_loc , "stumpy" )):
30+ # not installed, but there is another version that *is*
31+ raise DistributionNotFound
32+ except DistributionNotFound :
33+ __version__ = "Please install this project with setup.py"
34+ else :
35+ __version__ = _dist .version
You can’t perform that action at this time.
0 commit comments