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
Tags
Loading
Pipeline #36693 failed
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# -*- encoding: utf-8 -*- # -*- encoding: utf-8 -*-
# #
# #
"""caosadvancedtools""" """linkaheadadvancedtools"""
import os import os
import subprocess import subprocess
import sys import sys
...@@ -87,19 +87,19 @@ def git_version(): ...@@ -87,19 +87,19 @@ def git_version():
def get_version_info(): def get_version_info():
# Adding the git rev number needs to be done inside write_version_py(), # 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. # Python 3.
FULLVERSION = VERSION FULLVERSION = VERSION
if os.path.exists('.git'): if os.path.exists('.git'):
GIT_REVISION = git_version() 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 # must be a source distribution, use existing version file
try: try:
from caosadvancedtools.version import git_revision as GIT_REVISION from linkaheadadvancedtools.version import git_revision as GIT_REVISION
except ImportError: except ImportError:
raise ImportError("Unable to import git_revision. Try removing " 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.") "before building.")
else: else:
GIT_REVISION = "Unknown" GIT_REVISION = "Unknown"
...@@ -110,9 +110,9 @@ def get_version_info(): ...@@ -110,9 +110,9 @@ def get_version_info():
return FULLVERSION, GIT_REVISION return FULLVERSION, GIT_REVISION
def write_version_py(filename='src/caosadvancedtools/version.py'): def write_version_py(filename='src/linkaheadadvancedtools/version.py'):
cnt = """ cnt = """
# THIS FILE IS GENERATED FROM caosadvancedtools SETUP.PY # THIS FILE IS GENERATED FROM linkaheadadvancedtools SETUP.PY
# #
short_version = '%(version)s' short_version = '%(version)s'
version = '%(version)s' version = '%(version)s'
...@@ -147,15 +147,15 @@ def setup_package(): ...@@ -147,15 +147,15 @@ def setup_package():
write_version_py() write_version_py()
metadata = dict( metadata = dict(
name='caosadvancedtools', name='linkaheadadvancedtools',
version=get_version_info()[0], version=get_version_info()[0],
description='advanced utilities for caosdb', description='Advanced utilities for LinkAhead',
long_description=long_description, long_description=long_description,
long_description_content_type="text/markdown", long_description_content_type="text/markdown",
author='Henrik tom Wörden', author='Henrik tom Wörden',
author_email='h.tomwoerden@indiscale.com', author_email='h.tomwoerden@indiscale.com',
python_requires='>=3.7', python_requires='>=3.7',
install_requires=["caosdb>=0.11.0", install_requires=["linkahead>=0.11.0",
"jsonschema>=4.4.0", "jsonschema>=4.4.0",
"numpy>=1.17.3", "numpy>=1.17.3",
"openpyxl>=3.0.7", "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