Blame setup.py

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