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
|
2016-10-24 11:22:51 +00:00
|
|
|
package_root_dirs = ["pungi", "pungi_utils"]
|
2015-02-05 15:56:24 +00:00
|
|
|
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",
|
2019-12-02 13:47:04 +00:00
|
|
|
version = "4.1.41",
|
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,
|
2019-12-06 02:54:11 +00:00
|
|
|
entry_points = {
|
|
|
|
'console_scripts': [
|
|
|
|
'comps_filter = pungi.scripts.comps_filter:main',
|
|
|
|
'pungi = pungi.scripts.pungi:main',
|
|
|
|
'pungi-create-unified-isos = pungi.scripts.create_unified_isos:main',
|
|
|
|
'pungi-fedmsg-notification = pungi.scripts.fedmsg_notification:main',
|
|
|
|
'pungi-patch-iso = pungi.scripts.patch_iso:cli_main',
|
|
|
|
'pungi-make-ostree = pungi.ostree:main',
|
|
|
|
'pungi-notification-report-progress = pungi.scripts.report_progress:main',
|
|
|
|
'pungi-orchestrate = pungi_utils.orchestrator:main',
|
|
|
|
'pungi-wait-for-signed-ostree-handler = pungi.scripts.wait_for_signed_ostree_handler:main',
|
|
|
|
'pungi-koji = pungi.scripts.pungi_koji:cli_main',
|
|
|
|
'pungi-gather = pungi.scripts.pungi_gather:cli_main',
|
|
|
|
'pungi-config-dump = pungi.scripts.config_dump:cli_main',
|
|
|
|
'pungi-config-validate = pungi.scripts.config_validate:cli_main',
|
|
|
|
]
|
|
|
|
},
|
2015-02-05 15:56:24 +00:00
|
|
|
scripts = [
|
2015-09-10 13:12:04 +00:00
|
|
|
'contrib/yum-dnf-compare/pungi-compare-depsolving',
|
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 = [
|
2017-01-18 12:35:49 +00:00
|
|
|
"jsonschema",
|
2016-06-06 09:21:19 +00:00
|
|
|
"kobo",
|
2016-06-01 13:19:06 +00:00
|
|
|
"lxml",
|
2019-12-06 08:49:01 +00:00
|
|
|
"productmd>=1.23",
|
2017-08-28 12:31:09 +00:00
|
|
|
"six",
|
2018-08-15 07:20:40 +00:00
|
|
|
'dogpile.cache',
|
2016-06-06 09:21:19 +00:00
|
|
|
],
|
2019-01-14 08:13:59 +00:00
|
|
|
extras_require={
|
|
|
|
':python_version=="2.7"': [
|
2019-04-03 08:25:46 +00:00
|
|
|
'enum34',
|
2019-04-02 12:45:22 +00:00
|
|
|
"lockfile",
|
|
|
|
'dict.sorted',
|
2019-01-14 08:13:59 +00:00
|
|
|
]
|
|
|
|
},
|
2016-06-06 09:21:19 +00:00
|
|
|
tests_require = [
|
|
|
|
"mock",
|
|
|
|
"nose",
|
|
|
|
"nose-cov",
|
2016-06-01 13:19:06 +00:00
|
|
|
],
|
2012-11-26 07:32:01 +00:00
|
|
|
)
|