forked from allegro/ralph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
70 lines (62 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
# -*- encoding: utf-8 -*-
import os
import sys
from setuptools import setup, find_packages
import subprocess
assert sys.version_info >= (3, 3), 'Python 3.3+ required.'
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def get_version():
script = os.path.join(
os.path.abspath(os.path.dirname(__file__)), 'get_version.sh'
)
ver = subprocess.check_output([script], shell=True)
return ver.decode().strip()
setup(
name='ralph',
version=get_version(),
author='Allegro.pl Sp. z o.o. and Contributors',
author_email='[email protected]',
description="Advanced Asset Management and DCIM system for data center and back office.",
long_description=read('README.md'),
url='http://ralph.allegrogroup.com/',
keywords='',
platforms=['any'],
license='Apache Software License v2.0',
packages=find_packages('src'),
include_package_data=True,
package_dir={'': 'src'},
zip_safe=False, # because templates are loaded from file path
entry_points={
'console_scripts': [
'ralph = ralph.__main__:prod',
'dev_ralph = ralph.__main__:dev',
'test_ralph = ralph.__main__:test',
'validate_ralph = ralph.cross_validator.__main__:main',
],
'back_office.transition_action.email_context': [
'default = ralph.back_office.helpers:get_email_context_for_transition' # noqa
],
'account.views.get_asset_list_class': [
'default = ralph.accounts.views:get_asset_list_class' # noqa
],
'ralph.cloud_sync_processors': [
'noop=ralph.virtual.processors.noop:endpoint',
],
},
classifiers=[
'Development Status :: 5 - Production/Stable',
'Framework :: Django',
'Intended Audience :: System Administrators',
'Intended Audience :: Information Technology',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Operating System :: POSIX',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows :: Windows NT/2000',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Topic :: Internet :: WWW/HTTP',
]
)