|
a |
|
b/setup.py |
|
|
1 |
from setuptools import setup |
|
|
2 |
|
|
|
3 |
if __name__ == '__main__': |
|
|
4 |
setup() |
|
|
5 |
|
|
|
6 |
# import os |
|
|
7 |
# import sys |
|
|
8 |
# from shutil import rmtree |
|
|
9 |
# |
|
|
10 |
# import pandas as pd |
|
|
11 |
# from setuptools import setup, find_packages, Command |
|
|
12 |
# |
|
|
13 |
# |
|
|
14 |
# class UploadCommand(Command): |
|
|
15 |
# """Support setup.py upload.""" |
|
|
16 |
# |
|
|
17 |
# description = 'Build and publish the package.' |
|
|
18 |
# user_options = [] |
|
|
19 |
# |
|
|
20 |
# @staticmethod |
|
|
21 |
# def status(s): |
|
|
22 |
# """Prints things in bold. |
|
|
23 |
# |
|
|
24 |
# Args: |
|
|
25 |
# s: |
|
|
26 |
# """ |
|
|
27 |
# print('\033[1m{0}\033[0m'.format(s)) |
|
|
28 |
# |
|
|
29 |
# def initialize_options(self): |
|
|
30 |
# pass |
|
|
31 |
# |
|
|
32 |
# def finalize_options(self): |
|
|
33 |
# pass |
|
|
34 |
# |
|
|
35 |
# def run(self): |
|
|
36 |
# try: |
|
|
37 |
# self.status('Removing previous builds…') |
|
|
38 |
# rmtree(os.path.join(here, 'dist')) |
|
|
39 |
# except OSError: |
|
|
40 |
# pass |
|
|
41 |
# |
|
|
42 |
# self.status('Building Source and Wheel (universal) distribution…') |
|
|
43 |
# os.system('{0} setup.py sdist bdist_wheel --universal'.format(sys.executable)) |
|
|
44 |
# |
|
|
45 |
# self.status('Uploading the package to PyPi via Twine…') |
|
|
46 |
# os.system('twine upload dist/*') |
|
|
47 |
# |
|
|
48 |
# self.status('Pushing git tags…') |
|
|
49 |
# os.system('git tag v{0}'.format(version)) |
|
|
50 |
# os.system('git push --tags') |
|
|
51 |
# |
|
|
52 |
# sys.exit() |
|
|
53 |
# |
|
|
54 |
# |
|
|
55 |
# with open('README.md') as readme_file: |
|
|
56 |
# readme = readme_file.read() |
|
|
57 |
# |
|
|
58 |
# # Package meta-data. |
|
|
59 |
# version='0.8.9' |
|
|
60 |
# DESCRIPTION = 'OpenOmics provides a bioinformatics API and web-app platform integrate and visualize the multiomics and clinical data.' |
|
|
61 |
# URL = 'https://github.com/JonnyTran/OpenOmics' |
|
|
62 |
# EMAIL = 'nhat.tran@mavs.uta.edu' |
|
|
63 |
# |
|
|
64 |
# AUTHOR = 'Jonny Tran' |
|
|
65 |
# |
|
|
66 |
# requirements = pd.read_table("./requirements.txt", header=None)[0].tolist() |
|
|
67 |
# setup_requirements = ['pytest-runner', 'twine'] |
|
|
68 |
# test_requirements = ['pytest', ] |
|
|
69 |
# |
|
|
70 |
# here = os.path.abspath(os.path.dirname(__file__)) |
|
|
71 |
# |
|
|
72 |
# setup( |
|
|
73 |
# name=NAME, |
|
|
74 |
# version=version, |
|
|
75 |
# packages=find_packages(include=['openomics', 'openomics.database', 'openomics.utils', 'openomics.visualization']), |
|
|
76 |
# package_dir={NAME: 'openomics', |
|
|
77 |
# 'openomics_web': 'openomics_web'}, |
|
|
78 |
# url=URL, |
|
|
79 |
# license='MIT license', |
|
|
80 |
# install_requires=requirements, |
|
|
81 |
# setup_requires=setup_requirements, |
|
|
82 |
# # extras_require={ |
|
|
83 |
# # ':python_version == "2.7"': [ |
|
|
84 |
# # 'six==1.10', |
|
|
85 |
# # 'lxml==4.3.5' |
|
|
86 |
# # ], |
|
|
87 |
# # }, |
|
|
88 |
# python_requires='>=3.6', |
|
|
89 |
# test_suite='tests', |
|
|
90 |
# tests_require=test_requirements, |
|
|
91 |
# classifiers=[ |
|
|
92 |
# 'Development Status :: 2 - Pre-Alpha', |
|
|
93 |
# 'Intended Audience :: Developers', |
|
|
94 |
# 'License :: OSI Approved :: MIT License', |
|
|
95 |
# 'Natural Language :: English', |
|
|
96 |
# 'Programming Language :: Python :: 3', |
|
|
97 |
# 'Programming Language :: Python :: 3.6', |
|
|
98 |
# 'Programming Language :: Python :: 3.7', |
|
|
99 |
# 'Programming Language :: Python :: 3.8', |
|
|
100 |
# 'Programming Language :: Python :: 3.9', |
|
|
101 |
# ], |
|
|
102 |
# author=AUTHOR, |
|
|
103 |
# author_email=EMAIL, |
|
|
104 |
# description=DESCRIPTION, |
|
|
105 |
# long_description=readme, |
|
|
106 |
# long_description_content_type="text/markdown", |
|
|
107 |
# cmdclass={ |
|
|
108 |
# 'upload': UploadCommand, |
|
|
109 |
# }, |
|
|
110 |
# include_package_data=True, |
|
|
111 |
# zip_safe=False, |
|
|
112 |
# ) |