This repository has been archived by the owner on Jan 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
48 lines (41 loc) · 1.49 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
import os
from setuptools import \
find_packages # get modules (pyssas) and submodules (cube_formatter, ...)
from setuptools import setup
try: # for pip >= 10
from pip._internal.req import parse_requirements
except ImportError: # for pip <= 9.0.3
from pip.req import parse_requirements
HERE = os.path.abspath(os.path.dirname(__file__))
requirements_path = os.path.join(HERE, 'requirements.txt')
install_reqs = parse_requirements(requirements_path, session=False)
try:
requirements = [str(ir.req) for ir in install_reqs]
except AttributeError:
requirements = [str(ir.requirement) for ir in install_reqs]
# The text of the README file
with open(os.path.join(HERE, 'README.md')) as f:
README = f.read()
setup(name='pyssas',
version='0.3',
packages=find_packages(),
install_requires=requirements,
entry_points={
'console_scripts': ['pyssas=pyssas.__main__:main']
},
# metadata to display on PyPI
description='SQL Server Analysis Services with Python',
long_description=README,
long_description_content_type='text/markdown',
keywords='ssas microsoft olap',
url='https://github.com/brunocampos01/pyssas', # project home page
author='Bruno Campos',
author_email='brunocampos01@gmail.com',
license='MIT',
platforms='any',
classifiers=[
'Programming Language :: Python',
'Natural Language :: English',
'License :: OSI Approved :: MIT License'
]
)