-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·57 lines (52 loc) · 1.69 KB
/
Copy pathsetup.py
File metadata and controls
executable file
·57 lines (52 loc) · 1.69 KB
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
#!/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('shopify_python/__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='shopify_python',
version=get_version(),
description='Python Standards Library for Shopify',
url='http://github.com/shopify/shopify_python',
author='Shopify Data Acceleration',
author_email='data-acceleration@shopify.com',
license='MIT',
packages=['shopify_python'],
include_package_data=True,
zip_safe=False,
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2',
],
test_suite='tests',
install_requires=[
'GitPython>=2.1.1,<3',
'pylint>=1.7.1,<1.8',
'six>=1.10.0,<2',
'typing>=3.5.3.0,<4',
'autopep8>=1.2.2,<2',
],
extras_require={
'dev': [
'mock==2.0.0; python_version < "3.3"',
'mypy==0.501; python_version >= "3.3"',
'pycodestyle==2.3.1',
'pytest==3.0.6',
'pytest-randomly==1.1.2',
]
}
)