gssapi is optional in the code and only used as one of several possible authentication options. You can do a lot with koji without having it installed. Installing it via pypi/pip is a nightmare because it requires compilation, so it seems sensible to make it possible to avoid that mess if you don't need gssapi. Also, drop get_install_requires because it's pointless, all it does is return a hardcoded list. Let's just put the list where it's meant to go. Signed-off-by: Adam Williamson <awilliam@redhat.com>
84 lines
2.3 KiB
Python
Executable file
84 lines
2.3 KiB
Python
Executable file
#!/usr/bin/env python
|
|
from __future__ import absolute_import
|
|
|
|
import os.path
|
|
from setuptools import setup
|
|
|
|
|
|
# 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
|
|
|
|
|
|
def get_version():
|
|
cwd = os.path.dirname(__file__)
|
|
lcls = {}
|
|
exec(open(os.path.join(cwd, 'koji/_version.py'), 'rt').read(), None, lcls)
|
|
return lcls['__version__']
|
|
|
|
|
|
def get_long_description():
|
|
cwd = os.path.dirname(__file__)
|
|
return open(os.path.join(cwd, "README.md"), "rt").read()
|
|
|
|
|
|
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."),
|
|
long_description=get_long_description(),
|
|
long_description_content_type='text/markdown',
|
|
include_package_data=True,
|
|
license="LGPLv2 and GPLv2+",
|
|
url="https://forge.fedoraproject.org/koji/koji/",
|
|
author='Koji developers',
|
|
author_email='koji-devel@lists.fedorahosted.org',
|
|
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',
|
|
},
|
|
package_data={
|
|
'': ['README.md'],
|
|
},
|
|
# 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=[
|
|
'defusedxml',
|
|
'python-dateutil',
|
|
'requests',
|
|
'six',
|
|
],
|
|
extras_require={
|
|
'gssapi': ['requests-gssapi'],
|
|
},
|
|
)
|