-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
34 lines (32 loc) · 1022 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
32
33
34
#!/usr/bin/env python
import os
import sys
from setuptools import setup, find_packages
from pkg_resources import resource_filename
# depending on your execution context the version file
# may be located in a different place!
vsn_path = resource_filename(__name__, 'hvac/version')
if not os.path.exists(vsn_path):
vsn_path = resource_filename(__name__, 'version')
if not os.path.exists(vsn_path):
print("%s is missing" % vsn_path)
sys.exit(1)
setup(
name='hvac',
version=open(vsn_path, 'r').read(),
description='HashiCorp Vault API client',
author='Ian Unruh',
author_email='[email protected]',
url='https://github.com/ianunruh/hvac',
keywords=['hashicorp', 'vault'],
classifiers=['License :: OSI Approved :: Apache Software License'],
packages=find_packages(),
install_requires=[
'requests>=2.7.0',
],
include_package_data=True,
package_data={'hvac':['version']},
extras_require={
'parser': ['pyhcl>=0.2.1,<0.3.0']
}
)