From cf7db9c1e871fd5898e66ddccb457360ae7c9e82 Mon Sep 17 00:00:00 2001 From: Daniel <d.hornung@indiscale.com> Date: Thu, 11 May 2023 16:44:40 +0200 Subject: [PATCH] WIP: Rename caosdb -> linkahead --- setup.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/setup.py b/setup.py index 6201149e..d3a12780 100755 --- a/setup.py +++ b/setup.py @@ -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", -- GitLab