Skip to content

Commit

Permalink
some cleaning of init and rever
Browse files Browse the repository at this point in the history
  • Loading branch information
sbillinge committed Jul 24, 2024
1 parent 2ef70d9 commit 766f597
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 22 deletions.
18 changes: 0 additions & 18 deletions rever.xsh

This file was deleted.

10 changes: 8 additions & 2 deletions src/regolith/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,16 @@
from xonsh.built_ins import XSH
from xonsh.execer import Execer

from regolith.version import __version__

"""A Research group database management system"""

# silence the pyflakes syntax checker
assert __version__ or True


XSH.load(execer=Execer())
execer = XSH.execer
xonsh.imphooks.install_import_hooks(execer=execer)

__version__ = "0.8.2"

del xonsh
14 changes: 12 additions & 2 deletions src/regolith/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
#
# regolith by DANSE Diffraction group
# Simon J. L. Billinge
# (c) 2011 The Trustees of Columbia University
# (c) 2011-2024 The Trustees of Columbia University
# in the City of New York. All rights reserved.
#
# File coded by: Pavol Juhas
# File coded by: Pavol Juhas, Simon Billinge
#
# See AUTHORS.txt for a list of people who contributed.
# See LICENSE_DANSE.txt for license information.
Expand Down Expand Up @@ -55,4 +55,14 @@

del cp

# from cookiecutter in case we want to migrate later:
#
# # We do not use the other three variables, but can be added back if needed.
# # __all__ = ["__date__", "__git_commit__", "__timestamp__", "__version__"]

# # obtain version information
# from importlib.metadata import version
#
# __version__ = version("regolith")

# End of file

0 comments on commit 766f597

Please sign in to comment.