Skip to content

Commit

Permalink
Bump version number
Browse files Browse the repository at this point in the history
  • Loading branch information
edeno committed Dec 9, 2022
1 parent 226ebca commit 78cb93d
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 8 deletions.
6 changes: 3 additions & 3 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cff-version: 1.1.0
message: "If you use this software, please cite it as below."
title: 'Eden-Kramer-Lab/spectral_connectivity'
doi: 10.5281/zenodo.4088934
doi: 10.5281/zenodo.1011052
authors:
- family-names: Eric
given-names: Denovellis
Expand All @@ -19,7 +19,7 @@ authors:
orcid: https://orcid.org/0000-0003-1978-9622

title: Eden-Kramer-Lab/spectral_connectivity
version: v1.0.3
date-released: 2022-09-14
version: v1.1.0
date-released: 2022-12-08
repository-code: https://github.com/Eden-Kramer-Lab/spectral_connectivity
license: GPL-3.0
12 changes: 9 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

import os
import shutil
import re
import spectral_connectivity


# -- Project information -----------------------------------------------------
Expand All @@ -13,10 +15,14 @@
copyright = "2022, Eric L. Denovellis"
author = "Eric L. Denovellis"

# The short X.Y version.
version = "1..0"
# The full version, including alpha/beta/rc tags

# The short X.Y version (including .devXXXX, rcX, b1 suffixes if present)
version = re.sub(r"(\d+\.\d+)\.\d+(.*)", r"\1\2", spectral_connectivity.__version__)
version = re.sub(r"(\.dev\d+).*?$", r"\1", version)
# The full version, including alpha/beta/rc tags.
release = "1.0.4"
release = spectral_connectivity.__version__
print("%s %s" % (version, release))

# -- General configuration ------------------------------------------------

Expand Down
23 changes: 21 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/env python3

import codecs
import os.path

from setuptools import find_packages, setup

INSTALL_REQUIRES = [
Expand All @@ -10,17 +13,33 @@
]
TESTS_REQUIRE = ["pytest >= 2.7.1", "nitime"]


def read(rel_path):
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, rel_path), "r") as fp:
return fp.read()


def get_version(rel_path):
for line in read(rel_path).splitlines():
if line.startswith("__version__"):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
else:
raise RuntimeError("Unable to find version string.")


setup(
name="spectral_connectivity",
version="1.0.4",
version=get_version("spectral_connectivity/__init__.py"),
license="GPL-3.0",
description=(
"Frequency domain functional and directed"
"connectivity analysis tools for electrophysiological"
"data"
),
author="Eric Denovellis",
author_email="edeno@bu.edu",
author_email="eric.denovellis@ucsf.edu",
url="https://github.com/Eden-Kramer-Lab/spectral_connectivity",
# long_description=open("README.md").read(),
long_description_content_type="text/x-rst",
Expand Down
2 changes: 2 additions & 0 deletions spectral_connectivity/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
from spectral_connectivity.connectivity import Connectivity
from spectral_connectivity.transforms import Multitaper
from spectral_connectivity.wrapper import multitaper_connectivity

__version__ = "1.1.0"

0 comments on commit 78cb93d

Please sign in to comment.