{ "info": { "author": "Matthias Dellweg", "author_email": "dellweg@atix.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Django", "License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)", "Operating System :: POSIX :: Linux", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": ".. image:: https://travis-ci.org/ATIX-AG/pulp_gem.svg?branch=master\n :target: https://travis-ci.org/ATIX-AG/pulp_gem\n\n``pulp_gem`` Plugin\n===================\n\nThis is the ``pulp_gem`` Plugin for `Pulp Project\n3.0+ `__. This plugin adds importers and distributors\nfor rubygems.\n\nAll REST API examples below use `httpie `__ to perform the requests.\nThe ``httpie`` commands below assume that the user executing the commands has a ``.netrc`` file\nin the home directory. The ``.netrc`` should have the following configuration:\n\n.. code-block::\n\n machine localhost\n login admin\n password admin\n\nIf you configured the ``admin`` user with a different password, adjust the configuration\naccordingly. If you prefer to specify the username and password with each request, please see\n``httpie`` documentation on how to do that.\n\nThis documentation makes use of the `jq library `_\nto parse the json received from requests, in order to get the unique urls generated\nwhen objects are created. To follow this documentation as-is please install the jq\nlibrary with:\n\n``$ sudo dnf install jq``\n\nInstall ``pulpcore``\n--------------------\n\nFollow the `installation\ninstructions `__\nprovided with pulpcore.\n\nInstall ``pulp-gem`` from source\n--------------------------------\n\n1) sudo -u pulp -i\n2) source ~/pulpvenv/bin/activate\n3) git clone https://github.com/ATIX-AG/pulp_gem\n4) cd pulp\\_gem\n5) python setup.py develop\n6) pulp-manager makemigrations pulp\\_gem\n7) pulp-manager migrate pulp\\_gem\n8) django-admin runserver\n9) gunicorn pulpcore.content:server --bind 'localhost:8080' --worker-class 'aiohttp.GunicornWebWorker' -w 2\n10) sudo systemctl restart pulp\\_resource\\_manager\n11) sudo systemctl restart pulp\\_worker@1\n12) sudo systemctl restart pulp\\_worker@2\n\nInstall ``pulp-gem`` From PyPI\n------------------------------\n\n1) sudo -u pulp -i\n2) source ~/pulpvenv/bin/activate\n3) pip install pulp-gem\n4) pulp-manager makemigrations pulp\\_gem\n5) pulp-manager migrate pulp\\_gem\n6) django-admin runserver\n7) gunicorn pulpcore.content:server --bind 'localhost:8080' --worker-class 'aiohttp.GunicornWebWorker' -w 2\n8) sudo systemctl restart pulp\\_resource\\_manager\n9) sudo systemctl restart pulp\\_worker@1\n10) sudo systemctl restart pulp\\_worker@2\n\nCreate a repository ``foo``\n---------------------------\n\n``$ http POST http://localhost:8000/pulp/api/v3/repositories/ name=foo``\n\n.. code:: json\n\n {\n \"_href\": \"/pulp/api/v3/repositories/1/\",\n \"...\": \"...\"\n }\n\n``$ export REPO_HREF=$(http :8000/pulp/api/v3/repositories/ | jq -r '.results[] | select(.name == \"foo\") | ._href')``\n\nAdd a remote\n------------\n\n``$ http POST http://localhost:8000/pulp/api/v3/remotes/gem/ name='bar' url='https://rubygems.org/' policy='streamed'``\n\n.. code:: json\n\n {\n \"_href\": \"/pulp/api/v3/remotes/gem/1/\",\n \"...\" : \"...\"\n }\n\n``$ export REMOTE_HREF=$(http :8000/pulp/api/v3/remotes/gem/ | jq -r '.results[] | select(.name == \"bar\") | ._href')``\n\nSync repository ``foo`` using remote ``bar``\n--------------------------------------------\n\n``$ http POST ':8000'${REMOTE_HREF}'sync/' repository=$REPO_HREF``\n\nUpload ``foo-0.0.1.gem`` to Pulp\n--------------------------------\n\nCreate an Artifact by uploading the gemfile to Pulp.\n\n``$ http --form POST http://localhost:8000/pulp/api/v3/artifacts/ file@./foo-0.0.1.gem``\n\n.. code:: json\n\n {\n \"_href\": \"/pulp/api/v3/artifacts/1/\",\n \"...\": \"...\"\n }\n\nYou need to upload the corresponding ``foo-0.0.1.gemspec.rz`` in the same way.\n\nCreate ``gem`` content from an Artifact\n---------------------------------------\n\n``$ http POST http://localhost:8000/pulp/api/v3/content/gem/gems/ artifact=\"/pulp/api/v3/artifacts/1/\"``\n\n.. code:: json\n\n {\n \"_href\": \"/pulp/api/v3/content/gem/gems/1/\",\n \"artifacts\": {\n \"gems/foo-0.0.1.gem\":\"/pulp/api/v3/artifacts/1/\",\n \"quick/Marshal.4.8/foo-0.0.1.gemspec.rz\":\"/pulp/api/v3/artifacts/2/\"\n },\n \"name\": \"foo\",\n \"notes\": {},\n \"type\": \"gem\",\n \"version\": \"0.0.1\"\n }\n\n``$ export CONTENT_HREF=$(http :8000/pulp/api/v3/content/gem/gems/ | jq -r '.results[] | select(.name == \"foo\") | ._href')``\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ATIX-AG/pulp_gem", "keywords": "", "license": "GPLv2+", "maintainer": "", "maintainer_email": "", "name": "pulp-gem", "package_url": "https://pypi.org/project/pulp-gem/", "platform": "", "project_url": "https://pypi.org/project/pulp-gem/", "project_urls": { "Homepage": "https://github.com/ATIX-AG/pulp_gem" }, "release_url": "https://pypi.org/project/pulp-gem/0.0.1b2/", "requires_dist": [ "pulpcore-plugin (>=0.1.0b15)", "rubymarshal" ], "requires_python": "", "summary": "Gemfile plugin for the Pulp Project", "version": "0.0.1b2" }, "last_serial": 4615956, "releases": { "0.0.1a1": [ { "comment_text": "", "digests": { "md5": "9776ff2d197e7f2a580cab534882f88c", "sha256": "357f99b12495315c1116584b32af8223dc6b806ab5807f899b9979092b5e6c7b" }, "downloads": -1, "filename": "pulp-gem-0.0.1a1.tar.gz", "has_sig": false, "md5_digest": "9776ff2d197e7f2a580cab534882f88c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16441, "upload_time": "2018-02-20T09:18:24", "url": "https://files.pythonhosted.org/packages/46/38/eecee5ccbce4c5fa88688f0b106f8f51aab7de51ea01bf62ed2d3a08c7b6/pulp-gem-0.0.1a1.tar.gz" } ], "0.0.1b1": [ { "comment_text": "", "digests": { "md5": "31dc90dd05f98372bedaba272519ef40", "sha256": "3afa5290be6b64430a11cd6d9b1c10bebab6b572c9dd438fb2c0f1741b4eb2d4" }, "downloads": -1, "filename": "pulp_gem-0.0.1b1-py3-none-any.whl", "has_sig": false, "md5_digest": "31dc90dd05f98372bedaba272519ef40", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 29783, "upload_time": "2018-12-04T15:33:41", "url": "https://files.pythonhosted.org/packages/f4/6c/559d74ac124250e45160185e548a2721585594c13b8bd3cceec9f796be3c/pulp_gem-0.0.1b1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c689c8d65bf5bbdf2f734d51b39ce9e6", "sha256": "57d54b6cda5d004b8ed865603901df9ec44ff470e0379b60f230c91f3611360a" }, "downloads": -1, "filename": "pulp-gem-0.0.1b1.tar.gz", "has_sig": false, "md5_digest": "c689c8d65bf5bbdf2f734d51b39ce9e6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22937, "upload_time": "2018-12-04T15:33:43", "url": "https://files.pythonhosted.org/packages/42/23/7972707fa52b3e92a0b8dcd62e5784515d35410c1efa0972cdc7ddda088d/pulp-gem-0.0.1b1.tar.gz" } ], "0.0.1b2": [ { "comment_text": "", "digests": { "md5": "28e34976b7d42c5605f7605eeb9aabb1", "sha256": "8743e46afa85cd956f01b8217b9b2ddd19d827a566530d0a4f09930c972e4d09" }, "downloads": -1, "filename": "pulp_gem-0.0.1b2-py3-none-any.whl", "has_sig": false, "md5_digest": "28e34976b7d42c5605f7605eeb9aabb1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 30092, "upload_time": "2018-12-19T10:08:14", "url": "https://files.pythonhosted.org/packages/d6/a2/db4a657bb7e734976b379c4e4a7841aed969f434e6ac0e194de4c9535826/pulp_gem-0.0.1b2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4d671975d99d3d424be944255cefb380", "sha256": "ce773e24815d169b576e9d395106a52a5f38cdfee5fc904fcf40fa33c8fc3a32" }, "downloads": -1, "filename": "pulp-gem-0.0.1b2.tar.gz", "has_sig": false, "md5_digest": "4d671975d99d3d424be944255cefb380", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23560, "upload_time": "2018-12-19T10:08:15", "url": "https://files.pythonhosted.org/packages/c7/ff/273674d610a5aaff3de350bdbc5aab3c1e2b3bb29056250ce3b1bec56aba/pulp-gem-0.0.1b2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "28e34976b7d42c5605f7605eeb9aabb1", "sha256": "8743e46afa85cd956f01b8217b9b2ddd19d827a566530d0a4f09930c972e4d09" }, "downloads": -1, "filename": "pulp_gem-0.0.1b2-py3-none-any.whl", "has_sig": false, "md5_digest": "28e34976b7d42c5605f7605eeb9aabb1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 30092, "upload_time": "2018-12-19T10:08:14", "url": "https://files.pythonhosted.org/packages/d6/a2/db4a657bb7e734976b379c4e4a7841aed969f434e6ac0e194de4c9535826/pulp_gem-0.0.1b2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4d671975d99d3d424be944255cefb380", "sha256": "ce773e24815d169b576e9d395106a52a5f38cdfee5fc904fcf40fa33c8fc3a32" }, "downloads": -1, "filename": "pulp-gem-0.0.1b2.tar.gz", "has_sig": false, "md5_digest": "4d671975d99d3d424be944255cefb380", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23560, "upload_time": "2018-12-19T10:08:15", "url": "https://files.pythonhosted.org/packages/c7/ff/273674d610a5aaff3de350bdbc5aab3c1e2b3bb29056250ce3b1bec56aba/pulp-gem-0.0.1b2.tar.gz" } ] }