Skip to main content

[![Build Status](https://travis-ci.org/lsst-sqre/sqre-codekit.svg?branch=master)](https://travis-ci.org/lsst-sqre/sqre-codekit)

# sqre-codekit

LSST DM SQuaRE misc. code management tools

## Installation

sqre-codekit runs on Python 2.7 or 3.5. 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 `

Metadata

Release files for jmatt-sqre-codekit 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jmatt-sqre-codekit 2.1.0
File Size Uploaded Provenance Actions
jmatt-sqre-codekit-2.1.0.tar.gz 16.7 kB Without provenance Details for jmatt-sqre-codekit-2.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jmatt-sqre-codekit 2.1.0
File Interpreter ABI Platform Actions
jmatt_sqre_codekit-2.1.0-py3-none-any.whl Python 3 none any Details for jmatt_sqre_codekit-2.1.0-py3-none-any.whl

Total release size: 41.2 kB

Release files / jmatt-sqre-codekit-2.1.0.tar.gz

Download URL jmatt-sqre-codekit-2.1.0.tar.gz
Size 16.7 kB
Tags Source
SHA-256 checksum
How to use checksums
56da646664c051fe0d9643b46b7413fd21a2141706288eb2b12ca88b1df67c52
BLAKE2b-256 checksum
How to use checksums
9fe74d63a79c98f50204e5881d95c55e048b986e091c5276e54f139f61bb8277
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / jmatt_sqre_codekit-2.1.0-py3-none-any.whl

Download URL jmatt_sqre_codekit-2.1.0-py3-none-any.whl
Size 24.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d5f89088f0b7f977e4963d87e10d48bd0951476430b3e2b0a9d5105dff8ff9ec
BLAKE2b-256 checksum
How to use checksums
71dfaf42b4a66c30b53e2402c29e858165d7103c38df292fdfdca115f8cb6cc1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for jmatt-sqre-codekit 2.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page