Skip to content

Commit 3ac44eb

Browse files
committedMay 30, 2014
Create setup script
Create setup.py file that uses setuptools to make this a distributable package. Define the dependencies in setup.py and use a pattern for requirements.txt from https://caremad.io/blog/setup-vs-requirement/
1 parent 7d9ba9e commit 3ac44eb

File tree

3 files changed

+42
-6
lines changed

3 files changed

+42
-6
lines changed
 

‎docs/installation.rst

+5
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,8 @@ Installation
44

55
Tablesplitter requires Python 2.7+ or Python 3.3+.
66

7+
The best way to install tablesplitter is with pip:
8+
9+
```
10+
pip install git+https://github.com/ghing/tablesplitter.git
11+
```

‎requirements.txt

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
pillow
2-
blinker
3-
peewee
4-
six
5-
restless
6-
flask
1+
--index-url https://pypi.python.org/simple/
2+
3+
-e .

‎setup.py

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#!/usr/bin/env python
2+
3+
import os.path
4+
from setuptools import setup, find_packages
5+
6+
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as f:
7+
readme = f.read()
8+
9+
setup(name='Tablesplitter',
10+
version='0.0.1',
11+
description='Extract data from tables in image PDFs.',
12+
long_description=readme,
13+
author='Geoff Hing',
14+
author_email='geoffhing@gmail.com',
15+
url='https://github.com/ghing/tablesplitter',
16+
packages=find_packages(),
17+
scripts=['bin/tsplit.py'],
18+
install_requires=[
19+
'pillow>=2.4',
20+
'blinker>=1.3',
21+
'peewee>=2.2.4',
22+
'six>=1.6',
23+
'restless>=2',
24+
'flask>=0.10',
25+
],
26+
classifiers=[
27+
'Development Status :: 1 - Planning',
28+
'Intended Audience :: Developers',
29+
'License :: OSI Approved :: MIT License',
30+
'Operating System :: OS Independent',
31+
'Programming Language :: Python',
32+
'Framework :: Flask',
33+
],
34+
)

0 commit comments

Comments
 (0)
Please sign in to comment.