-
Notifications
You must be signed in to change notification settings - Fork 12
/
setup.py
executable file
·83 lines (77 loc) · 2.48 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/usr/bin/env python
# Copyright (c) 2017 "Shopify inc." All rights reserved.
# Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.
import re
try:
import setuptools as setuplib
except ImportError:
import distutils.core as setuplib
def get_version():
version = None
with open('pyoozie/__init__.py', 'r') as fdesc:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fdesc.read(), re.MULTILINE).group(1)
if not version:
raise RuntimeError('Cannot find version information')
return version
setuplib.setup(
name='pyoozie',
version=get_version(),
description='A Python client for querying and scheduling with Oozie',
author='Shopify Data Acceleration',
author_email='data-acceleration@shopify.com',
url='https://github.com/Shopify/pyoozie',
packages=['pyoozie'],
install_requires=[
'enum34>=0.9.23 ; python_version<"3.4"',
'requests>=2.12.3',
'six>=1.10.0',
'typing ; python_version<"3.5"',
'untangle>=1.1.0',
'yattag>=1.7.2,<=1.12.2',
],
extras_require={
'deploy': [
'twine>=1.9.1',
'setuptools>=0.9'
],
'test': [
'autopep8',
'flake8',
'mock',
'pycodestyle>=2.2.0,<2.6.0',
'pylint>=1.7.1,<1.8',
'pytest-cov>=2.4.0,<2.6', # pinned, see https://github.com/z4r/python-coveralls/issues/66
'pytest-randomly',
'pytest>=3.0',
'requests-mock',
'shopify_python==0.4.1',
'xmltodict',
'pywebhdfs>=0.4.1',
],
'test: python_version ~= "3.4"': [ # mypy 0.700 dropped python 3.4 support
'mypy == 0.670',
],
'test: python_version >= "3.5"': [
'mypy',
],
'docs': [
'sphinx >= 1.6',
'sphinx_rtd_theme',
],
},
license="MIT",
keywords=['oozie'],
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
test_suite='tests',
)