-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
61 lines (53 loc) · 1.66 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/usr/bin/env python3
"""Defines setup for pip."""
from os import path
from io import open
import re
import sys
from setuptools import setup, find_packages
PWD = path.abspath(path.dirname(__file__))
PACKAGE_NAME = 'dynafed_storagestats'
# Obtain version from version.py
try:
filepath = PWD + '/' + PACKAGE_NAME + '/version.py'
with open(filepath) as file:
__version__, = re.findall('__version__ = "(.*)"', file.read())
except Exception as error:
sys.stderr.write("Warning: Could not open '%s' due %s\n" % (filepath, error))
sys.exit(1)
# Get the long description from the README file
with open(path.join(PWD, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name=PACKAGE_NAME,
version=__version__,
description='Dynafed Storage Stats Module',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/hep-gc/dynafed_storagestats',
author='Fernando Fernandez Galindo',
author_email='ffernandezgalindo@triumf.ca',
license='Apache',
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3',
],
packages=find_packages(exclude=['docs', 'scripts', 'tests']),
python_requires='~=3.4',
install_requires=[
'azure-storage==0.36.0',
'boto3',
'lxml',
'prometheus_client',
'python-memcached',
'PyYAML',
'requests',
'requests_aws4auth'
],
entry_points={
'console_scripts': [
'dynafed-storage=dynafed_storagestats.runner:main',
],
},
)