-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
34 lines (27 loc) · 962 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
#!/usr/bin/env python
"""setup.py for rpmdeplint_runner."""
from setuptools import setup, find_packages
def get_requirements():
"""Parse dependencies from the 'requirements.txt' file."""
with open("requirements.txt") as fd:
lines = fd.read().splitlines()
requires, links = [], []
for line in lines:
if line.startswith("git+"):
links.append(line)
elif line:
requires.append(line)
return requires, links
install_requires, dependency_links = get_requirements()
setup(
name="rpmdeplint-runner",
version="0.1",
description="A simple wrapper around rpmdeplint for CI purposes.",
install_requires=install_requires,
dependency_links=dependency_links,
license="Apache-2.0",
author="Michal Srb",
author_email="[email protected]",
url="https://github.com/fedora-ci/rpmdeplint-runner",
packages=find_packages(exclude=["tests"]),
)