This repository has been archived by the owner on Apr 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
80 lines (64 loc) · 2.32 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#######################################################################
# Copyright (C) 2019-present, Blosc Development team <[email protected]>
# All rights reserved.
#
# This source code is licensed under a BSD-style license (found in the
# LICENSE file in the root directory of this source tree)
#######################################################################
from __future__ import print_function
import os
import sys
import io
from skbuild import setup
from textwrap import dedent
with io.open('README.md', encoding='utf-8') as f:
long_description = f.read()
def exit_with_error(message):
print('ERROR: %s' % message)
sys.exit(1)
# Check for Python
if sys.version_info[0] == 3:
if sys.version_info[1] < 6:
exit_with_error("You need Python 3.6 or greater to install Caterva!")
else:
exit_with_error("You need Python 3.6 or greater to install Caterva!")
# Read the long_description from README.md
with open('README.md') as f:
long_description = f.read()
# Blosc version
VERSION = open('VERSION').read().strip()
# Create the version.py file
open('caterva/version.py', 'w').write('__version__ = "%s"\n' % VERSION)
classifiers = dedent("""\
Development Status :: 3 - Alpha
Intended Audience :: Developers
Intended Audience :: Information Technology
Intended Audience :: Science/Research
License :: OSI Approved :: BSD License
Programming Language :: Python
Topic :: Software Development :: Libraries :: Python Modules
Operating System :: Microsoft :: Windows
Operating System :: Unix
Programming Language :: Python :: 3
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
""")
setup(
name="caterva",
version=VERSION,
description='Caterva for Python (multidimensional compressed data containers).',
long_description=long_description,
long_description_content_type='text/markdown',
classifiers=[c for c in classifiers.split("\n") if c],
author='Blosc Development Team',
author_email='[email protected]',
maintainer='Blosc Development Team',
maintainer_email='[email protected]',
url='https://github.com/Blosc/python-caterva',
license='https://opensource.org/licenses/BSD-3-Clause',
platforms=['any'],
packages=['caterva'],
package_dir={'caterva': 'caterva'},
install_requires=['ndindex', 'msgpack'],
)