forked from Nitrate/Nitrate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
57 lines (44 loc) · 1.48 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import tcms
def get_install_requires():
requires = []
links = []
with open('requirements/base.txt', 'r') as f:
for line in f:
dep_line = line.strip()
parts = dep_line.split('#egg=')
if len(parts) == 2:
links.append(dep_line)
requires.append(parts[1])
else:
requires.append(dep_line)
return requires, links
install_requires, dependency_links = get_install_requires()
def get_long_description():
with open('README.rst', 'r') as f:
return f.read()
setup(
name='nitrate',
version=tcms.__version__,
description='Test Case Management System',
long_description=get_long_description(),
author='Nitrate Team',
maintainer='Chenxiong Qi',
maintainer_email='qcxhome@gmail.com',
url='https://github.com/Nitrate/Nitrate/',
license='GPLv2+',
keywords='test case',
install_requires=install_requires,
dependency_links=dependency_links,
packages=find_packages(),
include_package_data=True,
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Topic :: Software Development :: Quality Assurance',
'Topic :: Software Development :: Testing',
],
)