Completed
Push — master ( 5f44e5...e15280 )
by Dieter
02:12 queued 01:10
created

get_requirements()   A

Complexity

Conditions 2

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %
Metric Value
cc 2
dl 0
loc 4
rs 10
1
#!/usr/bin/env python
2
# vim: set expandtab sw=4 ts=4:
3
"""
4
Setup file.
5
6
Specify dependencies, package name and version,
7
and other meta data.
8
9
This file is part of buildtimetrend/python-lib
10
<https://github.com/buildtimetrend/python-lib>
11
"""
12
from setuptools import setup, find_packages
13
import os
14
import buildtimetrend
15
16
def get_requirements(filename):
17
    setup_path = os.path.dirname(__file__)
18
    with open(os.path.join(setup_path, filename), 'r') as reqs_file:
19
        return reqs_file.readlines()
20
21
setup(
22
    name=buildtimetrend.NAME,
23
    version=buildtimetrend.VERSION,
24
    packages=find_packages(),
25
    install_requires=get_requirements('requirements.txt'),
26
    tests_require=get_requirements('requirements_test.txt'),
27
    extras_require={
28
        'native': get_requirements('requirements_native.txt')
29
    },
30
31
    # metadata
32
    author="Dieter Adriaenssens",
33
    author_email="[email protected]",
34
    description="Visualise what's trending in your build process",
35
    long_description="Buildtime Trend generates and gathers timing data of " \
36
    "build processes. The aggregated data is used to create charts to " \
37
    "visualise trends of the build process.\n" \
38
    "These trends can help you gain insight in your build process : " \
39
    "which stages take most time? Which stages are stable or have a " \
40
    "fluctuating duration? Is there a decrease or increase in average " \
41
    "build duration over time?\n" \
42
    "With these insights you can improve the stability of your build " \
43
    "process and make it more efficient.\n\n" \
44
    "The generation of timing data is done with either a client or using " \
45
    "Buildtime Trend as a Service.\n"
46
    "The Python based client generates custom timing tags for any shell " \
47
    "based build process and can easily be integrated. A script processes " \
48
    "the generated timing tags when the build is finished, and stores " \
49
    "the results.\n" \
50
    "Buildtime Trend as a Service gets timing and build related data by " \
51
    "parsing the logfiles of a buildprocess. Currently, Travis CI is " \
52
    "supported. Simply trigger the service at the end of a Travis CI build " \
53
    "and the parsing, aggregating and storing of" \
54
    "the data is done automatically.",
55
    url="https://buildtimetrend.github.io/",
56
    license="AGPLv3+",
57
    keywords=["trends", "charts", "build", "ci", "timing data"],
58
    classifiers=[
59
        "Development Status :: 4 - Beta",
60
        "Programming Language :: Python",
61
        "Programming Language :: Python :: 2",
62
        "Programming Language :: Python :: 2.7",
63
        "Programming Language :: Python :: 3",
64
        "Programming Language :: Python :: 3.3",
65
        "Programming Language :: Python :: 3.4",
66
        "Programming Language :: Python :: 3.5",
67
        "Intended Audience :: Developers",
68
        "Operating System :: OS Independent",
69
        "License :: OSI Approved :: GNU Affero General Public License v3" \
70
        " or later (AGPLv3+)",
71
        "Topic :: Software Development :: Libraries :: Python Modules",
72
        "Topic :: Software Development :: Build Tools",
73
        "Topic :: Software Development :: Quality Assurance"
74
    ]
75
)
76