-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
47 lines (36 loc) · 1.31 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
import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
version = __import__('cram_unit').get_version()
_REQUIREMENTS_FILE = 'REQUIREMENTS.txt'
_README = 'README.md'
def _get_description():
with open(_get_local_file(_README)) as f:
_long_description = f.read()
return _long_description
def _get_local_file(file_name):
return os.path.join(os.path.dirname(__file__), file_name)
def _get_requirements(file_name):
with open(file_name, 'r') as f:
reqs = [line for line in f if not line.startswith("#")]
return reqs
setup(
name='CramUnit',
version=version,
packages=['cram_unit'],
license='BSD',
author='mpkocher',
author_email='mkocher@pacificbiosciences.com',
url="http://github.com/mpkocher/CramUnit",
download_url='https://github.com/mpkocher/CramUnit/tarball/0.8',
description='Tool to create Unittests/Xunit output from cram (*.t) tests.',
scripts=['bin/run_cram_unit.py'],
install_requires=_get_requirements(_get_local_file(_REQUIREMENTS_FILE)),
long_description=_get_description(),
keywords='testing cram jenkins xunit'.split(),
classifiers=['Development Status :: 4 - Beta',
'Environment :: Console',
'Topic :: Software Development :: Bug Tracking']
)