-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
setup.py
81 lines (67 loc) · 2.57 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
from setuptools import setup, find_packages
def get_extra_requires(path, add_all=True):
import re
from collections import defaultdict
with open(path) as fp:
extra_deps = defaultdict(set)
for k in fp:
if k.strip() and not k.startswith('#'):
tags = set()
if ':' in k:
k, v = k.split(':')
tags.update(vv.strip() for vv in v.split(','))
tags.add(re.split('[<=>]', k)[0])
for t in tags:
extra_deps[t].add(k)
# add tag `all` at the end
if add_all:
extra_deps['all'] = set(vv for v in extra_deps.values() for vv in v)
return extra_deps
with open('README.rst', encoding='utf8') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
with open('requirements.txt') as requirements_file:
requirements = requirements_file.read().split('\n')
test_requirements = ['pytest', 'pytest-qt']
extras_require = get_extra_requires('requirements_extra.txt')
setup(
author="Guy Teichman",
author_email='[email protected]',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Topic :: Scientific/Engineering :: Bio-Informatics',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Scientific/Engineering :: Visualization',
],
description='RNAlysis is an analysis software for RNA sequencing data. '
'RNAlysis can help to filter, visualize, explore, analyze, and share your data. ',
install_requires=requirements,
python_requires='>=3.10, <3.13',
license="MIT license",
long_description=readme + '\n\n' + history,
include_package_data=True,
keywords='RNAlysis',
name='RNAlysis',
packages=find_packages(exclude=['tests', 'packaging']),
test_suite='tests',
tests_require=test_requirements,
extras_require=extras_require,
url='https://github.com/GuyTeichman/RNAlysis',
version='4.1.0',
zip_safe=False,
entry_points={
'console_scripts': [
'rnalysis-gui = rnalysis.gui:run_gui',
]}
)