Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
79 lines (70 loc) · 2.58 KB
/
Copy pathsetup.py
File metadata and controls
79 lines (70 loc) · 2.58 KB
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
#!/usr/bin/python3
import ast, os, sys
try:
from setuptools import __version__ as setuptools_version
from setuptools import Command
from setuptools import Extension
from setuptools import setup
except ImportError:
sys.exit(
"We need the Python library setuptools to be installed. "
"Try running: python -m ensurepip"
)
setuptools_version_tuple = tuple(int(x) for x in setuptools_version.split("."))
if setuptools_version_tuple < (70, 1) and "bdist_wheel" in sys.argv:
# Check for presence of wheel in setuptools < 70.1
# Before setuptools 70.1, wheel is needed to make a bdist_wheel.
# Since 70.1 was released including
# https://github.com/pypa/setuptools/pull/4369,
# it is not needed.
try:
import wheel # noqa: F401
except ImportError:
sys.exit(
"We need both setuptools AND wheel packages installed "
"for bdist_wheel to work. Try running: pip install wheel"
)
#Make sure we have the right Python version.
MIN_PY_VER = (3, 8)
if sys.version_info[:2] < MIN_PY_VER:
sys.stderr.write(
("ERROR: gmcomp requires Python %i.%i or later. " % MIN_PY_VER)
+ ("Python %d.%d detected.\n" % sys.version_info[:2])
)
# sys.exit(1)
# elif sys.version_info[:2] == (3, 9):
# sys.stderr.write("WARNING: phyca support for Python 3.9 is now deprecated.\n")
REQUIRES = ["numpy", "pandas", "matplotlib", "seaborn"]
PACKAGES = ["gmcomp"]
EXTENSIONS = []
setup(
name="gmcomp",
version='0.0.2',
author="Md Nafis Ul Alam",
author_email="deadlinewasyesterday@gmail.com",
url="https://github.com/DeadlineWasYesterday/gmcomp",
description="For comparing gene models across different annotations of the same genome.",
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
classifiers=[
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
#"License :: Freely Distributable",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Bio-Informatics"
],
entry_points={
'console_scripts': [
'gmcomp=gmcomp:main',
],
},
packages=PACKAGES,
ext_modules=EXTENSIONS,
#package_data={'phyca' :['CUS.tsv']},
#include_package_data=True, # done via MANIFEST.in under setuptools
install_requires=REQUIRES,
python_requires=">=%i.%i" % MIN_PY_VER,
)