Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Resolve versioning for lincbrain CLI tool #6

Merged
merged 15 commits into from
Jan 29, 2024
Merged
4 changes: 2 additions & 2 deletions .autorc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"onlyPublishWithReleaseLabel": true,
"baseBranch": "master",
"author": "DANDI Bot <team@dandiarchive.org>",
"author": "LINC Bot <team@lincbrain.org>",
"noVersionPrefix": true,
"plugins": [
"git-tag",
Expand All @@ -12,5 +12,5 @@
}
],
"released"
]
]``
}
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lincbrain/_version.py export-subst
Empty file removed .pypirc
Empty file.
8 changes: 4 additions & 4 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@

# -- Project information -----------------------------------------------------

import dandi
import lincbrain

project = "dandi"
project = "lincbrain"
copyright = "2021-2023, DANDI Team"
author = "DANDI Team"

# The full version, including alpha/beta/rc tags
version = dandi.__version__
release = dandi.__version__
version = lincbrain.__version__
release = lincbrain.__version__


# -- General configuration ---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion docs/source/examples/dandiapi-as_readable.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from dandi.dandiapi import DandiAPIClient
from lincbrain.dandiapi import DandiAPIClient

dandiset_id = "000006" # ephys dataset from the Svoboda Lab
filepath = "sub-anm372795/sub-anm372795_ses-20170718.nwb" # 450 kB file
Expand Down
2 changes: 1 addition & 1 deletion docs/source/examples/dandiapi-example.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import json

from dandi.dandiapi import DandiAPIClient
from lincbrain.dandiapi import DandiAPIClient

with DandiAPIClient.for_dandi_instance("dandi") as client:
for dandiset in client.get_dandisets():
Expand Down
4 changes: 4 additions & 0 deletions dandi/__init__.py → lincbrain/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,7 @@ def set_logger_level(lgr, level):

lgr = get_logger()
set_logger_level(lgr, os.environ.get("DANDI_LOG_LEVEL", logging.INFO))

from . import _version # noqa: E402

__version__ = _version.get_versions()["version"]
Loading
Loading