|
|
ba8ae15 |
#!/usr/bin/env python
|
|
|
f5c6d44 |
# -*- coding: utf-8 -*-
|
|
|
f5c6d44 |
|
|
|
f5c6d44 |
|
|
|
f5c6d44 |
import os
|
|
|
023ad1b |
import glob
|
|
|
023ad1b |
|
|
|
f5c6d44 |
import distutils.command.sdist
|
|
|
f5c6d44 |
from setuptools import setup
|
|
|
f5c6d44 |
|
|
|
f5c6d44 |
|
|
|
f5c6d44 |
# override default tarball format with bzip2
|
|
|
f5c6d44 |
distutils.command.sdist.sdist.default_format = {"posix": "bztar"}
|
|
|
f5c6d44 |
|
|
|
f5c6d44 |
|
|
|
f5c6d44 |
# recursively scan for python modules to be included
|
|
|
20d035b |
package_root_dirs = ["pungi", "pungi_utils"]
|
|
|
f5c6d44 |
packages = set()
|
|
|
f5c6d44 |
for package_root_dir in package_root_dirs:
|
|
|
f5c6d44 |
for root, dirs, files in os.walk(package_root_dir):
|
|
|
f5c6d44 |
if "__init__.py" in files:
|
|
|
f5c6d44 |
packages.add(root.replace("/", "."))
|
|
|
f5c6d44 |
packages = sorted(packages)
|
|
|
f5c6d44 |
|
|
|
f5c6d44 |
|
|
|
f5c6d44 |
setup(
|
|
|
f5c6d44 |
name = "pungi",
|
|
|
d3dd7aa |
version = "4.1.16",
|
|
|
f5c6d44 |
description = "Distribution compose tool",
|
|
|
39ce255 |
url = "https://pagure.io/pungi",
|
|
|
f5c6d44 |
author = "Dennis Gilmore",
|
|
|
f5c6d44 |
author_email = "dgilmore@fedoraproject.org",
|
|
|
f5c6d44 |
license = "GPLv2",
|
|
|
f5c6d44 |
|
|
|
f5c6d44 |
packages = packages,
|
|
|
f5c6d44 |
scripts = [
|
|
Dennis Gilmore |
36e7279 |
'bin/comps_filter',
|
|
|
dfd0cc9 |
'bin/pungi',
|
|
|
6b07dce |
'bin/pungi-config-validate',
|
|
|
20d035b |
'bin/pungi-create-unified-isos',
|
|
|
a2ace9e |
'bin/pungi-fedmsg-notification',
|
|
|
8cc912c |
'bin/pungi-gather',
|
|
Dennis Gilmore |
36e7279 |
'bin/pungi-koji',
|
|
|
6b07dce |
'bin/pungi-make-ostree',
|
|
|
4b90822 |
'bin/pungi-patch-iso',
|
|
|
36f57b2 |
|
|
|
36f57b2 |
'contrib/yum-dnf-compare/pungi-compare-depsolving',
|
|
|
f5c6d44 |
],
|
|
|
f5c6d44 |
data_files = [
|
|
|
30c0f35 |
('/usr/share/pungi', glob.glob('share/*.xsl')),
|
|
|
30c0f35 |
('/usr/share/pungi', glob.glob('share/*.ks')),
|
|
|
eba5a8b |
('/usr/share/pungi', glob.glob('share/*.dtd')),
|
|
|
30c0f35 |
('/usr/share/pungi/multilib', glob.glob('share/multilib/*')),
|
|
|
81e935f |
],
|
|
|
81e935f |
test_suite = "tests",
|
|
|
53f93b2 |
install_requires = [
|
|
|
ec67eac |
"enum34",
|
|
|
ec67eac |
"jsonschema",
|
|
|
698805f |
"kobo",
|
|
|
698805f |
"lockfile",
|
|
|
53f93b2 |
"lxml",
|
|
|
698805f |
"productmd",
|
|
|
698805f |
],
|
|
|
698805f |
tests_require = [
|
|
|
698805f |
"mock",
|
|
|
698805f |
"nose",
|
|
|
698805f |
"nose-cov",
|
|
|
53f93b2 |
],
|
|
|
30c0f35 |
)
|