Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some cleaning of init and rever #1160

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading