Skip to content

Commit 0943292

Browse files
committed
Make into a package
TODO * flesh out README * confirm license, I think it's BSD-2?
1 parent 08ce3b8 commit 0943292

File tree

7 files changed

+83
-0
lines changed

7 files changed

+83
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
__pycache__
22
*.pyc
3+
*.egg-info
4+
.coverage
5+
build
6+
dist

MANIFEST.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
include README.md
2+
include LICENSE.md
3+
include pandas_data_readers/*.py
4+
5+
include pandas_data_readers/tests/*.py
6+
include pandas_data_readers/tests/data/*

README.rst

Whitespace-only changes.

pandas_data_readers/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = version = '0.1a'

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[bdist_wheel]
2+
universal = 1

setup.py

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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+
author_email='[email protected]',
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+
)

tox.ini

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[tox]
2+
envlist=py{26,27,32,33,34}
3+
4+
[testenv]
5+
commands=
6+
nosetests
7+
deps=
8+
nose
9+
10+
[testenv:py26]
11+
deps=
12+
unittest2
13+
{[testenv]deps}

0 commit comments

Comments
 (0)