forked from containerbuildsystem/koji-containerbuild
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
42 lines (36 loc) · 1.1 KB
/
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
38
39
40
41
42
from setuptools import setup
from setuptools.command.sdist import sdist
import subprocess
class TitoDist(sdist):
def run(self):
subprocess.call(["tito", "build", "--tgz", "-o", "."])
def get_requirements(requirements_file='requirements.txt'):
with open(requirements_file) as f:
return [
line.split('#')[0].rstrip()
for line in f.readlines()
if not line.startswith('#')
]
setup(
name="koji-containerbuild",
version="0.11.0",
author="Pavol Babincak",
author_email="pbabinca@redhat.com",
description="Container build support for Koji buildsystem",
license="LGPLv2+",
url="https://github.com/containerbuildsystem/koji-containerbuild",
packages=[
'koji_containerbuild',
'koji_containerbuild.plugins',
],
install_requires=get_requirements(),
classifiers=[
"Development Status :: 3 - Alpha",
"Topic :: Internet",
"License :: OSI Approved :: GNU Lesser General Public License v2"
" or later (LGPLv2+)",
],
cmdclass={
'sdist': TitoDist,
}
)