Commits

Hong Minhee  committed 220db80

Fixed mistakes

  • Participants
  • Parent commits 567e146
  • Tags 0.1.0

Comments (0)

Files changed (2)

     except ImportError:
         commands = {}
 
-and then, pass the ``commands`` dictionary into your ``setup()`` function,
-with ``setup_requires`` parameter::
+and then, pass the ``commands`` dictionary into your ``setup()`` function's
+``cmdclass`` parameter and specify ``setup_requires`` parameter::
 
     setup(name='YourPackageName',
           version='1.2.3',
           ...,
           setup_requires=['bitbucket-distutils'],
-          commands=commands)
+          cmdclass=commands)
 
 Now there will be the overwritten ``upload`` command for your ``setup.py``::
 
     from setuptools import setup
 except ImportError:
     from distutils.core import setup
-from bitbucket_distutils import __author__, __email__, __license__, __version__
+from bitbucket_distutils import (__author__, __email__, __license__,
+                                 __version__, commands)
 
 under_270 = sys.version_info < (2, 7, 0)
 
       author=__author__,
       author_email=__email__,
       license=__license__,
-      install_requires=['requests==0.10.8'] + (['odict'] if under_270 else []))
+      install_requires=['requests==0.10.8'] + (['odict'] if under_270 else []),
+      cmdclass=commands)