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

WIP: Rename caosdb -> linkahead

parent 86311b39
No related branches found
No related tags found
1 merge request!111MAINT: LinkAhead rename
Pipeline #36363 failed
......@@ -2,7 +2,7 @@
# -*- encoding: utf-8 -*-
#
#
"""caosdb"""
"""linkahead"""
import os
import subprocess
import sys
......@@ -91,22 +91,22 @@ def git_version():
def get_version_info():
# Adding the git rev number needs to be done inside write_version_py(),
# otherwise the import of caosdb.version messes up the build under
# otherwise the import of linkahead.version messes up the build under
# Python 3.
FULLVERSION = VERSION
if os.path.exists('.git'):
GIT_REVISION = git_version()
elif os.path.exists('caosdb_pylib_commit'):
with open('caosdb_pylib_commit', 'r') as f:
elif os.path.exists('linkahead_pylib_commit'):
with open('linkahead_pylib_commit', 'r') as f:
GIT_REVISION = f.read().strip()
elif os.path.exists('src/caosdb/version.py'):
elif os.path.exists('src/linkahead/version.py'):
# must be a source distribution, use existing version file
try:
from caosdb.version import git_revision as GIT_REVISION
from linkahead.version import git_revision as GIT_REVISION
except ImportError:
raise ImportError("Unable to import git_revision. Try removing "
"src/caosdb/version.py and the build directory "
"src/linkahead/version.py and the build directory "
"before building.")
else:
GIT_REVISION = "Unknown"
......@@ -117,9 +117,9 @@ def get_version_info():
return FULLVERSION, GIT_REVISION
def write_version_py(filename='src/caosdb/version.py'):
def write_version_py(filename='src/linkahead/version.py'):
cnt = """
# THIS FILE IS GENERATED FROM caosdb SETUP.PY
# THIS FILE IS GENERATED FROM linkahead SETUP.PY
#
short_version = '%(version)s'
version = '%(version)s'
......@@ -154,14 +154,14 @@ def setup_package():
write_version_py()
metadata = dict(
name='caosdb',
name='linkahead',
version=get_version_info()[0],
description='Python Interface for CaosDB',
description='Python Interface for LinkAhead',
long_description=long_description,
long_description_content_type="text/markdown",
author='Timm Fitschen',
author_email='t.fitschen@indiscale.com',
url='https://www.caosdb.org',
url='https://www.linkahead.org',
license="AGPLv3+",
classifiers=[
"Programming Language :: Python :: 3",
......@@ -185,9 +185,9 @@ def setup_package():
tests_require=["pytest", "pytest-cov", "coverage>=4.4.2",
"jsonschema>=4.4.0"],
package_data={
'caosdb': ['cert/indiscale.ca.crt', 'schema-pycaosdb-ini.yml'],
'linkahead': ['cert/indiscale.ca.crt', 'schema-pylinkahead-ini.yml'],
},
scripts=["src/caosdb/utils/caosdb_admin.py"]
scripts=["src/linkahead/utils/linkahead_admin.py"]
)
try:
setup(**metadata)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment