File tree Expand file tree Collapse file tree 4 files changed +35
-8
lines changed Expand file tree Collapse file tree 4 files changed +35
-8
lines changed Original file line number Diff line number Diff line change 11cff-version : 1.1.0
22message : " If you use this software, please cite it as below."
33title : ' Eden-Kramer-Lab/spectral_connectivity'
4- doi : 10.5281/zenodo.4088934
4+ doi : 10.5281/zenodo.1011052
55authors :
66 - family-names : Eric
77 given-names : Denovellis
@@ -19,7 +19,7 @@ authors:
1919 orcid : https://orcid.org/0000-0003-1978-9622
2020
2121title : Eden-Kramer-Lab/spectral_connectivity
22- version : v1.0.3
23- date-released : 2022-09-14
22+ version : v1.1.0
23+ date-released : 2022-12-08
2424repository-code : https://github.com/Eden-Kramer-Lab/spectral_connectivity
2525license : GPL-3.0
Original file line number Diff line number Diff line change 33
44import os
55import shutil
6+ import re
7+ import spectral_connectivity
68
79
810# -- Project information -----------------------------------------------------
1315copyright = "2022, Eric L. Denovellis"
1416author = "Eric L. Denovellis"
1517
16- # The short X.Y version.
17- version = "1..0"
18+ # The full version, including alpha/beta/rc tags
19+
20+ # The short X.Y version (including .devXXXX, rcX, b1 suffixes if present)
21+ version = re .sub (r"(\d+\.\d+)\.\d+(.*)" , r"\1\2" , spectral_connectivity .__version__ )
22+ version = re .sub (r"(\.dev\d+).*?$" , r"\1" , version )
1823# The full version, including alpha/beta/rc tags.
19- release = "1.0.4"
24+ release = spectral_connectivity .__version__
25+ print ("%s %s" % (version , release ))
2026
2127# -- General configuration ------------------------------------------------
2228
Original file line number Diff line number Diff line change 11#!/usr/bin/env python3
22
3+ import codecs
4+ import os .path
5+
36from setuptools import find_packages , setup
47
58INSTALL_REQUIRES = [
1013]
1114TESTS_REQUIRE = ["pytest >= 2.7.1" , "nitime" ]
1215
16+
17+ def read (rel_path ):
18+ here = os .path .abspath (os .path .dirname (__file__ ))
19+ with codecs .open (os .path .join (here , rel_path ), "r" ) as fp :
20+ return fp .read ()
21+
22+
23+ def get_version (rel_path ):
24+ for line in read (rel_path ).splitlines ():
25+ if line .startswith ("__version__" ):
26+ delim = '"' if '"' in line else "'"
27+ return line .split (delim )[1 ]
28+ else :
29+ raise RuntimeError ("Unable to find version string." )
30+
31+
1332setup (
1433 name = "spectral_connectivity" ,
15- version = "1.0.4" ,
34+ version = get_version ( "spectral_connectivity/__init__.py" ) ,
1635 license = "GPL-3.0" ,
1736 description = (
1837 "Frequency domain functional and directed"
1938 "connectivity analysis tools for electrophysiological"
2039 "data"
2140 ),
2241 author = "Eric Denovellis" ,
23- author_email = "edeno@bu .edu" ,
42+ author_email = "eric.denovellis@ucsf .edu" ,
2443 url = "https://github.com/Eden-Kramer-Lab/spectral_connectivity" ,
2544 # long_description=open("README.md").read(),
2645 long_description_content_type = "text/x-rst" ,
Original file line number Diff line number Diff line change 22from spectral_connectivity .connectivity import Connectivity
33from spectral_connectivity .transforms import Multitaper
44from spectral_connectivity .wrapper import multitaper_connectivity
5+
6+ __version__ = "1.1.0"
You can’t perform that action at this time.
0 commit comments