edx-repo-tools


Nameedx-repo-tools JSON
Version 0.9.0 PyPI version JSON
download
home_pagehttps://github.com/openedx/repo-tools
SummaryThis repo contains a number of tools Open edX uses for working with GitHub repositories.
upload_time2024-03-27 14:15:29
maintainerNone
docs_urlNone
authoredX
requires_pythonNone
licenseApache
keywords edx repo tools
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ###################
Open edX Repo Tools
###################

This repo contains a number of tools Open edX engineers use for working with
GitHub repositories.

The set of tools has grown over the years. Some are old and in current use,
some have fallen out of use, some are quite new.

Setting up GitHub authentication
================================

Most of these make GitHub API calls, and so will need GitHub credentials in
order to not be severely rate-limited.  Edit (or create) `~/.netrc` so that it
has an entry like this::

    machine api.github.com
      login your_user_name
      password ghp_XyzzyfGXFooBar8nBqQuuxY9brgXYz4Xyzzy

Change the login to your GitHub user name.  The password is a Personal Access
Token you get from https://github.com/settings/tokens.  Visit that page, click
"Generate new token." It will prompt you for your password, then you'll see a
scary list of scopes. Check the "repo" option and click "Generate token." Copy
the token that appears. Paste it into your ~/.netrc in the "password" entry.


Working in the repo
===================

To work on these tools:

1. Use a virtualenv.

2. Install dependencies::

    make dev-install

3. Run tests::

    make test

4. Older tools were Python files run from the root of the repo.  Now we are
   being more disciplined and putting code into importable modules with entry
   points in setup.py.

5. Simple tools can go into an existing subdirectory of edx_repo_tools.  Follow
   the structure of existing tools you find here.  More complex tools, or ones
   that need unusual third-party requirements, should go into a new
   subdirectory of edx_repo_tools.

