a72a38b278
This should help with debugging by providing better information on which Pungi version created the compose. In development, the version will show output of git describe, in production it asks which version is installed in site-packages/. The egg-info directory must be installed for this to work. It is no longer necessary to synchronize version in `setup.py` with `pungi/__init__.py`. Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
64 lines
1.6 KiB
Python
Executable File
64 lines
1.6 KiB
Python
Executable File
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
import os
|
|
import glob
|
|
|
|
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",
|
|
version = "4.1.8",
|
|
description = "Distribution compose tool",
|
|
url = "https://pagure.io/pungi",
|
|
author = "Dennis Gilmore",
|
|
author_email = "dgilmore@fedoraproject.org",
|
|
license = "GPLv2",
|
|
|
|
packages = packages,
|
|
scripts = [
|
|
'bin/comps_filter',
|
|
'bin/pungi',
|
|
'bin/pungi-config-validate',
|
|
'bin/pungi-createiso',
|
|
'bin/pungi-fedmsg-notification',
|
|
'bin/pungi-koji',
|
|
'bin/pungi-make-ostree',
|
|
],
|
|
data_files = [
|
|
('/usr/share/pungi', glob.glob('share/*.xsl')),
|
|
('/usr/share/pungi', glob.glob('share/*.ks')),
|
|
('/usr/share/pungi', glob.glob('share/*.dtd')),
|
|
('/usr/share/pungi/multilib', glob.glob('share/multilib/*')),
|
|
],
|
|
test_suite = "tests",
|
|
install_requires = [
|
|
"kobo",
|
|
"lockfile",
|
|
"lxml",
|
|
"productmd",
|
|
],
|
|
tests_require = [
|
|
"mock",
|
|
"nose",
|
|
"nose-cov",
|
|
],
|
|
)
|