-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
63 lines (52 loc) · 1.7 KB
/
setup.py
File metadata and controls
63 lines (52 loc) · 1.7 KB
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
58
59
60
61
62
import os
import sys
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
short_description = "Python classes to handle MIBiG data"
long_description = open('README.md').read()
install_requires = [
"helperlibs",
]
tests_require = [
'pytest',
'coverage',
'pytest-cov',
]
def read_version():
for line in open(os.path.join('mibig', '__init__.py'), 'r'):
if line.startswith('__version__'):
return line.split('=')[-1].strip().strip('"')
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
errcode = pytest.main(self.test_args)
sys.exit(errcode)
setup(
name='python-mibig',
version=read_version(),
author='Kai Blin',
author_email='kblin@biosustain.dtu.dk',
description=short_description,
long_description=long_description,
long_description_content_type='text/markdown',
install_requires=install_requires,
tests_require=tests_require,
packages=find_packages(include=["mibig", "mibig.*"]),
url='https://github.com/mibig-secmet/python-mibig',
license='GNU Affero General Public License v3 or later (AGPLv3+)',
classifiers=[
'Programming Language :: Python',
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Bio-Informatics',
'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
'Operating System :: OS Independent',
],
extras_require={
'testing': tests_require,
},
)