Mercurial > odfcast
annotate setup.py @ 9:d5970cf6367d
Add a read function to close file descriptor after the file has been read
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Fri, 26 Sep 2014 20:15:36 +0200 |
parents | f804af69b783 |
children | e41682c4bf7e |
rev | line source |
---|---|
1 | 1 # -*- coding: utf-8 -*- |
2 | |
3 from setuptools import setup, find_packages | |
4 | |
5 version = '0.1' | |
6 | |
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
|
7 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
|
8 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
|
9 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
|
10 |
1 | 11 setup( |
12 name='odfcast', | |
13 version=version, | |
14 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
|
15 long_description=read("README.rst"), |
1 | 16 classifiers=[ |
17 "Development Status :: 3 - Alpha", | |
18 "Operating System :: POSIX :: Linux", | |
19 "Programming Language :: Python", | |
20 ], | |
21 keywords='OpenOffice PDF', | |
22 author='Björn Ricks', | |
23 author_email='bjoern.ricks@intevation.de', | |
24 url='', | |
25 license='', | |
26 packages=find_packages(exclude=[]), | |
27 namespace_packages=['py3o'], | |
28 include_package_data=True, | |
29 zip_safe=True, | |
30 install_requires=[ | |
31 'flask' | |
32 'requests', | |
5
f804af69b783
We need py3o.template now with the TemplateConvertView
Björn Ricks <bjoern.ricks@intevation.de>
parents:
1
diff
changeset
|
33 'py3o.tempate', |
1 | 34 'py3o.renderers.pyuno', |
35 'setuptools', | |
36 ], | |
37 ) |