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
f2cd3c54a132 Add setup.py
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
1 # -*- coding: utf-8 -*-
f2cd3c54a132 Add setup.py
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
2
f2cd3c54a132 Add setup.py
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
3 from setuptools import setup, find_packages
f2cd3c54a132 Add setup.py
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
4
f2cd3c54a132 Add setup.py
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
5 version = '0.1'
f2cd3c54a132 Add setup.py
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
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
f2cd3c54a132 Add setup.py
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
11 setup(
f2cd3c54a132 Add setup.py
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
12 name='odfcast',
f2cd3c54a132 Add setup.py
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
13 version=version,
f2cd3c54a132 Add setup.py
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
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
f2cd3c54a132 Add setup.py
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
16 classifiers=[
f2cd3c54a132 Add setup.py
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
17 "Development Status :: 3 - Alpha",
f2cd3c54a132 Add setup.py
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
18 "Operating System :: POSIX :: Linux",
f2cd3c54a132 Add setup.py
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
19 "Programming Language :: Python",
f2cd3c54a132 Add setup.py
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
20 ],
f2cd3c54a132 Add setup.py
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
21 keywords='OpenOffice PDF',
f2cd3c54a132 Add setup.py
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
22 author='Björn Ricks',
f2cd3c54a132 Add setup.py
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
23 author_email='bjoern.ricks@intevation.de',
f2cd3c54a132 Add setup.py
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
24 url='',
f2cd3c54a132 Add setup.py
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
25 license='',
f2cd3c54a132 Add setup.py
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
26 packages=find_packages(exclude=[]),
f2cd3c54a132 Add setup.py
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
27 namespace_packages=['py3o'],
f2cd3c54a132 Add setup.py
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
28 include_package_data=True,
f2cd3c54a132 Add setup.py
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
29 zip_safe=True,
f2cd3c54a132 Add setup.py
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
30 install_requires=[
f2cd3c54a132 Add setup.py
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
31 'flask'
f2cd3c54a132 Add setup.py
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
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
f2cd3c54a132 Add setup.py
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
34 'py3o.renderers.pyuno',
f2cd3c54a132 Add setup.py
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
35 'setuptools',
f2cd3c54a132 Add setup.py
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
36 ],
f2cd3c54a132 Add setup.py
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
37 )
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)