forked from urmi-21/pyrpipe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
73 lines (57 loc) · 1.97 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
67
68
69
70
71
72
73
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Nov 23 15:24:54 2019
@author: usingh
"""
import setuptools
import os
import sys
#exit if python 2
if sys.version_info.major != 3:
raise EnvironmentError("""pyrpipe requires python 3.5 or higher.Please upgrade your python.""")
#read description
with open("README.md", "r") as fh:
long_description = fh.read()
#read version info
cwd =os.path.abspath(os.path.dirname("__file__"))
version = {}
with open(os.path.join(cwd, "pyrpipe", "version.py")) as fp:
exec(fp.read(), version)
version = version["__version__"]
if version is None:
print("Error: version is missing. Exiting...", file=sys.stderr)
sys.exit(1)
setuptools.setup(
name="pyrpipe",
version=version,
author="Urminder Singh",
author_email="[email protected]",
description="pyrpipe",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/urmi-21/pyrpipe",
packages=setuptools.find_packages(),
include_package_data=True,
entry_points={
'console_scripts': [
'pyrpipe = pyrpipe.__main__:main',
'pyrpipe_diagnostic = pyrpipe.__diagnostic__:main'
]
},
install_requires=[line.rstrip() for line in open("requirements.txt", "rt")],
tests_require=["pytest"],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: Unix",
# Indicate who your project is intended for
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Bio-Informatics',
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7'
],
python_requires='>=3.6',
)