-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathsetup.py
More file actions
51 lines (45 loc) · 1.19 KB
/
setup.py
File metadata and controls
51 lines (45 loc) · 1.19 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
from setuptools import setup
import re
def _get_version():
"""Extract version from package."""
with open("smartcar/__init__.py") as reader:
match = re.search(
r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', reader.read(), re.MULTILINE
)
if match:
return match.group(1)
else:
raise RuntimeError("Unable to extract version.")
def _get_long_description():
"""Get README contents."""
with open("README.md") as reader:
return reader.read()
setup(
name="smartcar",
version=_get_version(),
description="Smartcar Python SDK",
long_description=_get_long_description(),
long_description_content_type="text/markdown",
author="Smartcar",
author_email="hello@smartcar.com",
packages=["smartcar"],
url="https://github.com/smartcar/python-sdk",
license="MIT",
install_requires=[
"python-dateutil",
"requests",
],
extras_require={
"dev": [
"black",
"ipdb",
"mock",
"responses",
"pytest",
"pytest-cov",
"selenium",
"retrying",
"wheel",
]
},
)