Skip to main content

The team b cli

Project description

The team b cli

This is a cli platform to help a developer manage multiple repositories and other common automation tasks.

Installation

tb can be installed in your local Python 3.7 environment or it can be downloaded as a single binary for your operating system.

Python install

pip install tb-cli

Operating system-specific binary install

  1. Visit https://bitbucket.org/mrdon/tb/downloads/ and download the release for your operating system.
  2. Untar the file and you will find a single 'tb' binary.
  3. Place it somewhere in your path
  4. Upon first execution of a repo command like 'tb repo', it will ask you some questions about your environment

Development

This project includes a number of helpers in the Makefile to streamline common development tasks.

To install it in development mode, run

make

This will not only install tb in a local virtualenv, but also build the 'tb' binary in dist/

Environment setup

The following demonstrates setting up and working with a development environment:

# create a virtualenv for development
make virtualenv
source env/bin/activate

# run tb cli application
tb --help

# run pytest / coverage
make test

Releasing to Bitbucket

The tb release process uses Bitbucket pipelines to release the version and release the linux binary (OSX has to be released manually).

To run a release:

  1. Find the commit you want to release. For the latest commit, you'd visit: https://bitbucket.org/mrdon/tb/commits/master
  2. Find the "Run pipeline" link on the right side and click "Run". This will update the CHANGES.MD file with the release info, tag the repository, build the binary, upload the binary to Bitbucket, then finally change the version to the next dev version.
  3. Build and upload the OSX release
    1. You must create a Bitbucket app token that has the ability to write to your repositories. Remember this, along with your Bitbucket user name, as it will be needed in the last step
    2. Get access to an OSX machine and run the next steps on that machine.
    3. Clone the tb repository and checkout the tag that was created previously
    4. Run the osx release command:
      1. make dist-osx-upload

Contributors

Pull requests, issues and comments welcome. For pull requests:

  • Add tests for new features and bug fixes
  • Follow the existing style
  • Separate unrelated changes into multiple pull requests

See the existing issues for things to start contributing.

For bigger changes, make sure you start a discussion first by creating an issue and explaining the intended change.

License

Copyright (c) 2019 Don Brown, Atlassian and others. Apache 2.0 licensed, see LICENSE.txt file.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

tb_cli-2.0.18-py3-none-any.whl (31.0 kB view details)

Uploaded Python 3

File details

Details for the file tb_cli-2.0.18-py3-none-any.whl.

File metadata

  • Download URL: tb_cli-2.0.18-py3-none-any.whl
  • Upload date:
  • Size: 31.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for tb_cli-2.0.18-py3-none-any.whl
Algorithm Hash digest
SHA256 f9abea3de7387a8b782a7e0b2968cb66caca92e16eb45717fab98158364720d5
MD5 6ede9a5fbb1a6ec2fa94fe60425fde8e
BLAKE2b-256 a9cba082137b3af7d819d5119975ea77286b4387f9333fd2dbc23851d970256b

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