Skip to content
Snippets Groups Projects
Verified Commit cf7db9c1 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

WIP: Rename caosdb -> linkahead

parent 23ff7757
Branches
No related tags found
1 merge request!79MAINT: linkahead rename
Pipeline #36693 failed
......@@ -2,7 +2,7 @@
# -*- encoding: utf-8 -*-
#
#
"""caosadvancedtools"""
"""linkaheadadvancedtools"""
import os
import subprocess
import sys
......@@ -87,19 +87,19 @@ def git_version():
def get_version_info():
# Adding the git rev number needs to be done inside write_version_py(),
# otherwise the import of caosadvancedtools.version messes up the build under
# otherwise the import of linkaheadadvancedtools.version messes up the build under
# Python 3.
FULLVERSION = VERSION
if os.path.exists('.git'):
GIT_REVISION = git_version()
elif os.path.exists('src/caosadvancedtools/version.py'):
elif os.path.exists('src/linkaheadadvancedtools/version.py'):
# must be a source distribution, use existing version file
try:
from caosadvancedtools.version import git_revision as GIT_REVISION
from linkaheadadvancedtools.version import git_revision as GIT_REVISION
except ImportError:
raise ImportError("Unable to import git_revision. Try removing "
"src/caosadvancedtools/version.py and the build directory "
"src/linkaheadadvancedtools/version.py and the build directory "
"before building.")
else:
GIT_REVISION = "Unknown"
......@@ -110,9 +110,9 @@ def get_version_info():
return FULLVERSION, GIT_REVISION
def write_version_py(filename='src/caosadvancedtools/version.py'):
def write_version_py(filename='src/linkaheadadvancedtools/version.py'):
cnt = """
# THIS FILE IS GENERATED FROM caosadvancedtools SETUP.PY
# THIS FILE IS GENERATED FROM linkaheadadvancedtools SETUP.PY
#
short_version = '%(version)s'
version = '%(version)s'
......@@ -147,15 +147,15 @@ def setup_package():
write_version_py()
metadata = dict(
name='caosadvancedtools',
name='linkaheadadvancedtools',
version=get_version_info()[0],
description='advanced utilities for caosdb',
description='Advanced utilities for LinkAhead',
long_description=long_description,
long_description_content_type="text/markdown",
author='Henrik tom Wörden',
author_email='h.tomwoerden@indiscale.com',
python_requires='>=3.7',
install_requires=["caosdb>=0.11.0",
install_requires=["linkahead>=0.11.0",
"jsonschema>=4.4.0",
"numpy>=1.17.3",
"openpyxl>=3.0.7",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment