-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
64 lines (55 loc) · 2.05 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
import pathlib
from setuptools import setup, find_packages
package_name = 'UniFuncNet'
def get_package_version():
import os
from sys import platform
if platform.startswith('win'):
SPLITTER = '\\'
else:
SPLITTER = '/'
dir_name = os.path.dirname(os.path.abspath(__file__))
init_path = f'{dir_name}{SPLITTER}{package_name.lower()}{SPLITTER}__init__.py'
package_version = None
with open(init_path) as file:
for line in file:
if '__version__' in line:
package_version = line.replace('__version__', '')
package_version = package_version.strip('\n')
package_version = package_version.strip()
package_version = package_version.strip('=')
package_version = package_version.strip()
package_version = package_version.strip('"')
package_version = package_version.strip('"')
return package_version
# The directory containing this file
HERE = pathlib.Path(__file__).parent
# The text of the README file
README = (HERE / "README.md").read_text(encoding='utf-8')
long_description = 'UniFuncNet is network annotation tool that integrates multiple biological databases into one composite output.'
setup(
name=package_name,
version=get_package_version(),
author="Pedro Queirós",
author_email="pdqueiros@gmail.com",
description="Biological network annotation tool.",
long_description=long_description,
long_description_content_type='text/markdown',
url="https://github.com/PedroMTQ/UniFuncNet",
project_urls={
"Bug Tracker": "https://github.com/PedroMTQ/UniFuncNet/issues",
},
packages=find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
license="MIT",
install_requires=['requests', 'beautifulsoup4', 'lxml'],
entry_points={
"console_scripts": [
"unifuncnet=unifuncnet.__main__:main",
],
},
)