-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
63 lines (52 loc) · 1.95 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
51
52
53
54
55
56
57
58
59
60
61
62
63
import os
from setuptools import setup, find_packages
from setuptools.command.install import install
from pyiwe import __version__ as pyiwe_ver
from pyiwe.tnt_install import TNTSetup
class _TNTSetup(install):
"""Install terminal TNT in setup.py"""
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.tnt_setup = TNTSetup(installers_path=os.path.join('.', 'pyiwe', 'tnt_install'))
def run(self):
self.tnt_setup.setup()
install.run(self)
with open("README.rst", "r", encoding='utf8') as f:
long_description = f.read()
with open("requirements.txt", "r", encoding='utf8') as f:
reqs = f.read()
setup(
name=f'pyiwe',
version=pyiwe_ver,
packages=find_packages(include=['pyiwe', 'pyiwe.utils', 'pyiwe.tnt_install']),
license='MIT',
author='Alexander Popkov',
author_email='[email protected]',
description="Python wrapper for TNT (Tree analysis using New Technology) implied weighting with clades support",
long_description=long_description,
install_requires=reqs,
package_data={'pyiwe': ['tests/testdata/bryocorini/*',
'tests/testscripts/*',
'tnt_scripts/*',
'tnt_install/*'
]},
setup_requires=['flake8'],
tests_require=['pytest'],
python_requires='<=3.9.19',
cmdclass={
'install': _TNTSetup,
},
classifiers=[
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"License :: OSI Approved",
"Operating System :: Unix",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
url="https://github.com/alexander-pv/pyiwe",
download_url="https://pypi.org/project/pyiwe/#files"
)