Permalink
Browse files

Make HappyBase a proper Python distribution

  • Loading branch information...
wbolster committed May 20, 2012
1 parent ae4b7e4 commit bf3a00dc839e2df295504a93eb5fdda6a4596924
Showing with 55 additions and 0 deletions.
  1. +3 −0 MANIFEST.in
  2. +13 −0 Makefile
  3. +15 −0 setup.cfg
  4. +24 −0 setup.py
View
@@ -0,0 +1,3 @@
+include Makefile
+include *.rst
+include doc/conf.py doc/*.rst
View
@@ -0,0 +1,13 @@
+.PHONY: all doc test clean
+
+all: doc clean
+
+doc:
+ python setup.py build_sphinx
+
+test:
+ -find coverage/ -mindepth 1 -delete
+ python $$(which nosetests) $${TESTS}
+
+clean:
+ find . -name '*.py[co]' -delete
View
@@ -0,0 +1,15 @@
+[nosetests]
+stop = 1
+verbosity = 2
+nocapture = 1
+with-coverage = 1
+cover-erase = 1
+cover-package=happybase.api,happybase.util,tests
+cover-tests = 1
+cover-html = 1
+cover-html-dir = coverage/
+
+[build_sphinx]
+source-dir = doc/
+build-dir = doc/build/
+
View
@@ -0,0 +1,24 @@
+from os.path import join, dirname
+from setuptools import find_packages, setup
+
+import happybase
+
+setup(name='happybase',
+ version=happybase.__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',
+ 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",
+ )
+ )

0 comments on commit bf3a00d

Please sign in to comment.