Skip to content

Commit 78cb93d

Browse files
committed
Bump version number
1 parent 226ebca commit 78cb93d

File tree

4 files changed

+35
-8
lines changed

4 files changed

+35
-8
lines changed

CITATION.cff

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cff-version: 1.1.0
22
message: "If you use this software, please cite it as below."
33
title: 'Eden-Kramer-Lab/spectral_connectivity'
4-
doi: 10.5281/zenodo.4088934
4+
doi: 10.5281/zenodo.1011052
55
authors:
66
- family-names: Eric
77
given-names: Denovellis
@@ -19,7 +19,7 @@ authors:
1919
orcid: https://orcid.org/0000-0003-1978-9622
2020

2121
title: 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
2424
repository-code: https://github.com/Eden-Kramer-Lab/spectral_connectivity
2525
license: GPL-3.0

docs/conf.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
import os
55
import shutil
6+
import re
7+
import spectral_connectivity
68

79

810
# -- Project information -----------------------------------------------------
@@ -13,10 +15,14 @@
1315
copyright = "2022, Eric L. Denovellis"
1416
author = "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

setup.py

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/usr/bin/env python3
22

3+
import codecs
4+
import os.path
5+
36
from setuptools import find_packages, setup
47

58
INSTALL_REQUIRES = [
@@ -10,17 +13,33 @@
1013
]
1114
TESTS_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+
1332
setup(
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",

spectral_connectivity/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
from spectral_connectivity.connectivity import Connectivity
33
from spectral_connectivity.transforms import Multitaper
44
from spectral_connectivity.wrapper import multitaper_connectivity
5+
6+
__version__ = "1.1.0"

0 commit comments

Comments
 (0)