A common way to break project installation is to import the package in setup.py in order to get access to mypackage.__version__. However if mypackage depends on a different uninstalled package, the import will fail, causing setup.py to fail before it has a chance to install the dependency. The fix is to find some other DRY way to get at __version__. For more details see: - http://stackoverflow.com/questions/458550/ - http://stackoverflow.com/questions/2058802/
26 lines
891 B
Python
26 lines
891 B
Python
from os.path import join, dirname
|
|
from setuptools import find_packages, setup
|
|
|
|
execfile('happybase/version.py')
|
|
|
|
setup(name='happybase',
|
|
version=__version__,
|
|
description="A developer-friendly Python library to interact "
|
|
"with Apache HBase",
|
|
long_description=open(join(dirname(__file__), 'README.rst')).read(),
|
|
author="Wouter Bolsterlee",
|
|
author_email="uws@xs4all.nl",
|
|
url='https://github.com/wbolster/happybase',
|
|
install_requires=['thrift'],
|
|
packages=find_packages(),
|
|
license="MIT",
|
|
classifiers=(
|
|
"Development Status :: 4 - Beta",
|
|
"Intended Audience :: Developers",
|
|
"License :: OSI Approved :: MIT License",
|
|
"Programming Language :: Python :: 2",
|
|
"Topic :: Database",
|
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
)
|
|
)
|