Skip to main content

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

Project description

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:

    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 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.

Feedback

Please send any feedback to oscm@edx.org.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

edx_repo_tools-2.0.0.tar.gz (96.7 kB view details)

Uploaded Source

Built Distribution

edx_repo_tools-2.0.0-py3-none-any.whl (116.8 kB view details)

Uploaded Python 3

File details

Details for the file edx_repo_tools-2.0.0.tar.gz.

File metadata

  • Download URL: edx_repo_tools-2.0.0.tar.gz
  • Upload date:
  • Size: 96.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for edx_repo_tools-2.0.0.tar.gz
Algorithm Hash digest
SHA256 55c277bbfd888078d71e723627f4b74761a87ff079139f3d76b74de7ee3ac02a
MD5 4139828ec0966e65f06a6b15e0afba35
BLAKE2b-256 9d8ed7cc9296ad63a30917b1c872203aad2621c9aa4d1c8a016397bed4f2ce13

See more details on using hashes here.

File details

Details for the file edx_repo_tools-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for edx_repo_tools-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b4445b163ad811de2d6e906d6727c76f56d5ab6b5c926b6151348068660b1356
MD5 9df0b69ee846456e501fa800f0c3548a
BLAKE2b-256 64236162506ad7ea8fb260b953d7f7fa87a853a9fdc3e732876be0689ef8b50a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page