Commits

Rajeesh Nair  committed 3671e07

Fixed issues with setup.py

  • Participants
  • Parent commits 44df8ea

Comments (0)

Files changed (3)

 Through the changesets from 18 to 23, we have introduced the following changes
 to Django-monitor.
 
-* BUGFIX: setup.py was not working thanks to some typos and syntax errors. Fixed.
+* BUGFIX: ``setup.py`` was not working as expected. Fixed.
 
 * The directory, ``docs/build`` contained documentation in html format.
   Since we can build it any time using sphinx, it is removed from the
 * Download the latest version from the bitbucket repo:
   http://bitbucket.org/rajeesh/django-monitor.
 
-* Copy the ``django_monitor`` directory to some place in your python path.
+* Install using the setuptools as given below: ::
+
+    $ python setup.py install
+
+* Or copy the ``django_monitor`` directory to some place in your python path.
 
 * Add 'django_monitor' to your project's ``settings.INSTALLED_APPS``.
 
 from setuptools import setup, find_packages
-import os
-
-from django_monitor import __version__ as version, __author__ as author
 
 setup(
     name = 'django-monitor',
-    version = version,
+    version = "0.2a",
     description = "Django app to moderate model objects",
     long_description = open("README.rst").read(),
     install_requires = [
         'Framework :: Django',
     ],
     keywords = 'django moderation models',
-    author = author,
+    author = "Rajeesh Nair",
     author_email = 'rajeeshrnair@gmail.com',
     url = 'http://bitbucket.org/rajeesh/django-monitor',
     license = 'BSD',
-    packages = find_packages('django_monitor'),
-    package_dir = {'': 'django_monitor'},
+    packages = find_packages(),
     include_package_data = True,
     zip_safe = True,
 )