-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
executable file
·74 lines (66 loc) · 2.04 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
#!/usr/bin/env python
from __future__ import absolute_import
from setuptools import setup
def get_install_requires():
# To install all build requires:
# $ dnf install python-pip git krb5-devel gcc redhat-rpm-config \
# glib2-devel sqlite-devel libxml2-devel python-devel \
# openssl-devel libffi-devel
requires = [
'python-dateutil',
'requests',
'requests-gssapi',
'six',
# 'libcomps',
# 'rpm-py-installer', # it is optional feature
# 'rpm',
]
return requires
def get_version():
exec(open('koji/_version.py', 'rt').read())
return(locals()['__version__'])
setup(
name="koji",
version=get_version(),
description=("Koji is a system for building and tracking RPMS. The base"
" package contains shared libraries and the command-line"
" interface."),
license="LGPLv2 and GPLv2+",
url="http://pagure.io/koji/",
author='Koji developers',
author_email='[email protected]',
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)",
"Natural Language :: English",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Operating System :: POSIX :: Linux",
"Topic :: Utilities"
],
packages=[
'koji',
'koji_cli',
'koji_cli_plugins',
],
package_dir={
'koji': 'koji',
'koji_cli': 'cli/koji_cli',
'koji_cli_plugins': 'plugins/cli',
},
# doesn't make sense, as we have only example config
# data_files=[
# ('/etc', ['cli/koji.conf']),
# ],
scripts=[
'cli/koji',
'util/koji-gc',
'util/koji-shadow',
'util/koji-sweep-db',
'util/kojira',
],
python_requires='>=2.7',
install_requires=get_install_requires(),
)