-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
71 lines (61 loc) · 2.31 KB
/
setup.py
File metadata and controls
71 lines (61 loc) · 2.31 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
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, 5)
if sys.version_info[:2] < MIN_PY_VER:
sys.stderr.write(
("ERROR: Requires Python %i.%i or later. " % MIN_PY_VER)
+ ("Python %d.%d detected.\n" % sys.version_info[:2])
)
sys.exit(1)
REQUIRES = ["numpy", "pandas", "matplotlib"]
PACKAGES = ["BioNick"]
EXTENSIONS = []
setup(
name="BioNick",
version='0.0.7',
author="Md Nafis Ul Alam",
author_email="deadlinewasyesterday@gmail.com",
url="https://github.com/DeadlineWasYesterday/BioNick",
description="Tools for newick file manipulation and visualization.",
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"
],
packages=PACKAGES,
ext_modules=EXTENSIONS,
include_package_data=True, # done via MANIFEST.in under setuptools
install_requires=REQUIRES,
python_requires=">=%i.%i" % MIN_PY_VER,
)