Debian Codegraph @

setup.py

raw
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3 """Define the setup options."""
4
5 try:
6 import distribute_setup
7 distribute_setup.use_setuptools()
8 except:
9 pass
10
11 try:
12 from setuptools import setup, find_packages
13 except ImportError:
14 from distutils.core import setup
15
16 import os
17 import re
18
19
20 with open(os.path.join(os.path.dirname(__file__), 'influxdb', '__init__.py')) as f:
21 version = re.search("__version__ = '([^']+)'", f.read()).group(1)
22
23 with open('requirements.txt', 'r') as f:
24 requires = [x.strip() for x in f if x.strip()]
25
26 with open('test-requirements.txt', 'r') as f:
27 test_requires = [x.strip() for x in f if x.strip()]
28
29 with open('README.rst', 'r') as f:
30 readme = f.read()
31
32
33 setup(
34 name='influxdb',
35 version=version,
36 description="InfluxDB client",
37 long_description=readme,
38 url='https://github.com/influxdb/influxdb-python',
39 license='MIT License',
40 packages=find_packages(exclude=['tests']),
41 test_suite='tests',
42 tests_require=test_requires,
43 install_requires=requires,
44 extras_require={'test': test_requires},
45 classifiers=[
46 'Development Status :: 3 - Alpha',
47 'Intended Audience :: Developers',
48 'License :: OSI Approved :: MIT License',
49 'Operating System :: OS Independent',
50 'Programming Language :: Python',
51 'Programming Language :: Python :: 2.7',
52 'Programming Language :: Python :: 3',
53 'Programming Language :: Python :: 3.4',
54 'Programming Language :: Python :: 3.5',
55 'Programming Language :: Python :: 3.6',
56 'Topic :: Software Development :: Libraries',
57 'Topic :: Software Development :: Libraries :: Python Modules',
58 ],
59 )