Skip to content

Commit 5169618

Browse files
committed
fix pip install
1 parent a95926a commit 5169618

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎setup.py‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33

4-
import fitbit
4+
import re
55

66
try:
77
from setuptools import setup
88
except ImportError:
99
from distutils.core import setup
1010

1111
required = ['requests==0.10.1', 'python-dateutil==1.5']
12-
12+
fbinit = open('fitbit/__init__.py').read()
13+
author = re.search("__author__ = '([^']+)'", fbinit).group(1)
14+
version = re.search("__version__ = '([^']+)'", fbinit).group(1)
1315

1416
setup(
1517
name='fitbit',
16-
version=fitbit.__version__,
18+
version=version,
1719
description='Fitbit API Wrapper.',
1820
long_description=open('README.rst').read(),
19-
author='Issac Kelly, ORCAS',
21+
author=author,
2022
author_email='issac@kellycreativetech.com',
2123
url='https://github.com/issackelly/python-fitbit',
2224
packages=['fitbit'],

0 commit comments

Comments
 (0)