{ "info": { "author": "Hong Minhee", "author_email": "minhee@dahlia.kr", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Framework :: Setuptools Plugin", "Intended Audience :: Developers", "License :: Public Domain", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.5", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Software Development", "Topic :: System :: Software Distribution" ], "description": "bitbucket-distutils\r\n===================\r\n\r\n.. warning::\r\n\r\n This project is abandoned, and we recommend not to use this anymore.\r\n Because PyPI and pip_ disallows to download package distributions\r\n from other than official PyPI for security reasons.\r\n\r\n.. _pip: http://pip-installer.org/\r\n\r\nIntro\r\n-----\r\n\r\nDistribute_/setuptools_/distutils_ command for Bitbucket_. You can use\r\nBitbucket downloads instead of PyPI_ downloads for release.\r\n\r\nTo use this, follow the instruction.\r\n\r\n.. _Distribute: http://packages.python.org/distribute/\r\n.. _setuptools: http://pypi.python.org/pypi/setuptools\r\n.. _distutils: http://docs.python.org/library/distutils.html\r\n.. _Bitbucket: https://bitbucket.org/\r\n.. _PyPI: http://pypi.python.org/\r\n\r\n\r\nInstruction\r\n-----------\r\n\r\nFirst of all your software must be packaged within the standard distribution\r\nway: use distutils_, Distribute_ or setuptools_. This package contains\r\nan extension command for that.\r\n\r\nThen, add this package into ``setup_requires`` parameter of your ``setup()``\r\nconfiguration (of ``setup.py`` script)::\r\n\r\n setup(name='YourPackageName',\r\n version='1.2.3',\r\n ...,\r\n setup_requires=['bitbucket-distutils >= 0.1.2'])\r\n\r\nNow there will be the overwritten ``upload`` command for your ``setup.py``::\r\n\r\n $ python setup.py upload --help\r\n Common commands: (see '--help-commands' for more)\r\n\r\n ...\r\n\r\n Options for 'upload' command:\r\n --bb-repository (-R) Bitbucket repository name e.g. user/reponame\r\n --bb-username (-u) Bitbucket username\r\n --bb-password (-p) Bitbucket password\r\n\r\n ...\r\n\r\nAs you can see there are ``--bb-``-prefixed options for the command.\r\nIf ``-u``/``--bb-username`` and ``--p``/``--bb-password`` are not present,\r\nit shows the prompt. ``-R``/``--bb-repository`` is required.\r\n\r\n\r\nUpload\r\n------\r\n\r\nUpload is very easy::\r\n\r\n $ python setup.py sdist upload -R user/reponame register\r\n\r\nBy explained:\r\n\r\n``sdist``\r\n Makes the source distribution file. If your package name is\r\n ``YourPackageName`` and its version is ``1.2.3``, and then its file name\r\n becomes ``YourPackageName-1.2.3.tar.gz``.\r\n\r\n``upload -R user/reponame``\r\n Uploads the built source distribution file into your Bitbucket repository.\r\n It does not mean that it will be version-controlled, but it will be simply\r\n uploaded to its downloads page.\r\n\r\n``register``\r\n Using the Bitbucket download URL registers the package of this version\r\n into PyPI.\r\n The URL of PyPI page will be http://pypi.python.org/YourPackageName/1.2.3\r\n\r\n\r\nDefaulting options\r\n------------------\r\n\r\nYou can make default values for these options by specifying in the ``setup.cfg``\r\nconfiguration file. For example, if you want to default ``--bb-repository``,\r\nmake ``setup.cfg`` file like (hyphens becomes underscores)::\r\n\r\n [upload]\r\n bb_repository = user/reponame\r\n\r\nYou can make a shorthand alias as well::\r\n\r\n [aliases]\r\n release = sdist upload register\r\n\r\n\r\nAuthor and license\r\n------------------\r\n\r\nIt is distributed under Public Domain. Just do what you want to do with this.\r\nWritten by `Hong Minhee`__.\r\n\r\nYou can checkout the source code from its `Bitbucket Mercurial repository`__::\r\n\r\n $ hg clone https://bitbucket.org/dahlia/bitbucket-distutils\r\n\r\nIf you found a bug, please report it to the `issue tracker`__.\r\n\r\n__ http://dahlia.kr/\r\n__ https://bitbucket.org/dahlia/bitbucket-distutils\r\n__ https://bitbucket.org/dahlia/bitbucket-distutils/issues", "description_content_type": null, "docs_url": null, "download_url": "https://bitbucket.org/dahlia/bitbucket-distutils/downloads/bitbucket-distutils-0.1.2.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/dahlia/bitbucket-distutils", "keywords": "", "license": "Public Domain", "maintainer": "", "maintainer_email": "", "name": "bitbucket-distutils", "package_url": "https://pypi.org/project/bitbucket-distutils/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/bitbucket-distutils/", "project_urls": { "Download": "https://bitbucket.org/dahlia/bitbucket-distutils/downloads/bitbucket-distutils-0.1.2.tar.gz", "Homepage": "https://bitbucket.org/dahlia/bitbucket-distutils" }, "release_url": "https://pypi.org/project/bitbucket-distutils/0.1.2/", "requires_dist": null, "requires_python": null, "summary": "Distribute/setuptools/distutils command for Bitbucket. You can use Bitbucket downloads instead of PyPI downloads for release.", "version": "0.1.2" }, "last_serial": 2240985, "releases": { "0.1.0": [], "0.1.1": [], "0.1.2": [] }, "urls": [] }