Skip to content

Commit

Permalink
Add .gitarchival to allow retrieval of version number when installing…
Browse files Browse the repository at this point in the history
… from a Git archive
  • Loading branch information
hoechenberger committed Dec 11, 2023
1 parent fbed704 commit c0da180
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .git_archival.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node: $Format:%H$
node-date: $Format:%cI$
describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$
ref-names: $Format:%D$
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.git_archival.txt export-subst
2 changes: 1 addition & 1 deletion openneuro/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
__version__ = metadata.version("openneuro-py")
except metadata.PackageNotFoundError:
# package is not installed
pass
__version__ = "0.0.0"

from ._download import download, login # noqa: F401

0 comments on commit c0da180

Please sign in to comment.