source: mailjam/setup.py@ 23:adc5b22efd7e

Last change on this file since 23:adc5b22efd7e was 23:adc5b22efd7e, checked in by Borja Lopez <borja@…>, 12 years ago

Added the first version of the CLI client, which implements a shell-like
interface where users can interact with a mailjam server.

This first versions adds no "big" features, but contains the basis to build
a complete shell interface (including history saving support, completion,
help for commands, etc)

Added a custom configuration file (conf/mailjam-cli.conf) for the CLI
client.

Added a new mailjam.config class (CLIClientConfig) that is used by the CLI
client to load its configuration file.

Updated the package information (setup.py, MANIFEST) to include the CLI
client data.

Modified the behaviour of the XMLRPC methods registered in the *XMLRPC classes
within the daemon module. Now instead of raising exceptions directly, they
catch such exceptions, returning only a string representation of the error
to the XMLRPC client. If there is no error, a nice "ok" message is returned.

File size: 943 bytes
Line 
1import os
2from distutils.core import setup
3
4def proper_etc_path():
5 # Yes, I'm ommiting windoze...
6 BSDs = ['FreeBSD', 'OpenBSD', 'NetBSD', 'DragonFlyBSD']
7 linux = ['Linux']
8 osx = ['Darwin']
9 os_name = os.uname()[0]
10 if os_name in BSDs:
11 return '/usr/local/etc/'
12 if os_name in linux or os_name in osx:
13 return '/etc/'
14
15setup(
16 name='mailjam',
17 version='0.1.0',
18 author='Francisco de Borja Lopez Rio',
19 author_email='borja@codigo23.net',
20 packages=['mailjam'],
21 url='https://bitbucket.org/codigo23/mailjam',
22 license='BSD licence, see LICENCE',
23 description='Mailing lists management software',
24 long_description=open('README').read(),
25 scripts=['bin/mailjam-server', 'bin/mailjam-mta', 'bin/mailjam-cli'],
26 #data_files=[(proper_etc_path()+'mailjam', ['conf/mailjam.conf',
27 # 'conf/mailjam-mta.conf']),
28 # ]
29)
Note: See TracBrowser for help on using the repository browser.