forked from orcasgit/python-fitbit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
39 lines (34 loc) · 1.27 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
from setuptools import setup
required = [line for line in open('requirements.txt').read().split("\n")]
required_dev = [line for line in open('requirements_dev.txt').read().split("\n") if not line.startswith("-r")]
fbinit = open('fitbit/__init__.py').read()
author = re.search("__author__ = '([^']+)'", fbinit).group(1)
author_email = re.search("__author_email__ = '([^']+)'", fbinit).group(1)
version = re.search("__version__ = '([^']+)'", fbinit).group(1)
setup(
name='fitbit',
version=version,
description='Fitbit API Wrapper.',
long_description=open('README.rst').read(),
author=author,
author_email=author_email,
url='https://github.com/orcasgit/python-fitbit',
packages=['fitbit'],
package_data={'': ['LICENSE']},
include_package_data=True,
install_requires=["distribute"] + required,
license='Apache 2.0',
test_suite='tests.all_tests',
tests_require=required_dev,
classifiers=(
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
),
)