Mercurial > hg > cropresize
annotate setup.py @ 5:c89738f3f417
* improve command line interface
* improve README
* bump version
author | k0s <k0scist@gmail.com> |
---|---|
date | Sat, 06 Mar 2010 14:55:04 -0500 |
parents | 2be0070c6f95 |
children | 0cd9a1362310 |
rev | line source |
---|---|
0
0a54e5bd2875
initial import of cropresive from https://svn.openplans.org/svn/standalone/cropresize
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
1 from setuptools import setup, find_packages |
0a54e5bd2875
initial import of cropresive from https://svn.openplans.org/svn/standalone/cropresize
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
2 import sys, os |
0a54e5bd2875
initial import of cropresive from https://svn.openplans.org/svn/standalone/cropresize
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
3 |
2 | 4 try: |
3
2be0070c6f95
path-independent way of getting the description
k0s <k0scist@gmail.com>
parents:
2
diff
changeset
|
5 filename = os.path.join(os.path.dirname(__file__), 'README.txt') |
2be0070c6f95
path-independent way of getting the description
k0s <k0scist@gmail.com>
parents:
2
diff
changeset
|
6 description = file(filename).read() |
2 | 7 except: |
8 description = '' | |
9 | |
5 | 10 version = '0.1.4' |
0
0a54e5bd2875
initial import of cropresive from https://svn.openplans.org/svn/standalone/cropresize
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
11 |
0a54e5bd2875
initial import of cropresive from https://svn.openplans.org/svn/standalone/cropresize
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
12 setup(name='cropresize', |
0a54e5bd2875
initial import of cropresive from https://svn.openplans.org/svn/standalone/cropresize
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
13 version=version, |
0a54e5bd2875
initial import of cropresive from https://svn.openplans.org/svn/standalone/cropresize
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
14 description="crop and resize an image without doing the math yourself", |
2 | 15 long_description=description, |
0
0a54e5bd2875
initial import of cropresive from https://svn.openplans.org/svn/standalone/cropresize
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
16 classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers |
0a54e5bd2875
initial import of cropresive from https://svn.openplans.org/svn/standalone/cropresize
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
17 keywords='image', |
0a54e5bd2875
initial import of cropresive from https://svn.openplans.org/svn/standalone/cropresize
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
18 author='Jeff Hammel', |
1 | 19 author_email='k0scist@gmail.com', |
0
0a54e5bd2875
initial import of cropresive from https://svn.openplans.org/svn/standalone/cropresize
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
20 url='http://pypi.python.org/pypi/cropresize', |
0a54e5bd2875
initial import of cropresive from https://svn.openplans.org/svn/standalone/cropresize
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
21 license='GPL', |
0a54e5bd2875
initial import of cropresive from https://svn.openplans.org/svn/standalone/cropresize
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
22 packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), |
0a54e5bd2875
initial import of cropresive from https://svn.openplans.org/svn/standalone/cropresize
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
23 include_package_data=True, |
0a54e5bd2875
initial import of cropresive from https://svn.openplans.org/svn/standalone/cropresize
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
24 zip_safe=False, |
0a54e5bd2875
initial import of cropresive from https://svn.openplans.org/svn/standalone/cropresize
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
25 install_requires=[ |
0a54e5bd2875
initial import of cropresive from https://svn.openplans.org/svn/standalone/cropresize
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
26 # -*- Extra requirements: -*- |
0a54e5bd2875
initial import of cropresive from https://svn.openplans.org/svn/standalone/cropresize
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
27 'PIL', |
0a54e5bd2875
initial import of cropresive from https://svn.openplans.org/svn/standalone/cropresize
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
28 ], |
0a54e5bd2875
initial import of cropresive from https://svn.openplans.org/svn/standalone/cropresize
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
29 dependency_links=[ |
0a54e5bd2875
initial import of cropresive from https://svn.openplans.org/svn/standalone/cropresize
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
30 "http://dist.repoze.org/PIL-1.1.6.tar.gz", |
0a54e5bd2875
initial import of cropresive from https://svn.openplans.org/svn/standalone/cropresize
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
31 ], |
0a54e5bd2875
initial import of cropresive from https://svn.openplans.org/svn/standalone/cropresize
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
32 entry_points=""" |
0a54e5bd2875
initial import of cropresive from https://svn.openplans.org/svn/standalone/cropresize
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
33 # -*- Entry points: -*- |
0a54e5bd2875
initial import of cropresive from https://svn.openplans.org/svn/standalone/cropresize
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
34 [console_scripts] |
0a54e5bd2875
initial import of cropresive from https://svn.openplans.org/svn/standalone/cropresize
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
35 crop-resize = cropresize:main |
0a54e5bd2875
initial import of cropresive from https://svn.openplans.org/svn/standalone/cropresize
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
36 """, |
0a54e5bd2875
initial import of cropresive from https://svn.openplans.org/svn/standalone/cropresize
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
37 ) |