2015-11-25 15:14:35 +00:00
|
|
|
#!/usr/bin/env python
|
2015-02-05 15:56:24 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
|
|
|
|
import os
|
2006-11-08 21:34:59 +00:00
|
|
|
import glob
|
|
|
|
|
2015-02-05 15:56:24 +00:00
|
|
|
import distutils.command.sdist
|
|
|
|
from setuptools import setup
|
|
|
|
|
|
|
|
|
|
|
|
# override default tarball format with bzip2
|
|
|
|
distutils.command.sdist.sdist.default_format = {"posix": "bztar"}
|
|
|
|
|
|
|
|
|
|
|
|
# recursively scan for python modules to be included
|
|
|
|
package_root_dirs = ["pungi"]
|
|
|
|
packages = set()
|
|
|
|
for package_root_dir in package_root_dirs:
|
|
|
|
for root, dirs, files in os.walk(package_root_dir):
|
|
|
|
if "__init__.py" in files:
|
|
|
|
packages.add(root.replace("/", "."))
|
|
|
|
packages = sorted(packages)
|
|
|
|
|
|
|
|
|
|
|
|
setup(
|
|
|
|
name = "pungi",
|
2016-08-16 06:02:15 +00:00
|
|
|
version = "4.1.8",
|
2015-02-05 15:56:24 +00:00
|
|
|
description = "Distribution compose tool",
|
2016-01-11 15:34:45 +00:00
|
|
|
url = "https://pagure.io/pungi",
|
2015-02-05 15:56:24 +00:00
|
|
|
author = "Dennis Gilmore",
|
|
|
|
author_email = "dgilmore@fedoraproject.org",
|
|
|
|
license = "GPLv2",
|
|
|
|
|
|
|
|
packages = packages,
|
|
|
|
scripts = [
|
2016-04-06 22:44:40 +00:00
|
|
|
'bin/comps_filter',
|
2015-03-12 16:03:48 +00:00
|
|
|
'bin/pungi',
|
2016-04-01 14:12:35 +00:00
|
|
|
'bin/pungi-config-validate',
|
2016-04-06 22:44:40 +00:00
|
|
|
'bin/pungi-createiso',
|
2015-12-02 14:50:32 +00:00
|
|
|
'bin/pungi-fedmsg-notification',
|
2016-04-06 22:44:40 +00:00
|
|
|
'bin/pungi-koji',
|
2016-04-01 14:12:35 +00:00
|
|
|
'bin/pungi-make-ostree',
|
2015-02-05 15:56:24 +00:00
|
|
|
],
|
|
|
|
data_files = [
|
2012-11-26 07:32:01 +00:00
|
|
|
('/usr/share/pungi', glob.glob('share/*.xsl')),
|
|
|
|
('/usr/share/pungi', glob.glob('share/*.ks')),
|
2015-03-14 20:03:32 +00:00
|
|
|
('/usr/share/pungi', glob.glob('share/*.dtd')),
|
2012-11-26 07:32:01 +00:00
|
|
|
('/usr/share/pungi/multilib', glob.glob('share/multilib/*')),
|
2015-06-25 12:02:52 +00:00
|
|
|
],
|
|
|
|
test_suite = "tests",
|
2016-06-01 13:19:06 +00:00
|
|
|
install_requires = [
|
2016-06-06 09:21:19 +00:00
|
|
|
"kobo",
|
|
|
|
"lockfile",
|
2016-06-01 13:19:06 +00:00
|
|
|
"lxml",
|
2016-06-06 09:21:19 +00:00
|
|
|
"productmd",
|
|
|
|
],
|
|
|
|
tests_require = [
|
|
|
|
"mock",
|
|
|
|
"nose",
|
|
|
|
"nose-cov",
|
2016-06-01 13:19:06 +00:00
|
|
|
],
|
2012-11-26 07:32:01 +00:00
|
|
|
)
|