{ "info": { "author": "Iryna Shcherbina", "author_email": "shcherbina.iryna@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: POSIX :: Linux", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries" ], "description": "Mass Pagure Pull Requests tool\n==============================\n\nThis library provides tools to to do mass changes within\nFedora packages' spec files and create Pagure pull requests\nfor them.\n\nExample Usage\n-------------\n\n.. code-block:: python\n\n from mass_pagure_prs import BasePRsGenerator\n\n\n class PagurePRsGenerator(BasePRsGenerator):\n\n def modify_spec(self, specfile):\n \"\"\"Modify a spec file and return a modified version.\n\n Args:\n specfile (str): A spec file as a string.\n \n Return:\n (str) A modified spec file.\n \"\"\"\n # Do things with a spec file and return a\n # modified spec file as a string.\n\n def check_mock_build_results(self, output):\n \"\"\"Given the output of the mock build check the result.\"\"\"\n # Optional, can be skipped. Enables checking mock build\n # results/logs/created rpms if mock build is ran for packages.\n\n def check_koji_scratch_build_results(self, output):\n \"\"\"Given the output of the Koji scratch build check the result.\"\"\"\n # Optional, can be skipped. Enables checking Koji scratch build\n # results if Koji scratch build is ran for packages.\n\n\n def main():\n prs_generator = PagurePRsGenerator(\n packages_filename='packages.txt',\n output_dirname='/tmp/pagure_prs',\n dry_run=False,\n pagure_token='pagure_token',\n pagure_user='pagure_user',\n fas_user='fas_user', # will not be needed with Pagure 4.0.0\n fas_password='fas_password', # will not be needed with Pagure 4.0.0\n )\n\n # Set branch name and texts for commit messages, PR description etc.\n prs_generator.configure(\n git_branch='sample_branch',\n changelog_entry='sample message',\n commit_message='sample message',\n pr_title='sample message',\n pr_description='sample message'\n )\n\n # Open PRs.\n # Receive the list of links to opened PRs if not in dry run.\n prs = prs_generator.run(do_mock_build=True, do_koji_scratch_build=False)\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "pagure mass pr", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "mass-pagure-prs", "package_url": "https://pypi.org/project/mass-pagure-prs/", "platform": "", "project_url": "https://pypi.org/project/mass-pagure-prs/", "project_urls": null, "release_url": "https://pypi.org/project/mass-pagure-prs/0.1.dev1/", "requires_dist": null, "requires_python": "", "summary": "A library to do mass Pagure pull requests.", "version": "0.1.dev1" }, "last_serial": 3828651, "releases": { "0.1.dev1": [ { "comment_text": "", "digests": { "md5": "a621d13025cb283c0f56d4330b01a75f", "sha256": "fa0f2f5fc50e2f581a15daddf580f8f2476edc6fc14c3b7e591ed5581a1edbb4" }, "downloads": -1, "filename": "mass_pagure_prs-0.1.dev1-py3-none-any.whl", "has_sig": false, "md5_digest": "a621d13025cb283c0f56d4330b01a75f", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 18464, "upload_time": "2018-05-02T21:56:31", "url": "https://files.pythonhosted.org/packages/43/f5/7a0231e5a5efd847280de597a7394daa0f281d2332551f247afcd87ebece/mass_pagure_prs-0.1.dev1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c8ec8004d242268790791607c5054d8d", "sha256": "04c5a802f7406bf7a2eaf4ec2bca62506a9b3af7b19b4829726d0a8c0e1cbd32" }, "downloads": -1, "filename": "mass-pagure-prs-0.1.dev1.tar.gz", "has_sig": false, "md5_digest": "c8ec8004d242268790791607c5054d8d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9022, "upload_time": "2018-05-02T21:56:30", "url": "https://files.pythonhosted.org/packages/c7/7d/1e02ec2078acd7b5fa8b13058c7329eb9826a198d27c11b547ee56e6d27f/mass-pagure-prs-0.1.dev1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a621d13025cb283c0f56d4330b01a75f", "sha256": "fa0f2f5fc50e2f581a15daddf580f8f2476edc6fc14c3b7e591ed5581a1edbb4" }, "downloads": -1, "filename": "mass_pagure_prs-0.1.dev1-py3-none-any.whl", "has_sig": false, "md5_digest": "a621d13025cb283c0f56d4330b01a75f", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 18464, "upload_time": "2018-05-02T21:56:31", "url": "https://files.pythonhosted.org/packages/43/f5/7a0231e5a5efd847280de597a7394daa0f281d2332551f247afcd87ebece/mass_pagure_prs-0.1.dev1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c8ec8004d242268790791607c5054d8d", "sha256": "04c5a802f7406bf7a2eaf4ec2bca62506a9b3af7b19b4829726d0a8c0e1cbd32" }, "downloads": -1, "filename": "mass-pagure-prs-0.1.dev1.tar.gz", "has_sig": false, "md5_digest": "c8ec8004d242268790791607c5054d8d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9022, "upload_time": "2018-05-02T21:56:30", "url": "https://files.pythonhosted.org/packages/c7/7d/1e02ec2078acd7b5fa8b13058c7329eb9826a198d27c11b547ee56e6d27f/mass-pagure-prs-0.1.dev1.tar.gz" } ] }