-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
executable file
·90 lines (84 loc) · 2.5 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/usr/bin/env python
"""
Standard python setup.py file
to build : python setup.py build
to install : python setup.py install --prefix=<some dir>
to clean : python setup.py clean
to build doc : python setup.py doc
to run tests : python setup.py test
"""
import os
import setuptools
# [set version]
version = 'PACKAGE_VERSION'
# [version set]
def datafiles(idir, pattern=None):
"""Return list of data files in provided relative dir"""
files = []
for dirname, dirnames, filenames in os.walk(idir):
for subdirname in dirnames:
files.append(os.path.join(dirname, subdirname))
for filename in filenames:
if filename[-1] == '~':
continue
# match file name pattern (e.g. *.css) if one given
if pattern and not fnmatch.fnmatch(filename, pattern):
continue
files.append(os.path.join(dirname, filename))
return files
data_files = datafiles('examples')
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="ChessAnalysisPipeline",
version=version,
author="Keara Soloway, Rolf Verberg, Valentin Kuznetsov",
author_email="",
description="CHESS analysis pipeline framework",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/CHESSComputing/ChessAnalysisPipeline",
packages=[
'CHAP',
'CHAP.common',
'CHAP.common.models',
'CHAP.edd',
'CHAP.giwaxs',
'CHAP.inference',
'CHAP.saxswaxs',
'CHAP.sin2psi',
'CHAP.tomo',
'CHAP.utils',
'CHAP.foxden',
'MLaaS'
],
package_dir={
'CHAP': 'CHAP',
'CHAP.common': 'CHAP/common',
'CHAP.common.models': 'CHAP/common/models',
'CHAP.edd': 'CHAP/edd',
'CHAP.giwaxs': 'CHAP/giwaxs',
'CHAP.inference': 'CHAP/inference',
'CHAP.saxswaxs': 'CHAP/saxswaxs',
'CHAP.sin2psi': 'CHAP/sin2psi',
'CHAP.tomo': 'CHAP/tomo',
'CHAP.foxden': 'CHAP/foxden',
'CHAP.utils': 'CHAP/utils',
'MLaaS': 'MLaaS'
},
package_data={
'examples': data_files
},
entry_points={
'console_scripts': ['CHAP = CHAP.runner:main']
},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires='>=3.8',
install_requires=[
'PyYAML'
],
)