-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
50 lines (44 loc) · 1.58 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
"""setup."""
from __future__ import unicode_literals
from setuptools import setup, find_packages
try: # for pip >= 10
from pip._internal.req import parse_requirements
except ImportError: # for pip <= 9.0.3
from pip.req import parse_requirements
# parse_requirements() returns generator of pip.req.InstallRequirement objects
install_reqs = parse_requirements("requirements.txt", session=False)
# reqs is a list of requirement
# e.g. ['django==1.5.1', 'mezzanine==1.4.6']
reqs = [str(ir.req) for ir in install_reqs]
description = """Pulls data from agile systems and analyzes it."""
author = "cmheisel"
README = open('README.md', 'r').read()
try:
version = open('version.txt', 'r').read().strip()
except FileNotFoundError:
version = "unknown"
setup(
name='agile-analytics',
version=version,
description=description,
long_description=README,
classifiers=[
# Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
'Development Status :: 3 - Alpha',
'Intended Audience :: Information Technology',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities',
'License :: OSI Approved :: MIT License',
],
keywords='jira agile lean kanban metrics',
author=author,
author_email='chris@heisel.org',
url='https://github.com/cmheisel/agile-analytics',
license='MIT License',
packages=find_packages(),
include_package_data=True,
zip_safe=True,
install_requires=reqs
)