{ "info": { "author": "Stephan Richter and the Zope Community", "author_email": "zope-dev@zope.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Setuptools Plugin", "Intended Audience :: Developers", "License :: OSI Approved :: Zope Public License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Version Control" ], "description": "A simple setuptools plugin to support creating distributions from a\nmercurial-based package checkout.\n\n\nDetailed Documentation\n**********************\n\n===========================================\nMercurial File Finder Plugin for Setuptools\n===========================================\n\nThis package provides a simple, command-based file finder plugin for\nsetuptools. Once installed, one can create distributions using a pacakge that\nhas been checked out with Mercurial.\n\nSo let's create a workspace:\n\n >>> import tempfile\n >>> ws = tempfile.mkdtemp()\n\nSince the workspace is not a mercurial repository, the finder returns an empty\nlist and leaves an error message in the logs:\n\n >>> from z3c.setuptools_mercurial import finder\n\n >>> finder.find_files(ws)\n abort: There is no Mercurial repository here (.hg not found)! (code 255)\n \n []\n\nAlso, if the directory does not exist, we get an error message, but an empty\nresult set:\n\n >>> finder.find_files('/foo')\n [Errno 2] No such file or directory: '/foo'\n []\n\nLet's now create a new repository:\n\n >>> import os\n >>> repos = os.path.join(ws, 'test')\n >>> cmd('hg init ' + repos)\n\nThe finder still fails with error code 1, since no file is yet added in the\nrepository:\n\n >>> finder.find_files(repos)\n (code 1)\n []\n\nLet's now add soem directories and files and the finder should be happy.\n\n >>> cmd('touch ' + os.path.join(repos, 'data.txt'))\n >>> cmd('hg add ' + os.path.join(repos, 'data.txt'))\n\n >>> cmd('mkdir ' + os.path.join(repos, 'dir1'))\n >>> cmd('touch ' + os.path.join(repos, 'dir1', 'data1.txt'))\n >>> cmd('hg add ' + os.path.join(repos, 'dir1', 'data1.txt'))\n\n >>> cmd('mkdir ' + os.path.join(repos, 'dir1', 'dir11'))\n >>> cmd('touch ' + os.path.join(repos, 'dir1', 'dir11', 'data1.txt'))\n >>> cmd('hg add ' + os.path.join(repos, 'dir1', 'dir11', 'data1.txt'))\n\n >>> finder.find_files(repos)\n ['data.txt',\n 'dir1/data1.txt',\n 'dir1/dir11/data1.txt']\n\nNote that the result of the finder is always a list of relative locations\nbased on the input directory.\n\n >>> finder.find_files(os.path.join(repos, 'dir1'))\n ['data1.txt',\n 'dir11/data1.txt']\n\nBuildout 1.5 and higher\n-----------------------\n\nWhen one uses zc.buildout 1.5 or higher, the system's environment is\nmanipulated. In particular, the PYTHONPATH OS environment variable is\nrewritten. In that case it should be deleted:\n\n >>> import os\n >>> bo_orig_path = os.environ.pop('BUILDOUT_ORIGINAL_PYTHONPATH', None)\n >>> orig_path = os.environ.get('PYTHONPATH')\n >>> os.environ['PYTHONPATH'] = '/bogus'\n\n >>> finder.find_files(os.path.join(repos, 'dir1'))\n ['data1.txt', 'dir11/data1.txt']\n\n >>> if bo_orig_path:\n ... os.environ['BUILDOUT_ORIGINAL_PYTHONPATH'] = bo_orig_path\n >>> if orig_path:\n ... os.environ['PYTHONPATH'] = orig_path\n\n\n=======\nCHANGES\n=======\n\n1.1.1 (2010-08-30)\n------------------\n\n- Bug: Improve the Buildout support. Thanks to Gary Poster for helping me out.\n\n1.1.0 (2010-08-30)\n------------------\n\n- Feature: Make ``z3c.setuptools_mercurial`` compatible with Buildout 1.5,\n which does not include the standard PYTHONPATH by default anymore. This\n caused mercurial not to find its library.\n\n- Feature: Use ``doctest`` instead of ``zope.testing.doctest``.\n\n- Feature: Update coverage setup.\n\n\n1.0.1 (2009-12-16)\n------------------\n\n- Feature: Add a test for getting the file list within a sub-directory of the\n repository.\n\n- Bug: It turns out that setuptools does not like \"./\" notation but only\n \"\". Fixed the problem.\n\n\n1.0.0 (2009-12-15)\n------------------\n\n- Initial release.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/z3c.setuptools_mercurial", "keywords": "setuptools mercurial distribution", "license": "ZPL 2.1", "maintainer": null, "maintainer_email": null, "name": "z3c.setuptools_mercurial", "package_url": "https://pypi.org/project/z3c.setuptools_mercurial/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/z3c.setuptools_mercurial/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/z3c.setuptools_mercurial" }, "release_url": "https://pypi.org/project/z3c.setuptools_mercurial/1.1.1/", "requires_dist": null, "requires_python": null, "summary": "Mercurial File Finder Plugin for Setuptools", "version": "1.1.1" }, "last_serial": 802109, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "bd1333436d8d0692f33483f0def558ee", "sha256": "236dc74cb4f746984454bec8f0b3a408c2607fa432d7781f6c4cb74dec89e9ae" }, "downloads": -1, "filename": "z3c.setuptools_mercurial-1.0.0.tar.gz", "has_sig": false, "md5_digest": "bd1333436d8d0692f33483f0def558ee", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4655, "upload_time": "2009-12-16T03:14:20", "url": "https://files.pythonhosted.org/packages/49/38/5aee6915d24eba6d5b2016e3daa26a792d7603e4869a50c005cbcd8cad34/z3c.setuptools_mercurial-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "b5b4a9630ea1086e6d6e010d132ce917", "sha256": "0f2003fb174d4c21088822705a5f57c194ba7f78035578b10ef89c9bf4a02a87" }, "downloads": -1, "filename": "z3c.setuptools_mercurial-1.0.1.tar.gz", "has_sig": false, "md5_digest": "b5b4a9630ea1086e6d6e010d132ce917", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4851, "upload_time": "2009-12-16T07:12:51", "url": "https://files.pythonhosted.org/packages/2a/80/740ba9fe19475807a78e55901039ca580eca8a4129ac27ee4bb8a46d49ec/z3c.setuptools_mercurial-1.0.1.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "e5143f55de5cf9588d3e86d456f2c4db", "sha256": "725a5a6ea2deb8762cc4f39d3ab3b47567a16d47c11a5b519fa71c0d28f50515" }, "downloads": -1, "filename": "z3c.setuptools_mercurial-1.1.0.tar.gz", "has_sig": false, "md5_digest": "e5143f55de5cf9588d3e86d456f2c4db", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5148, "upload_time": "2010-08-30T21:11:59", "url": "https://files.pythonhosted.org/packages/36/cf/cba73baada628ad5de1b8d8df1a56d7e185d076ac0aac450cbff40e97454/z3c.setuptools_mercurial-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "243762a7bb35b33954d7da0155031259", "sha256": "fb0a9f1d33ce7543e87170811d5cec49d935897294b29a6c104d590344e3e6ac" }, "downloads": -1, "filename": "z3c.setuptools_mercurial-1.1.1.tar.gz", "has_sig": false, "md5_digest": "243762a7bb35b33954d7da0155031259", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5541, "upload_time": "2010-08-30T23:03:08", "url": "https://files.pythonhosted.org/packages/1d/9b/c30552fb493cd4919421f2003738248bfb8efb5215c2e0675f253f648a6a/z3c.setuptools_mercurial-1.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "243762a7bb35b33954d7da0155031259", "sha256": "fb0a9f1d33ce7543e87170811d5cec49d935897294b29a6c104d590344e3e6ac" }, "downloads": -1, "filename": "z3c.setuptools_mercurial-1.1.1.tar.gz", "has_sig": false, "md5_digest": "243762a7bb35b33954d7da0155031259", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5541, "upload_time": "2010-08-30T23:03:08", "url": "https://files.pythonhosted.org/packages/1d/9b/c30552fb493cd4919421f2003738248bfb8efb5215c2e0675f253f648a6a/z3c.setuptools_mercurial-1.1.1.tar.gz" } ] }