-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·44 lines (38 loc) · 1.16 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
import os
import sys
from setuptools import setup, find_packages
from setuptools.command.test import test
# Get the long description from the README file
with open(os.path.join(os.path.abspath(os.path.dirname(__file__)), 'README.md'), encoding='utf-8') as f:
long_description = f.read()
class PyTest(test):
def run_tests(self):
# import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main(['tests'])
sys.exit(errno)
setup(
name='dftlib',
version='0.5',
author='M. Volk',
author_email='m.volk@utwente.nl',
maintainer='M. Volk',
maintainer_email='m.volk@utwente.nl',
url='https://github.com/volkm/dftlib',
description='dftlib - Python library for dynamic fault tree analysis',
long_description=long_description,
long_description_content_type='text/markdown',
packages=find_packages(),
cmdclass={
'test': PyTest
},
zip_safe=False,
install_requires=[],
extras_require={
'with_smt': ['z3-solver'],
'with_stormpy': ['stormpy']
},
setup_requires=['pytest-runner'],
tests_require=['pytest'],
python_requires='>=3',
)