sfi introspect
[sfa.git] / xmlbuilder-0.9 / setup.py
1 #!/usr/bin/env python
2 #-------------------------------------------------------------------------------
3 import os
4 import sys
5 import glob
6 import os.path
7 from setuptools import setup
8 #from distutils.core import setup
9 #-------------------------------------------------------------------------------
10 if 'upload' in sys.argv:
11     # for .pypirc file
12     try:
13         os.environ['HOME']
14     except KeyError:
15         os.environ['HOME'] = '..\\'
16 #-------------------------------------------------------------------------------
17 fpath = lambda x : os.path.join(*x.split('/'))
18 #-------------------------------------------------------------------------------
19 PYPI_URL = 'http://pypi.python.org/pypi/xmlbuilder'
20 ld = open(fpath('xmlbuilder/docs/long_descr.rst')).read()
21 ld = ld.replace('&','&amp;').replace('<','&lt;').replace('>','&gt;')
22 setup(
23     name = "xmlbuilder",
24     fullname = "xmlbuilder",
25     version = "0.9",
26     packages = ["xmlbuilder"],
27     package_dir = {'xmlbuilder':'xmlbuilder'},
28     author = "koder",
29     author_email = "koder_dot_mail@gmail_dot_com",
30     maintainer = 'koder',
31     maintainer_email = "koder_dot_mail@gmail_dot_com",
32     description = "Pythonic way to create xml files",
33     license = "MIT",
34     keywords = "xml",
35     test_suite = "xml_buider.tests",
36     url = PYPI_URL,
37     download_url = PYPI_URL,
38     long_description = ld,
39     #include_package_data = True,
40     #package_data = {'xmlbuilder':["docs/*.rst"]},
41     #data_files = [('', ['xmlbuilder/docs/long_descr.rst'])]
42 )
43 #-------------------------------------------------------------------------------