6. Add a new `entry_point` in setup.py for your command:

   .. code::

        entry_points={
            'console_scripts': [
                ...
                'new_tool = edx_repo_tools.new_tool_dir.new_tool:main',
                ...

7. If your tool is in its own directory, you can create an `extra.in` file
   there with third-party requirements intended just for your tool.  This will
   automatically create an installable "extra" for your requirements.

Active Tools
============

repo_checks
-----------

See the `repo_checks README <edx_repo_tools/repo_checks/README.rst>`_ in its subfolder.

Older Tools
===========

There are many programs in this repo in various stages of disrepair.  A few
of them are described in this repo's `older README.md`_ file.  Others are not
described at all, but may be useful, or have useful tidbits in the code.

.. _older README.md: https://github.com/openedx/repo-tools/blob/7aa8bda466d1925c56d4ad6e3b2bdd87b1f83148/README.md


Feedback
========

Please send any feedback to oscm@edx.org.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/openedx/repo-tools",
    "name": "edx-repo-tools",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "edx repo tools",
    "author": "edX",
    "author_email": "oscm@edx.org",
    "download_url": "https://files.pythonhosted.org/packages/6f/e8/3bf9d0ff5cd9dfbe0a6a000c1c0f3b50084e01d0b47668e2a626600751f7/edx-repo-tools-0.9.0.tar.gz",
    "platform": null,
    "description": "###################\nOpen edX Repo Tools\n###################\n\nThis repo contains a number of tools Open edX engineers use for working with\nGitHub repositories.\n\nThe set of tools has grown over the years. Some are old and in current use,\nsome have fallen out of use, some are quite new.\n\nSetting up GitHub authentication\n================================\n\nMost of these make GitHub API calls, and so will need GitHub credentials in\norder to not be severely rate-limited.  Edit (or create) `~/.netrc` so that it\nhas an entry like this::\n\n    machine api.github.com\n      login your_user_name\n      password ghp_XyzzyfGXFooBar8nBqQuuxY9brgXYz4Xyzzy\n\nChange the login to your GitHub user name.  The password is a Personal Access\nToken you get from https://github.com/settings/tokens.  Visit that page, click\n\"Generate new token.\" It will prompt you for your password, then you'll see a\nscary list of scopes. Check the \"repo\" option and click \"Generate token.\" Copy\nthe token that appears. Paste it into your ~/.netrc in the \"password\" entry.\n\n\nWorking in the repo\n===================\n\nTo work on these tools:\n\n1. Use a virtualenv.\n\n2. Install dependencies::\n\n    make dev-install\n\n3. Run tests::\n\n    make test\n\n4. Older tools were Python files run from the root of the repo.  Now we are\n   being more disciplined and putting code into importable modules with entry\n   points in setup.py.\n\n5. Simple tools can go into an existing subdirectory of edx_repo_tools.  Follow\n   the structure of existing tools you find here.  More complex tools, or ones\n   that need unusual third-party requirements, should go into a new\n   subdirectory of edx_repo_tools.\n\n6. Add a new `entry_point` in setup.py for your command:\n\n   .. code::\n\n        entry_points={\n            'console_scripts': [\n                ...\n                'new_tool = edx_repo_tools.new_tool_dir.new_tool:main',\n                ...\n\n7. If your tool is in its own directory, you can create an `extra.in` file\n   there with third-party requirements intended just for your tool.  This will\n   automatically create an installable \"extra\" for your requirements.\n\nActive Tools\n============\n\nrepo_checks\n-----------\n\nSee the `repo_checks README <edx_repo_tools/repo_checks/README.rst>`_ in its subfolder.\n\nOlder Tools\n===========\n\nThere are many programs in this repo in various stages of disrepair.  A few\nof them are described in this repo's `older README.md`_ file.  Others are not\ndescribed at all, but may be useful, or have useful tidbits in the code.\n\n.. _older README.md: https://github.com/openedx/repo-tools/blob/7aa8bda466d1925c56d4ad6e3b2bdd87b1f83148/README.md\n\n\nFeedback\n========\n\nPlease send any feedback to oscm@edx.org.\n",
    "bugtrack_url": null,
    "license": "Apache",
    "summary": "This repo contains a number of tools Open edX uses for working with GitHub repositories.",
    "version": "0.9.0",
    "project_urls": {
        "Homepage": "https://github.com/openedx/repo-tools"
    },
    "split_keywords": [
        "edx",
        "repo",
        "tools"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7554437a41288f73b9995888ea320276453533bacf486637638e71f3b4b16c63",
                "md5": "430a7c1cc55e2c6d291bc316069dad5b",
                "sha256": "c0210f319edd9c5ebab049079e99bd5be4920b8eb3d972b37ab418289634bd11"
            },
            "downloads": -1,
            "filename": "edx_repo_tools-0.9.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "430a7c1cc55e2c6d291bc316069dad5b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 103810,
            "upload_time": "2024-03-27T14:15:27",
            "upload_time_iso_8601": "2024-03-27T14:15:27.853689Z",
            "url": "https://files.pythonhosted.org/packages/75/54/437a41288f73b9995888ea320276453533bacf486637638e71f3b4b16c63/edx_repo_tools-0.9.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6fe83bf9d0ff5cd9dfbe0a6a000c1c0f3b50084e01d0b47668e2a626600751f7",
                "md5": "d0bf1880c252aa209b904aed89e03e40",
                "sha256": "c20a0d1de113a53c4761f9b64bf894ef837f31fc18954336e4d7dda1f8b4aaec"
            },
            "downloads": -1,
            "filename": "edx-repo-tools-0.9.0.tar.gz",
            "has_sig": false,
            "md5_digest": "d0bf1880c252aa209b904aed89e03e40",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 85048,
            "upload_time": "2024-03-27T14:15:29",
            "upload_time_iso_8601": "2024-03-27T14:15:29.884481Z",
            "url": "https://files.pythonhosted.org/packages/6f/e8/3bf9d0ff5cd9dfbe0a6a000c1c0f3b50084e01d0b47668e2a626600751f7/edx-repo-tools-0.9.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-27 14:15:29",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "openedx",
    "github_project": "repo-tools",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "edx-repo-tools"
}
        
edX
Elapsed time: 0.23694s