A somewhat working setup.py - still a work in progress
This commit is contained in:
parent
95f3ff17f0
commit
1007688925
1 changed files with 41 additions and 2 deletions
43
setup.py
43
setup.py
|
|
@ -1,6 +1,45 @@
|
|||
#!/usr/bin/env python
|
||||
#!/usr/bin/python
|
||||
|
||||
__author__ = 'Ryan McGrath <ryan@venodesigns.net>'
|
||||
__version__ = '0.6'
|
||||
|
||||
from distutils.core import setup
|
||||
# For the love of god, use Pip to install this.
|
||||
|
||||
# Distutils version
|
||||
METADATA = dict(
|
||||
name = "tango",
|
||||
version = __version__,
|
||||
py_modules = ['tango/tango'],
|
||||
author='Ryan McGrath',
|
||||
author_email='ryan@venodesigns.net',
|
||||
description='A new and easy way to access Twitter data with Python.',
|
||||
license='Tango License',
|
||||
url='http://github.com/ryanmcgrath/tango/tree/master',
|
||||
keywords='twitter search api tweet tango',
|
||||
)
|
||||
|
||||
# Setuptools version
|
||||
SETUPTOOLS_METADATA = dict(
|
||||
install_requires = ['setuptools', 'simplejson'],
|
||||
include_package_data = True,
|
||||
classifiers = [
|
||||
'Development Status :: 4 - Beta',
|
||||
'Intended Audience :: Developers',
|
||||
'License :: Tango License',
|
||||
'Topic :: Software Development :: Libraries :: Python Modules',
|
||||
'Topic :: Communications :: Chat :: Twitter',
|
||||
'Topic :: Internet :: Search',
|
||||
]
|
||||
)
|
||||
|
||||
def Main():
|
||||
try:
|
||||
import setuptools
|
||||
METADATA.update(SETUPTOOLS_METADATA)
|
||||
setuptools.setup(**METADATA)
|
||||
except ImportError:
|
||||
import distutils.core
|
||||
distutils.core.setup(**METADATA)
|
||||
|
||||
if __name__ == '__main__':
|
||||
Main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue