-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
65 lines (53 loc) · 1.73 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
import glob
import setuptools
#######
def get_require_modules():
"""
Get main python requirements modules
"""
with open("./BacterialTyper/config/python/python_requirements_summary.csv", 'r') as f:
myModules = [line.strip().split(',')[0] for line in f]
return myModules
#######
def get_version():
"""
Original code: PhiSpy setup.py
https://github.com/linsalrob/PhiSpy/blob/master/setup.py
"""
with open("./VERSION", 'r') as f:
v = f.readline().strip()
return v
### subdmodules:: Islandpath-DIMOB
#islandpath_files = [os.path.join('third_party', 'Islandpath-DIMOB', x) for x in islandpath_files]
#islandpath_mod = Extension(
# "Islandpath-DIMOB",
# islandpath_files,
# include_dirs=[os.path.join('third_party', 'Islandpath-DIMOB')],
#)
#######
long_description_text = ""
with open("README.md", "r") as fh:
long_description_text = fh.read()
#######
setuptools.setup(
name='BacterialTyper',
version=get_version(),
scripts=glob.glob('main/*'),
author="Jose F. Sanchez-Herrero",
author_email="jfbioinformatics@gmail.com",
long_description_content_type="text/markdown",
long_description=long_description_text,
url="https://github.com/HCGB-IGTP/BacterialTyper/",
install_requires=get_require_modules(),
packages = setuptools.find_packages(),
include_package_data=True,
license='MIT License',
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent"
],
)
## https://github.com/sanger-pathogens/ariba/blob/master/setup.py
## https://dzone.com/articles/executable-package-pip-install
## https://github.com/BillMills/pythonPackageLesson