Mercurial > odfcast
annotate setup.py @ 48:3bff1a4bc80e
Remove debug setting to get a setting for productive usage
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Mon, 03 Nov 2014 11:49:43 +0100 |
parents | 8a3f3427aa15 |
children | 1e62ccffb395 |
rev | line source |
---|---|
1 | 1 # -*- coding: utf-8 -*- |
2 | |
3 from setuptools import setup, find_packages | |
4 | |
5 version = '0.1' | |
6 | |
40
8a3f3427aa15
Fix setup.py and update coding style
Björn Ricks <bjoern.ricks@intevation.de>
parents:
13
diff
changeset
|
7 |
9
d5970cf6367d
Add a read function to close file descriptor after the file has been read
Björn Ricks <bjoern.ricks@intevation.de>
parents:
5
diff
changeset
|
8 def read(filename): |
d5970cf6367d
Add a read function to close file descriptor after the file has been read
Björn Ricks <bjoern.ricks@intevation.de>
parents:
5
diff
changeset
|
9 with open(filename, "r") as f: |
d5970cf6367d
Add a read function to close file descriptor after the file has been read
Björn Ricks <bjoern.ricks@intevation.de>
parents:
5
diff
changeset
|
10 return f.read() |
d5970cf6367d
Add a read function to close file descriptor after the file has been read
Björn Ricks <bjoern.ricks@intevation.de>
parents:
5
diff
changeset
|
11 |
1 | 12 setup( |
13 name='odfcast', | |
14 version=version, | |
15 description="A conversion http service based on py3o", | |
9
d5970cf6367d
Add a read function to close file descriptor after the file has been read
Björn Ricks <bjoern.ricks@intevation.de>
parents:
5
diff
changeset
|
16 long_description=read("README.rst"), |
1 | 17 classifiers=[ |
18 "Development Status :: 3 - Alpha", | |
19 "Operating System :: POSIX :: Linux", | |
20 "Programming Language :: Python", | |
21 ], | |
22 keywords='OpenOffice PDF', | |
23 author='Björn Ricks', | |
24 author_email='bjoern.ricks@intevation.de', | |
25 url='', | |
26 license='', | |
13
75d90af41dfa
Exclude example data from being packaged in setup.py
Björn Ricks <bjoern.ricks@intevation.de>
parents:
11
diff
changeset
|
27 packages=find_packages(exclude=["examples"]), |
1 | 28 include_package_data=True, |
29 zip_safe=True, | |
11
55581932e7f9
Read install_requires from requirements.txt file in setup.py
Björn Ricks <bjoern.ricks@intevation.de>
parents:
10
diff
changeset
|
30 install_requires=read("requirements.txt").split(), |
1 | 31 ) |