File: setup.py

package info (click to toggle)
sos 4.10.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,936 kB
  • sloc: python: 35,955; sh: 244; makefile: 18
file content (42 lines) | stat: -rw-r--r-- 1,374 bytes parent folder | download | duplicates (3)
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 :