forked from asdf-format/asdf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·31 lines (26 loc) · 931 Bytes
/
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
#!/usr/bin/env python
import os
from setuptools import setup, find_packages
packages = find_packages()
packages.append('asdf.schemas')
packages.append('asdf.reference_files')
packages.append('asdf.resources')
package_dir = {
'asdf.schemas': 'asdf-standard/schemas',
'asdf.reference_files': 'asdf-standard/reference_files',
'asdf.resources': 'asdf-standard/resources',
}
package_data = {
'asdf.commands.tests.data': ['*'],
'asdf.tags.core.tests.data': ['*'],
'asdf.tests.data': ['*'],
'asdf.reference_files': ['*', '**/*'],
'asdf.schemas': ['*.yaml', '**/*.yaml', '**/**/*.yaml', '**/**/**/*.yaml'],
'asdf.resources': ['*.yaml', '**/*.yaml', '**/**/*.yaml', '**/**/**/*.yaml'],
}
setup(
use_scm_version={"write_to": os.path.join("asdf", "version.py"), "write_to_template": 'version = "{version}"\n'},
packages=packages,
package_dir=package_dir,
package_data=package_data,
)