-
Notifications
You must be signed in to change notification settings - Fork 34
/
setup.py
43 lines (33 loc) · 1.07 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
43
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from pdc import get_version
PACKAGE_NAME = 'pdc'
PACKAGE_VER = get_version()
PACKAGE_DESC = 'PDC - Product Definition Center'
PACKAGE_URL = 'https://github.com/product-definition-center/product-definition-center.git' # noqa
def get_install_requires():
requires = []
links = []
for line in open('requirements/production.txt', 'r'):
line = line.strip()
if not line.startswith('#'):
parts = line.split('#egg=')
if len(parts) == 2:
links.append(line)
requires.append(parts[1])
else:
requires.append(line)
return requires, links
install_requires, dependency_links = get_install_requires()
setup(
name=PACKAGE_NAME,
version=PACKAGE_VER,
description=PACKAGE_DESC,
url=PACKAGE_URL,
author='PDC Devel Team',
author_email='pdc-dev-list@redhat.com',
packages=find_packages(),
include_package_data=True,
install_requires=install_requires,
dependency_links=dependency_links,
)