-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
25 lines (21 loc) · 737 Bytes
/
setup.py
File metadata and controls
25 lines (21 loc) · 737 Bytes
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
import pathlib
import re
from setuptools import setup
HERE = pathlib.Path(__file__).parent
# Get long_description value
README = (HERE/'README.md').read_text()
#Extract version value from __init__.py
version_regex = r'__version__ = ["\'](.+)["\']'
text = (HERE/"withings/__init__.py").read_text()
VERSION = re.search(version_regex, text).group(1)
setup(
name="python-withings",
version=VERSION,
description="Wrapper package for Withings API",
long_description_content_type="text/markdown",
long_description=README,
url="https://github.com/strohganoff/python-withings",
packages=["withings", "withings/oauth2"],
include_package_data=True,
install_requires=["requests-oauthlib","python-dateutil"],
)