forked from release-engineering/productmd
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·37 lines (27 loc) · 979 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/python
# -*- coding: utf-8 -*-
import os
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 = ["productmd"]
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 = "productmd",
version = "1.0",
description = "Product, compose and installation media metadata library",
url = "https://github.com/release-engineering/productmd",
author = "Daniel Mach",
author_email = "[email protected]",
license = "LGPLv2.1",
packages = packages,
scripts = [],
test_suite = "tests",
)