{ "info": { "author": "Tuenti Technologies S.L.", "author_email": "sre@tuenti.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Topic :: Software Development :: Version Control" ], "description": "Repoman\n=======\n\nRepoman is a python library designed to automate repository operations\nin release processes.\n\nIt provides a unified API to work with different SCMs, and the\nmechanisms to quickly have ready and clean working copies. It currently\nsupports git and mercurial.\n\nThere are some basic concepts that are needed to start working with\nRepoman:\n\n- A ``Repository`` is an instance with the usual operations of a SCM.\n- A ``Depot`` contains a repository, and the operations to interact\n with Repoman managers.\n- A ``DepotManager`` provides ``Depots`` with an specific code, each\n ``DepotManager`` is intended to manage ``Depots`` of the same\n project.\n- Each ``Depot`` is locked to the task that requests it to the manager\n and belongs to this task till it's freed.\n\nBut the best way to see how it works is with an example:\n\n.. code:: python\n\n from repoman import depot_manager\n\n repo_kind = 'git'\n repo_url = 'https://github.com/tuenti/python-repoman.git'\n\n manager = depot_manager.DepotManager(repo_kind=repo_kind)\n\n depot = manager.give_me_depot('task_id', 'Owner task name')\n\n try:\n depot.request_refresh({ repo_url: ['master'] })\n\n # Do work...\n depot.repository.tag('example')\n # ...\n\n # If you were going to continue the task in other process,\n # it needs to receive the path of the depot to request it\n depot = manager.give_me_depot_from_path(depot.path)\n assert 'example' in depot.repository.tags()\n\n finally:\n # And when the repository is not needed anymore, free its depot\n manager.free_depot(depot, 'task_id')\n\nYou can know more by looking to the examples in the ``doc/examples``\ndirectory, and to the full `API reference`_.\n\nInstallation\n------------\n\nRepoman is intended to be used as part of a more complex release\nautomation infrastructure, it requires a quite specific set of\ndependencies, see ``Requirements`` section to know more about this.\n\nTo install it in your development environment, you can use pip:\n\n::\n\n pip install -e git+https://github.com/tuenti/python-repoman.git@v0.6#egg=repoman\n\nTo install it in your production environment, it's recommended to\ngenerate your own packages, usual tools can be used for that, e.g:\n\n::\n\n python setup.py bdist_egg\n\nRequirements\n------------\n\nRepoman should play well with any Linux distribution with Python > 2.6,\nit's daily used in Debian, and has been also tested in Ubuntu and\nFedora.\n\nAs a general rule, ``pip install -r requirements.txt`` is able to\ninstall everything, but some things need to be taken into account.\n\n``pygit2`` needs to be compiled, for that you need a ``gcc`` toolchain\nand the development files of ``libgit2`` (see `pygit2 installation notes`_).\nYou have to use the same version of ``pygit2`` and ``libgit2``. Currently\nrepoman only works with 0.20 series. It's recommended to prepare your own\nset of pre-built packages for your production enviroment.\n\n``mercurial`` > 2.1 is also required, as well as ``python-hglib``, the\nversion specified in the ``requirements.txt`` file should be fine.\n\nSome Dockerfiles are provided in the ``docker`` directory that can serve\nas examples about how to prepare an environment to work with repoman in\ndifferent distributions.\n\nCredits & Contact\n-----------------\n\nRepoman was created by `Tuenti Technologies S.L.`_. You can follow\nTuenti engineering team on Twitter `@tuentieng`_.\n\nLicense\n-------\n\nRepoman is available under the Apache License, Version 2.0. See LICENSE\nfile for more info.\n\n.. _`API reference`: http://tuenti.github.io/python-repoman\n.. _`pygit2 installation notes`: http://www.pygit2.org/install.html\n.. _`@tuentieng`: http://twitter.com/tuentieng\n.. _`Tuenti Technologies S.L.`: http://github.com/tuenti", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/tuenti/python-repoman/tarball/v0.7.1", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/tuenti/python-repoman", "keywords": "DVCS git mercurial", "license": "Apache Software License", "maintainer": null, "maintainer_email": null, "name": "repoman-scm", "package_url": "https://pypi.org/project/repoman-scm/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/repoman-scm/", "project_urls": { "Download": "https://github.com/tuenti/python-repoman/tarball/v0.7.1", "Homepage": "https://github.com/tuenti/python-repoman" }, "release_url": "https://pypi.org/project/repoman-scm/0.7.1/", "requires_dist": null, "requires_python": null, "summary": "Library and tools to manage pools of code repositories", "version": "0.7.1" }, "last_serial": 1213937, "releases": { "0.6.0": [], "0.6.3": [ { "comment_text": "", "digests": { "md5": "ff2b80f1a1d1628862ef3a668a80c184", "sha256": "7eb6bf55b67e2a4afef5301c56a4b86d9679adec45985da1ed42af8178a2978b" }, "downloads": -1, "filename": "repoman-scm-0.6.3.tar.gz", "has_sig": false, "md5_digest": "ff2b80f1a1d1628862ef3a668a80c184", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 29642, "upload_time": "2014-07-28T11:20:56", "url": "https://files.pythonhosted.org/packages/6e/8d/3b0b9e8323fd563dc8b18b99fb26c72417fdf701530762b578d4d8e19391/repoman-scm-0.6.3.tar.gz" } ], "0.6.4": [ { "comment_text": "", "digests": { "md5": "c7b5217800630fb4d0a1284bf2efb148", "sha256": "68949f072926064465b7af9d43949ae221c673181c1ba2375c0b389e2a7293a1" }, "downloads": -1, "filename": "repoman-scm-0.6.4.tar.gz", "has_sig": false, "md5_digest": "c7b5217800630fb4d0a1284bf2efb148", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 32521, "upload_time": "2014-07-28T11:29:18", "url": "https://files.pythonhosted.org/packages/d7/b9/577d621ece9486320e9cdc7e441d5195f39bde8acefc6604b7273a51a598/repoman-scm-0.6.4.tar.gz" } ], "0.7.1": [ { "comment_text": "", "digests": { "md5": "95f58f8764b64ad55fa1b56e8427f18a", "sha256": "05569cfd39179ba784e423c0dcbdb9d086f84548899688401fa3cfd4233c632f" }, "downloads": -1, "filename": "repoman-scm-0.7.1.tar.gz", "has_sig": false, "md5_digest": "95f58f8764b64ad55fa1b56e8427f18a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 32203, "upload_time": "2014-09-05T10:54:20", "url": "https://files.pythonhosted.org/packages/c3/25/59b9b362cbafb0762cc66ed1493a4b53342d55c0eaf10389a62282c14639/repoman-scm-0.7.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "95f58f8764b64ad55fa1b56e8427f18a", "sha256": "05569cfd39179ba784e423c0dcbdb9d086f84548899688401fa3cfd4233c632f" }, "downloads": -1, "filename": "repoman-scm-0.7.1.tar.gz", "has_sig": false, "md5_digest": "95f58f8764b64ad55fa1b56e8427f18a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 32203, "upload_time": "2014-09-05T10:54:20", "url": "https://files.pythonhosted.org/packages/c3/25/59b9b362cbafb0762cc66ed1493a4b53342d55c0eaf10389a62282c14639/repoman-scm-0.7.1.tar.gz" } ] }