Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • mattwala/sumpy
  • isuruf/sumpy
  • xywei/sumpy
  • inducer/sumpy
  • fikl2/sumpy
  • ben_sepanski/sumpy
6 results
Show changes
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
from __future__ import division, absolute_import
from __future__ import annotations
__copyright__ = "Copyright (C) 2014 Andreas Kloeckner"
......@@ -22,29 +23,22 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
"""
# {{{ find install- or run-time git revision
from importlib import metadata
from pytools import find_module_git_revision
import os
if os.environ.get("AKPYTHON_EXEC_FROM_WITHIN_WITHIN_SETUP_PY") is not None:
# We're just being exec'd by setup.py. We can't import anything.
_git_rev = None
else:
import sumpy._git_rev as _git_rev_mod
_git_rev = _git_rev_mod.GIT_REVISION
def _parse_version(version: str) -> tuple[tuple[int, ...], str]:
import re
# If we're running from a dev tree, the last install (and hence the most
# recent update of the above git rev) could have taken place very long ago.
from pytools import find_module_git_revision
_runtime_git_rev = find_module_git_revision(__file__, n_levels_up=1)
if _runtime_git_rev is not None:
_git_rev = _runtime_git_rev
m = re.match(r"^([0-9.]+)([a-z0-9]*?)$", VERSION_TEXT)
assert m is not None
# }}}
return tuple(int(nr) for nr in m.group(1).split(".")), m.group(2)
VERSION = (2016, 1)
VERSION_STATUS = "beta1"
VERSION_TEXT = ".".join(str(x) for x in VERSION) + VERSION_STATUS
VERSION_TEXT = metadata.version("sumpy")
VERSION, VERSION_STATUS = _parse_version(VERSION_TEXT)
KERNEL_VERSION = (VERSION, _git_rev, 0)
_GIT_REVISION = find_module_git_revision(__file__, n_levels_up=1)
KERNEL_VERSION = (*VERSION, _GIT_REVISION, 0)
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.