comparison 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
comparison
equal deleted inserted replaced
8:d9e733b87c29 9:d5970cf6367d
2 2
3 from setuptools import setup, find_packages 3 from setuptools import setup, find_packages
4 4
5 version = '0.1' 5 version = '0.1'
6 6
7 def read(filename):
8 with open(filename, "r") as f:
9 return f.read()
10
7 setup( 11 setup(
8 name='odfcast', 12 name='odfcast',
9 version=version, 13 version=version,
10 description="A conversion http service based on py3o", 14 description="A conversion http service based on py3o",
11 long_description=open("README.rst").read(), 15 long_description=read("README.rst"),
12 classifiers=[ 16 classifiers=[
13 "Development Status :: 3 - Alpha", 17 "Development Status :: 3 - Alpha",
14 "Operating System :: POSIX :: Linux", 18 "Operating System :: POSIX :: Linux",
15 "Programming Language :: Python", 19 "Programming Language :: Python",
16 ], 20 ],
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)