-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
59 lines (46 loc) · 1.52 KB
/
setup.py
File metadata and controls
59 lines (46 loc) · 1.52 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
#!/usr/bin/env python3
import os
from setuptools import find_packages, setup
dirname = os.path.dirname(__file__)
def extract_version():
with open(os.path.join(dirname, 'libfabulouscatpy/__init__.py')) as fd:
ns = {}
for line in fd:
if line.startswith('__version__'):
exec(line.strip(), ns)
return ns['__version__']
def package_files(directory):
paths = []
for (path, directories, filenames) in os.walk(directory):
for filename in filenames:
paths.append(os.path.join('..', path, filename))
return paths
setup(
name="libfabulouscatpy",
version=extract_version(),
author="Josh Chang and Aaron Heuser",
author_email="josh.chang@nih.gov",
packages=find_packages(),
package_dir={"libfabulouscatpy": "libfabulouscatpy"},
package_data={
'libfabulouscatpy': ['data/models/*.npz'],
},
include_package_data=True,
description="libfabulouscatpy",
long_description=open(os.path.join(dirname, "README.md")).read(),
classifiers=[
'Intended Audience :: Science/Research',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.11'
],
entry_points={
'console_scripts': [],
},
zip_safe=False
)