Skip to main content

LSST Data Management SQuaRE code management tools

Project description

![Travis](https://img.shields.io/travis/lsst-sqre/sqre-codekit.svg)

# sqre-codekit

LSST DM SQuaRE misc. code management tools

## Installation

sqre-codekit runs on Python 2.7. You can install it with

`bash pip install sqre-codekit `

This will also install dependencies: github3, urllib3, requests, progress and gitpython.

## Example usage

To generate a personal user token (you will be prompted for your password):

`bash github-auth -u {{username}} `

Or to generate a token with delete privileges:

`bash github-auth -u {{username}} --delete-role `

To clone all github.com/lsst repos into an GitHub organization called {{username}}-shadow:

`bash github-fork-repos -u {{username}} --org {{username}}-shadow `

You’ll need to create this shadow organization in advance. Working in a shadow organization is useful for testing.

If you want to take a recent fork, you will need to delete the existing shadow repos first:

`bash github-delete-shadow -u {{username}} `

That requires a token with delete privileges.

To get more debugging information, set your DM_SQUARE_DEBUG variable before running any command, or use the -d debug flag on the command line.

## Available commands

  • github-auth: create a GitHub authentication token.

  • github-fork-repos: fork repositories into a shadow GitHub organization.

  • github-list-repos: list repositories in a GitHub organization, showing teams.

  • github-mv-repos-to-team: move repositories from one team to another.

  • github-tag-version: tag all repositories in a GitHub org using a team-based scheme.

  • lsst-bp: upgrade LSST DM code to [RFC-45](https://jira.lsstcorp.org/browse/RFC-45)-style.

Use the –help flag with any command to learn more.

## Development

To develop codekit, create a Python virtual environment, and

`bash git clone https://github.com/lsst-sqre/sqre-codekit.git cd sqre-codekit virtualenv venv . venv/bin/activate pip install -r requirements.txt python setup.py develop `

Note that all scripts (in codekit/cli) are installed using setuptools entry_points. See setup.py.

Tests can be run with [pytest](http://pytest.org/latest/):

`bash py.test tests `

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

sqre-codekit-1.0.0.tar.gz (13.9 kB view details)

Uploaded Source

Built Distributions

sqre_codekit-1.0.0-py2.7.egg (41.0 kB view details)

Uploaded Source

sqre_codekit-1.0.0-py2-none-any.whl (22.0 kB view details)

Uploaded Python 2

File details

Details for the file sqre-codekit-1.0.0.tar.gz.

File metadata

File hashes

Hashes for sqre-codekit-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a80c18dec0c68ae0e9fa16ca8cf10d01cf5b7e4f86ff0261d44a29e93b2cbb25
MD5 9dc64f692c9f2682eeea0df30a641e2c
BLAKE2b-256 16b3fae96168473f05e69c5c19628dc7d2182b9b8794164c87358996973065bd

See more details on using hashes here.

File details

Details for the file sqre_codekit-1.0.0-py2.7.egg.

File metadata

File hashes

Hashes for sqre_codekit-1.0.0-py2.7.egg
Algorithm Hash digest
SHA256 f1629e6979b6c59418cb8188173269a1b28fbea97798ca39321cb44ef2f6f45f
MD5 ce3e4087fcc037283c1e67d9783e50bc
BLAKE2b-256 1c3426c8c5e0ef8a77b0e2209df57467a39b6a7acee6d84c4a36b1a8ff847dca

See more details on using hashes here.

File details

Details for the file sqre_codekit-1.0.0-py2-none-any.whl.

File metadata

File hashes

Hashes for sqre_codekit-1.0.0-py2-none-any.whl
Algorithm Hash digest
SHA256 c7792ee7ab837f10ad7a9b7752db46515c05cb17c87bb8fe82dfc724d5978814
MD5 0e1851a37deff65dcf771a8e87317063
BLAKE2b-256 78a578c0e8c1f25787c62c2f04d043f2bfad95b05a9bcd20659e1bd27e8f8b84

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