From b0595c791d17d1c7aa3140d9b8a11f064e13ad27 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 25 Dec 2012 23:58:46 +0100 Subject: Work on PyPI packaging --- setup.py | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index ca0c460..0e990a4 100644 --- a/setup.py +++ b/setup.py @@ -10,30 +10,21 @@ try: except (IOError, OSError): reqs = '' -def list_folder(path, extensions): - """ - Recursive function to list folders - extensions may be a list like ["css", "js", "html"] - """ - final = [] - for root, subfolders, filenames in os.walk(path): - for subfolder in subfolders: - for ext in extensions: - final.append("%s/%s/*.%s" % (root[len("chimere/"):], subfolder, ext)) - return final - setup( name='chimere', version=chimere.get_version(), description= - """Chimere is a kind of online “mashup” which is designed to aggregate geographic data from several sources. Chimere gets a map from OpenStreetMap and display other data added by users. Datas are freely submitted by visitors and then validated by an administrator.""", - author='Étienne Loks', + "Chimere is a kind of online “mashup” which is designed to aggregate "\ + "geographic data from several sources. Chimere gets a map from "\ + "OpenStreetMap and display other data added by users. Datas are freely "\ + "submitted by visitors and then validated by an administrator.", + long_description=open('README.txt').read(), + author=u'Étienne Loks', author_email='etienne.loks@peacefrogs.net', url='http://blog.peacefrogs.net/nim/chimere/', - packages=find_packages(exclude=["example", "example.*",]), + license='GPL v3 licence, see COPYING', + packages=find_packages(), include_package_data=True, - package_data={ - 'chimere': list_folder(os.path.join('chimere', 'static'), ["css", "js", "png"]) + list_folder(os.path.join('chimere', 'templates'), ["html"])}, install_requires=reqs, classifiers=[ 'Development Status :: 4 - Beta', -- cgit v1.2.3