Mercurial > hg > ltpdarepo
changeset 213:3d524d31d1c2
Move setup.py to better location.
author | Daniele Nicolodi <daniele@grinta.net> |
---|---|
date | Fri, 18 Nov 2011 01:49:52 +0100 |
parents | ca6999a5b402 |
children | 931577ae72bb |
files | buildout.cfg setup.py src/setup.py |
diffstat | 3 files changed, 46 insertions(+), 45 deletions(-) [+] |
line wrap: on
line diff
--- a/buildout.cfg Fri Nov 18 00:47:32 2011 +0100 +++ b/buildout.cfg Fri Nov 18 01:49:52 2011 +0100 @@ -1,7 +1,7 @@ [buildout] include-site-packages = false parts = install instance wsgi -develop = src +develop = . # install software [install]
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/setup.py Fri Nov 18 01:49:52 2011 +0100 @@ -0,0 +1,45 @@ +from setuptools import setup, find_packages + +version = '0.5dev' + +requires = [ + 'distribute', + 'Flask', + 'WTForms', + 'itsdangerous', + 'python-dateutil < 2.0', +] + +try: + import argparse +except ImportError: + # we have python < 2.7 + requires.append('argparse') + +try: + from collections import OrderedDict +except ImportError: + # we have python < 2.7 + requires.append('ordereddict') + + +setup(name='ltpdarepo', + version=version, + keywords='', + author='Daniele Nicolodi', + author_email='nicolodi@science.unitn.it', + url='http://dev.grinta.net/hg/ltpdarepo/', + license='AGPLv3+', + + packages=find_packages(), + package_dir={'': 'src'}, + include_package_data=True, + package_data={'': ['*.txt', '*.rst', '*.sql']}, + zip_safe=False, + install_requires=requires, + entry_points={ + 'console_scripts': [ + 'run = ltpdarepo:main', + 'admin = ltpdarepo.admin:main', ] + } + )
--- a/src/setup.py Fri Nov 18 00:47:32 2011 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,44 +0,0 @@ -from setuptools import setup - -version = '0.5dev' - -requires = [ - 'distribute', - 'Flask', - 'WTForms', - 'itsdangerous', - 'python-dateutil < 2.0', -] - -try: - import argparse -except ImportError: - # we have python < 2.7 - requires.append('argparse') - -try: - from collections import OrderedDict -except ImportError: - # we have python < 2.7 - requires.append('ordereddict') - - -setup(name='ltpdarepo', - version=version, - keywords='', - author='Daniele Nicolodi', - author_email='nicolodi@science.unitn.it', - url='http://dev.grinta.net/hg/ltpdarepo/', - license='AGPLv3+', - - packages=['ltpdarepo', ], - include_package_data=True, - package_data={'': ['*.txt', '*.rst', '*.sql']}, - zip_safe=False, - install_requires=requires, - entry_points={ - 'console_scripts': [ - 'run = ltpdarepo:main', - 'admin = ltpdarepo.admin:main', ] - } - )