Blame setup.py

Packit Service afaf57
#!/usr/bin/python2
Packit Service afaf57
# Setup file for initial-setup
Packit Service afaf57
#
Packit Service afaf57
# Copyright (C) 2012  Red Hat, Inc.
Packit Service afaf57
#
Packit Service afaf57
# This program is free software: you can redistribute it and/or modify
Packit Service afaf57
# it under the terms of the GNU General Public License as published by
Packit Service afaf57
# the Free Software Foundation, either version 2 of the License, or
Packit Service afaf57
# (at your option) any later version.
Packit Service afaf57
#
Packit Service afaf57
# This program is distributed in the hope that it will be useful, but
Packit Service afaf57
# WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service afaf57
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service afaf57
# General Public License for more details.
Packit Service afaf57
#
Packit Service afaf57
# You should have received a copy of the GNU General Public License
Packit Service afaf57
# along with this program.  If not, see
Packit Service afaf57
# <http://www.gnu.org/licenses/>.
Packit Service afaf57
#
Packit Service afaf57
# Red Hat Author(s): Martin Sivak <msivak@redhat.com>
Packit Service afaf57
#
Packit Service afaf57
Packit Service afaf57
import os
Packit Service afaf57
from setuptools import setup, find_packages
Packit Service afaf57
from glob import glob
Packit Service afaf57
Packit Service afaf57
# Utility function to read the README file.
Packit Service afaf57
# Used for the long_description.  It's nice, because now 1) we have a top level
Packit Service afaf57
# README file and 2) it's easier to type in the README file than to put a raw
Packit Service afaf57
# string in below ...
Packit Service afaf57
def read(fname):
Packit Service afaf57
    return open(os.path.join(os.path.dirname(__file__), fname)).read()
Packit Service afaf57
Packit Service afaf57
Packit Service afaf57
data_files = [('/usr/lib/systemd/system', glob('systemd/*.service')),
Packit Service afaf57
              ('/etc/initial-setup/conf.d', glob('data/*.conf')),
Packit Service afaf57
              ('/usr/libexec/initial-setup/',
Packit Service afaf57
              ["scripts/run-initial-setup", "scripts/firstboot-windowmanager",
Packit Service afaf57
               "scripts/initial-setup-text", "scripts/initial-setup-graphical",
Packit Service afaf57
               "scripts/reconfiguration-mode-enabled"])]
Packit Service afaf57
Packit Service afaf57
# add the firstboot start script for s390 architectures
Packit Service afaf57
if os.uname()[4].startswith('s390'):
Packit Service afaf57
    data_files.append(('/etc/profile.d', ['scripts/s390/initial-setup.sh']))
Packit Service afaf57
    data_files.append(('/etc/profile.d', ['scripts/s390/initial-setup.csh']))
Packit Service afaf57
Packit Service afaf57
setup(
Packit Service afaf57
    name = "initial-setup",
Packit Service afaf57
    version = "0.3.81.6",
Packit Service afaf57
    author = "Martin Sivak",
Packit Service afaf57
    author_email = "msivak@redhat.com",
Packit Service afaf57
    description='Post-installation configuration utility',
Packit Service afaf57
    url='http://fedoraproject.org/wiki/FirstBoot',
Packit Service afaf57
    license = "GPLv2+",
Packit Service afaf57
    keywords = "firstboot initial setup",
Packit Service afaf57
    packages = find_packages(),
Packit Service afaf57
    package_data = {
Packit Service afaf57
        "": ["*.glade"]
Packit Service afaf57
    },
Packit Service afaf57
    data_files = data_files,
Packit Service afaf57
    setup_requires= ['nose>=1.0'],
Packit Service afaf57
    test_suite = "initial_setup",
Packit Service afaf57
    long_description=read('README.rst'),
Packit Service afaf57
    classifiers=[
Packit Service afaf57
        "Development Status :: 3 - Alpha",
Packit Service afaf57
        "Environment :: X11 Applications :: GTK",
Packit Service afaf57
        "Environment :: Console",
Packit Service afaf57
        "Intended Audience :: System Administrators",
Packit Service afaf57
        "Topic :: System :: Systems Administration",
Packit Service afaf57
        "License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
Packit Service afaf57
    ],
Packit Service afaf57
)