|
| 1 | +#!/usr/bin/env python |
| 2 | +# -*- coding: utf-8 -*- |
| 3 | + |
| 4 | +from ast import parse |
| 5 | +import os |
| 6 | +from setuptools import setup |
| 7 | + |
| 8 | + |
| 9 | +NAME = 'pandas_data_readers' |
| 10 | + |
| 11 | + |
| 12 | +def version(): |
| 13 | + """Return version string.""" |
| 14 | + with open(os.path.join(os.path.abspath(os.path.dirname(__file__)), |
| 15 | + 'pandas_data_readers', |
| 16 | + '__init__.py')) as input_file: |
| 17 | + for line in input_file: |
| 18 | + if line.startswith('__version__'): |
| 19 | + return parse(line).body[0].value.s |
| 20 | + |
| 21 | + |
| 22 | +def readme(): |
| 23 | + with open('README.rst') as f: |
| 24 | + return f.read() |
| 25 | + |
| 26 | +INSTALL_REQUIRES = ( |
| 27 | + ['pandas'] |
| 28 | +) |
| 29 | + |
| 30 | +setup( |
| 31 | + name=NAME, |
| 32 | + version=version(), |
| 33 | + description="Data readers extracted from the pandas codebase," |
| 34 | + "should be compatible with recent pandas versions", |
| 35 | + long_description=readme(), |
| 36 | + license='MIT License', |
| 37 | + author='Andy Hayden', |
| 38 | + |
| 39 | + url='https://github.com/hayd/pandas_data_readers', |
| 40 | + classifiers=[ |
| 41 | + 'Development Status :: 4 - Beta', |
| 42 | + 'Operating System :: OS Independent', |
| 43 | + 'Programming Language :: Python', |
| 44 | + 'Programming Language :: Python :: 2', |
| 45 | + 'Programming Language :: Python :: 2.6', |
| 46 | + 'Programming Language :: Python :: 2.7', |
| 47 | + 'Programming Language :: Python :: 3', |
| 48 | + 'Programming Language :: Python :: 3.2', |
| 49 | + 'Programming Language :: Python :: 3.3', |
| 50 | + 'Programming Language :: Python :: 3.4', |
| 51 | + ], |
| 52 | + keywords='data', |
| 53 | + install_requires=INSTALL_REQUIRES, |
| 54 | + packages=['pandas_data_readers'], |
| 55 | + test_suite='tests', |
| 56 | + zip_safe=False, |
| 57 | +) |
0 commit comments