server/python/django/setup.py
changeset 336 2ab4e8833410
parent 334 de35ce18643a
child 338 34c339f32aeb
equal deleted inserted replaced
335:670a73732668 336:2ab4e8833410
       
     1 import os
       
     2 import sys
       
     3 
     1 from setuptools import setup, find_packages
     4 from setuptools import setup, find_packages
     2 
     5 
     3 # Dynamically calculate the version based on django.VERSION.
     6 # Dynamically calculate the version based on django.VERSION.
     4 version = __import__('renkanmanager').get_version()
     7 version = __import__('renkanmanager').get_version()
     5 
     8 
       
     9 def launch_setup(script_name, script_args):
     6 
    10 
     7 setup(
    11     setup(
     8     name='renkanmanager',
    12         script_name = script_name,
     9     version=version,
    13         script_args = script_args,
    10     url='http://renkan.iri-research.org/',
    14         name='renkanmanager',
    11     author='I.R.I.',
    15         version=version,
    12     author_email='contact@iri-research.org',
    16         url='http://renkan.iri-research.org/',
    13     description=('Basic Django module for saving renkan'),
    17         author='I.R.I.',
    14     license='CECILL-B',
    18         author_email='contact@iri-research.org',
    15     packages=find_packages(),
    19         description=('Basic Django module for saving renkan'),
    16     include_package_data=True,
    20         license='CECILL-B',
    17     zip_safe=False,
    21         packages=find_packages(),
    18     classifiers=[
    22         include_package_data=True,
    19         'Development Status :: 3 - Alpha',
    23         zip_safe=False,
    20         'Environment :: Web Environment',
    24         classifiers=[
    21         'Framework :: Django',
    25             'Development Status :: 3 - Alpha',
    22         'Intended Audience :: Developers',
    26             'Environment :: Web Environment',
    23         'License :: OSI Approved :: CECILL License',
    27             'Framework :: Django',
    24         'Operating System :: OS Independent',
    28             'Intended Audience :: Developers',
    25         'Programming Language :: Python',
    29             'License :: OSI Approved :: CECILL License',
    26         'Programming Language :: Python :: 2',
    30             'Operating System :: OS Independent',
    27         'Programming Language :: Python :: 2.7',
    31             'Programming Language :: Python',
    28         'Topic :: Internet :: WWW/HTTP',
    32             'Programming Language :: Python :: 2',
    29         'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
    33             'Programming Language :: Python :: 2.7',
    30         'Topic :: Internet :: WWW/HTTP :: WSGI',
    34             'Topic :: Internet :: WWW/HTTP',
    31         'Topic :: Software Development :: Libraries :: Python Modules',
    35             'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
    32     ],
    36             'Topic :: Internet :: WWW/HTTP :: WSGI',
    33 )
    37             'Topic :: Software Development :: Libraries :: Python Modules',
       
    38         ],
       
    39     )
       
    40     
       
    41 if __name__ == "__main__":
       
    42     
       
    43     script_name = os.path.basename(sys.argv[0])
       
    44     script_args = sys.argv[1:]
       
    45     
       
    46     launch_setup(script_name, script_args)