From c5dad6fd12695de19e093375ab50e477c206bbc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 19 Feb 2008 18:29:20 +0100 Subject: [PATCH] Add setup.py --- .hgignore | 7 +++++++ __tryton__.py | 2 +- setup.py | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 .hgignore create mode 100644 setup.py diff --git a/.hgignore b/.hgignore new file mode 100644 index 0000000000..2ba6510b3a --- /dev/null +++ b/.hgignore @@ -0,0 +1,7 @@ +syntax: glob +.hgignore +*.pyc +*~ +build/* +dist/* +MANIFEST diff --git a/__tryton__.py b/__tryton__.py index 59ea4884d4..18728e4a57 100644 --- a/__tryton__.py +++ b/__tryton__.py @@ -1,5 +1,5 @@ { - "name" : "Partners", + "name" : "partner", "version" : "0.1", "author" : "B2CK", "category" : "Generic Modules", diff --git a/setup.py b/setup.py new file mode 100644 index 0000000000..600b938c59 --- /dev/null +++ b/setup.py @@ -0,0 +1,37 @@ +#!/usr/bin/env python + +from distutils.core import setup + +info = eval(file('__tryton__.py').read()) + +requires = ['trytond'] + ['trytond-' + x for x in info.get('depends', [])] + +setup(name='trytond-' + info['name'], + version=info.get('version', '0'), + description=info.get('description', ''), + author=info.get('author', ''), + author_email=info.get('email', ''), + url=info.get('website', ''), + package_dir={'trytond.modules.' + info['name']: ''}, + packages=[ + 'trytond.modules.' + info['name'], + ], + package_data={ + 'trytond.modules.' + info['name']: [' ' + x for x in info.get('xml', [])], + }, + classifiers=[ + 'Development Status :: 5 - Production/Stable', + 'Environment :: Plugins', + 'Intended Audience :: Developers', + 'Intended Audience :: Financial and Insurance Industry', + 'Intended Audience :: Legal Industry', + 'Intended Audience :: Manufacturing', + 'Natural Language :: English', + 'Natural Language :: French', + 'Operating System :: OS Independent', + 'Programming Language :: Python', + 'Topic :: Office/Business', + ], + license=info.get('license', 'GPL-2'), + #requires=requires, +)