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
|
#!/usr/bin/env python
from setuptools import setup, find_packages
from sos import __version__ as VERSION
from sos.policies import load
data_files = [
('share/man/man1', ['man/en/sos-report.1', 'man/en/sos.1',
'man/en/sos-collect.1', 'man/en/sos-clean.1',
'man/en/sos-mask.1', 'man/en/sos-help.1',
'man/en/sos-upload.1']),
('share/man/man5', ['man/en/sos.conf.5']),
('config', ['sos.conf', 'tmpfiles/tmpfilesd-sos-rh.conf'])
]
if load().os_release_name not in ("Ubuntu", "Debian"):
data_files.extend([
('share/licenses/sos', ['LICENSE']),
('share/doc/sos', ['AUTHORS', 'README.md'])
])
setup(
name='sos',
version=VERSION,
# to avoid a packaging dependency on older RHELs
# we only declare it on recent Python versions
install_requires=['pexpect', 'pyyaml', 'packaging;python_version>="3.11"'],
description=(
'A set of tools to gather troubleshooting information from a system'
),
author='Bryn M. Reeves',
author_email='bmr@redhat.com',
maintainer='Jake Hunsaker',
maintainer_email='jacob.r.hunsaker@gmail.com',
url='https://github.com/sosreport/sos',
license="GPLv2+",
scripts=['bin/sos'],
data_files=data_files,
packages=find_packages(include=['sos', 'sos.*'])
)
# vim: set et ts=4 sw=4 :
|