-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
66 lines (54 loc) · 1.93 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
#! /usr/bin/env python
from setuptools import setup
PACKAGE = "bedhost"
# Additional keyword arguments for setup().
extra = {}
# Ordinary dependencies
DEPENDENCIES = []
with open("requirements/requirements-all.txt", "r") as reqs_file:
for line in reqs_file:
print(line)
if not line.strip():
continue
DEPENDENCIES.append(line)
extra["install_requires"] = DEPENDENCIES
with open("{}/_version.py".format(PACKAGE), "r") as versionfile:
version = versionfile.readline().split()[-1].strip("\"'\n")
# Handle the pypi README formatting.
try:
import pypandoc
long_description = pypandoc.convert_file("README.md", "rst")
msg = "\033[032mPandoc conversion succeeded.\033[0m"
except (IOError, ImportError, OSError):
msg = "\033[0;31mWarning: pandoc conversion failed!\033[0m"
long_description = open("README.md").read()
setup(
name=PACKAGE,
packages=[PACKAGE],
version=version,
description="A database server application that provides both a RESTful API "
"and GUI for access to BED files and related basic statistics",
long_description=long_description,
long_description_content_type="text/markdown",
classifiers=[
"Development Status :: 4 - Beta",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Bio-Informatics",
],
keywords="project, bioinformatics, sequencing, ngs, workflow, GUI, bed, server",
url="",
author="Oleksandr Khoroshevskyi, Michal Stolarczyk, Ognen Duzlevski, Bingjie Xue, Nathan Sheffield",
license="BSD2",
entry_points={
"console_scripts": [
"{p} = {p}.__main__:main".format(p=PACKAGE),
],
},
include_package_data=True,
**extra,
)
print(msg)