forked from hvac/hvac
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
47 lines (44 loc) · 1.46 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
#!/usr/bin/env python
import os
import sys
from setuptools import setup, find_packages
from pkg_resources import resource_filename
with open("README.md", "r") as fh:
long_description = fh.read()
# 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',
long_description=long_description,
long_description_content_type="text/markdown",
author='Ian Unruh',
author_email='[email protected]',
url='https://github.com/hvac/hvac',
keywords=['hashicorp', 'vault'],
classifiers=[
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: CPython',
],
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']
}
)