-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
52 lines (43 loc) · 1.7 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import os
from pathlib import Path
from setuptools import find_packages, setup
long_description = """
`vastdb` is a Python-based SDK designed for interacting
with [VAST Database](https://vastdata.com/database)
and [VAST Catalog](https://vastdata.com/blog/vast-catalog-treat-your-file-system-like-a-database),
enabling schema and table management, efficient ingest, query and modification of columnar data.
For more details, see [our whitepaper](https://vastdata.com/whitepaper/#TheVASTDataBase).
"""
def _get_version_suffix():
import subprocess
commit = subprocess.check_output(["git", "rev-parse", "HEAD"])
print(f"Git commit: {commit}")
return f".dev1+vast.{commit.decode()[:16]}"
suffix = ''
if os.environ.get('VASTDB_APPEND_VERSION_SUFFIX'):
suffix = _get_version_suffix()
setup(
name='vastdb',
python_requires='>=3.9.0',
description='VAST Data SDK',
version='1.3.4' + suffix,
url='https://github.com/vast-data/vastdb_sdk',
author='VAST DATA',
author_email='[email protected]',
license='Copyright (C) VAST Data Ltd.',
packages=find_packages(),
install_requires=Path('requirements.txt').read_text().strip().split(),
long_description=long_description,
long_description_content_type='text/markdown',
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Topic :: Database',
'Topic :: Database :: Front-Ends',
],
)