-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
82 lines (77 loc) · 3.57 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
81
82
#!/usr/bin/env python
"""Install algebraixlib or builds its installation package."""
# $Id: setup.py 22690 2015-07-27 20:23:37Z gfiedler $
# Copyright Algebraix Data Corporation 2015 - $Date: 2015-07-27 15:23:37 -0500 (Mon, 27 Jul 2015) $
#
# This file is part of algebraixlib <http://github.com/AlgebraixData/algebraixlib>.
#
# algebraixlib is free software: you can redistribute it and/or modify it under the terms of version
# 3 of the GNU Lesser General Public License as published by the Free Software Foundation.
#
# algebraixlib is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License along with algebraixlib.
# If not, see <http://www.gnu.org/licenses/>.
# --------------------------------------------------------------------------------------------------
from sys import version_info, exit
from setuptools import setup
# Check python version
python_version = str(version_info[0]) + '.' + str(version_info[1]) + '.' + str(version_info[2])
if version_info < (3, 0):
exit('The current Python Version is ' + python_version + '. '
+ 'This library requires Python Version 3. Exiting.')
elif version_info < (3, 4):
print('Warning: The current Python Version is ' + python_version + '. '
+ 'This library has been tested with Python Version 3.4.3. Use at your own risk.')
elif version_info < (3, 4, 3):
print('Note: The current Python Version is ' + python_version + '. '
+ 'This library has been tested with Python Version 3.4.3.')
# Import readme as long description that is used by PyPI as the home page for the library's package.
with open('README.rst') as file:
long_description = file.read()
setup(
name="algebraixlib",
version="1.1",
description="A data algebra library",
long_description=long_description,
author="Algebraix Data Corporation",
author_email="algebraixlib@algebraixdata.com",
maintainer="Algebraix Data Corporation",
maintainer_email="algebraixlib@algebraixdata.com",
url="https://github.com/AlgebraixData/algebraixlib",
license="http://www.gnu.org/licenses/lgpl-3.0-standalone.html",
platforms=["any"],
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Environment :: Console",
'Intended Audience :: Developers',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Information Technology',
'Intended Audience :: Science/Research',
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
],
packages=[
'algebraixlib',
'algebraixlib/algebras',
'algebraixlib/io',
'algebraixlib/mathobjects',
'algebraixlib/util',
],
install_requires=['rdflib>=4.2'],
keywords='data algebra set theory',
)