Commits

Hong Minhee  committed f7ff8f4

Expose upload command using entry_points

  • Participants
  • Parent commits 6486cc8
  • Tags 0.1.2

Comments (0)

Files changed (3)

 way: use distutils_, Distribute_ or setuptools_.  This package contains
 an extension command for that.
 
-Then, specify ``setup_requires`` and ``entry_points`` parameters of your
-``setup()`` configuration (of ``setup.py`` script)::
+Then, add this package into ``setup_requires`` parameter of your ``setup()``
+configuration (of ``setup.py`` script)::
 
     setup(name='YourPackageName',
           version='1.2.3',
           ...,
-          setup_requires=['bitbucket-distutils >= 0.1.1'],
-          entry_points={'distutils.commands': [
-            'upload = bitbucket_distutils:upload'
-          ]})
+          setup_requires=['bitbucket-distutils >= 0.1.2'])
 
 Now there will be the overwritten ``upload`` command for your ``setup.py``::
 

File bitbucket_distutils.py

 __email__ = 'minhee' '@' 'dahlia.kr'
 __copyright__ = 'Copyright 2012, Hong Minhee'
 __license__ = 'Public Domain'
-__version__ = '0.1.1'
+__version__ = '0.1.2'
 
 
 class BitbucketClient(object):
       version=__version__,
       long_description=readme(),
       py_modules=['bitbucket_distutils'],
+      zip_safe=True,
       author=__author__,
       author_email=__email__,
       license=__license__,
       install_requires=requires,
       setup_requires=requires,
       cmdclass=commands,
+      entry_points={'distutils.commands': [
+          'upload = bitbucket_distutils:upload'
+      ]},
       classifiers=[
         'Development Status :: 3 - Alpha',
         'Environment :: Console',