-
Notifications
You must be signed in to change notification settings - Fork 13
/
setup.py
executable file
·54 lines (48 loc) · 1.65 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
#!/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
import setuptools
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
setuptools.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='[email protected]',
license='MIT',
packages=['shopify_python'],
include_package_data=True,
package_data={'shopify_python': ['py.typed']}, # PEP-561: typing marker for MyPy
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.11 ; python_version<"3.0"',
'GitPython>=3.1.30 ; python_version>="3.0"',
'typing~=3.6.6 ; python_version<"3.5"',
'autopep8~=1.4',
],
extras_require={
':python_version>="3.0"': [
'pylint>=2.1.1'
],
':python_version<"3.0"': [
'pylint~=1.9.3'
]
}
)