-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
58 lines (52 loc) · 1.67 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
requires = [
# 'pycurl',
# 'future',
# 'six'
]
# 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
from comodit_client import version
VERSION = version.VERSION
RELEASE = version.RELEASE
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 = '[email protected]',
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'])
],
)