-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
67 lines (59 loc) · 1.9 KB
/
setup.py
File metadata and controls
67 lines (59 loc) · 1.9 KB
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from platform import python_version
from setuptools import setup, find_packages
major, minor, micro = python_version().split('.')
if major != '2' or minor not in ['6', '7']:
raise Exception('unsupported version of python')
requires = [
'python >= 2.6',
]
# Utility function to read the README file.
# http://packages.python.org/an_example_pypi_project/setuptools.html
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def get_template_files():
files = []
for name in os.listdir('templates'):
files.append('templates/' + name)
return files
VERSION = '0.0'
RELEASE = '0'
try:
from comodit_client import version
VERSION = version.VERSION
RELEASE = version.RELEASE
except ImportError:
pass
setup(
name = 'comodit-client',
description = 'ComodIT command line client and python library.',
long_description = read('README.md'),
version = VERSION + "-" + RELEASE,
author = 'see AUTHOR file',
author_email = 'team@comodit.com',
url = 'http://www.comodit.com',
license = 'MIT',
packages = find_packages(),
scripts = [
'comodit'
],
include_package_data = True,
# Here's the list of usable classifiers:
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers = [
'Programming Language :: Python',
'Operating System :: POSIX',
'Topic :: Content Management',
'Topic :: Software Development :: Libraries :: Python Modules',
'Intended Audience :: Developers',
'Development Status :: 4 - Beta'
],
install_requires = requires,
data_files = [
('/etc/bash_completion.d/', ['auto_completion/comodit']),
('/usr/share/comodit-client/templates', get_template_files()),
('/etc/comodit-client/', ['rpmbuild/etc/comodit-client/comodit-client.conf'])
],
)