forked from NCI-GDC/gdcdictionary
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
33 lines (25 loc) · 714 Bytes
/
setup.py
File metadata and controls
33 lines (25 loc) · 714 Bytes
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
import os
from setuptools import setup, find_packages
VERSION_FILE = 'VERSION'
def get_version():
"""Returns the current dictionary version"""
current_dir = os.path.dirname(os.path.realpath(__file__))
version_path = os.path.join(current_dir, VERSION_FILE)
with open(version_path, 'r') as version_fd:
return version_fd.read().strip()
setup(
name='gdcdictionary',
version=get_version(),
packages=find_packages(),
install_requires=[
'PyYAML==3.11',
'jsonschema==2.5.1',
],
package_data={
"gdcdictionary": [
"schemas/*.yaml",
"schemas/projects/*.yaml",
"schemas/projects/*/*.yaml",
]
},
)