2014-11-14 09:45:46 +01:00
|
|
|
import re
|
|
|
|
|
2014-10-02 18:14:54 +02:00
|
|
|
from setuptools import setup
|
|
|
|
|
|
|
|
|
2015-02-24 09:54:02 +01:00
|
|
|
try:
|
|
|
|
# Distributions have to delete *requirements.txt
|
|
|
|
with open('requirements.txt', 'r') as fp:
|
2015-03-16 17:57:46 +01:00
|
|
|
install_requires = [re.split(r'[<>=~]', line)[0]
|
2015-02-24 09:54:02 +01:00
|
|
|
for line in fp if line.strip()]
|
|
|
|
except EnvironmentError:
|
|
|
|
print("No requirements.txt, not handling dependencies")
|
|
|
|
install_requires = []
|
2014-11-14 09:45:46 +01:00
|
|
|
|
|
|
|
|
2015-05-26 07:47:55 +02:00
|
|
|
with open('ironic_inspector/__init__.py', 'rb') as fp:
|
2015-01-06 11:33:55 +01:00
|
|
|
exec(fp.read())
|
|
|
|
|
|
|
|
|
2014-10-02 18:14:54 +02:00
|
|
|
setup(
|
2015-05-26 07:47:55 +02:00
|
|
|
name = "ironic-inspector",
|
2015-01-06 11:33:55 +01:00
|
|
|
version = __version__,
|
2014-11-14 09:45:46 +01:00
|
|
|
description = open('README.rst', 'r').readline().strip(),
|
2014-10-02 18:14:54 +02:00
|
|
|
author = "Dmitry Tantsur",
|
2014-11-14 09:45:46 +01:00
|
|
|
author_email = "dtantsur@redhat.com",
|
|
|
|
url = "https://pypi.python.org/pypi/ironic-discoverd",
|
2015-05-26 07:47:55 +02:00
|
|
|
packages = ['ironic_inspector', 'ironic_inspector.plugins',
|
|
|
|
'ironic_inspector.test', 'ironic_inspector.common',
|
|
|
|
'ironic_inspector_ramdisk', 'ironic_inspector_ramdisk.test'],
|
2014-11-14 09:45:46 +01:00
|
|
|
install_requires = install_requires,
|
2015-04-24 15:13:18 +02:00
|
|
|
# because entry points don't work with multiple packages
|
2015-05-26 07:47:55 +02:00
|
|
|
scripts = ['bin/ironic-inspector-ramdisk'],
|
2014-11-27 15:09:48 +01:00
|
|
|
entry_points = {
|
|
|
|
'console_scripts': [
|
2015-05-26 07:47:55 +02:00
|
|
|
"ironic-inspector = ironic_inspector.main:main",
|
2014-11-27 15:09:48 +01:00
|
|
|
],
|
2015-05-26 07:47:55 +02:00
|
|
|
'ironic_inspector.hooks': [
|
|
|
|
"scheduler = ironic_inspector.plugins.standard:SchedulerHook",
|
|
|
|
"validate_interfaces = ironic_inspector.plugins.standard:ValidateInterfacesHook",
|
|
|
|
"ramdisk_error = ironic_inspector.plugins.standard:RamdiskErrorHook",
|
|
|
|
"example = ironic_inspector.plugins.example:ExampleProcessingHook",
|
|
|
|
"edeploy = ironic_inspector.plugins.edeploy:eDeployHook",
|
|
|
|
"root_device_hint = ironic_inspector.plugins.root_device_hint:RootDeviceHintHook",
|
2014-11-27 15:09:48 +01:00
|
|
|
],
|
2015-02-16 17:14:12 +01:00
|
|
|
'openstack.cli.extension': [
|
2015-05-26 07:47:55 +02:00
|
|
|
'baremetal-introspection = ironic_inspector.shell',
|
2015-02-16 17:14:12 +01:00
|
|
|
],
|
|
|
|
'openstack.baremetal_introspection.v1': [
|
2015-05-26 07:47:55 +02:00
|
|
|
"baremetal_introspection_start = ironic_inspector.shell:StartCommand",
|
|
|
|
"baremetal_introspection_status = ironic_inspector.shell:StatusCommand",
|
2015-02-16 17:14:12 +01:00
|
|
|
],
|
2015-03-11 04:33:48 +00:00
|
|
|
'oslo.config.opts': [
|
2015-05-26 07:47:55 +02:00
|
|
|
"ironic_inspector = ironic_inspector.conf:list_opts",
|
2015-03-11 04:33:48 +00:00
|
|
|
],
|
2014-11-27 15:09:48 +01:00
|
|
|
},
|
2014-11-14 09:45:46 +01:00
|
|
|
classifiers = [
|
2014-11-20 10:45:24 +01:00
|
|
|
'Development Status :: 5 - Production/Stable',
|
2014-11-14 09:45:46 +01:00
|
|
|
'Environment :: OpenStack',
|
|
|
|
'Intended Audience :: System Administrators',
|
|
|
|
'License :: OSI Approved :: Apache Software License',
|
|
|
|
'Operating System :: POSIX',
|
|
|
|
],
|
|
|
|
license = 'APL 2.0',
|
2014-10-02 18:14:54 +02:00
|
|
|
)
|