Skip to main content

No project description provided

Project description

Stackler

Working with Phabricator Stack has never been so easy.

$ stackler submit -m "rebase msg"
By continuing, this script will:
Update D157389 with [24a42cd9 1/3 Add Framework], message: rebase msg.
Update D157390 with [67cfa09f 2/3 Add UI], message: rebase msg.
Submit [7bc9760d 3/3 Add API] based on [67cfa09f 2/3 Add the UI framework fo...].
  • Submit/Update all the commits into a Phabricator Stack
  • Wrap around git rebase <sha>^ to allow easy mid-stack edit
  • WIP print out the stack easily

Install

TL;DR

# install from pip
pip3 install --user stackler

Add to PATH

If your path isn't setup to work with pip already, as in if you see

WARNING: The script stackler is installed in <pip-path> which is not on PATH.

You need to add the pip executable path to your $PATH. Here are some examples:

  • bash

    echo -n 'PATH="$(python3 -m site --user-base)/bin:${PATH}"' >> ~/.bash_profile
    
  • zsh

    echo -n 'PATH="$(python3 -m site --user-base)/bin:${PATH}"' >> ~/.zshrc
    

Develop

Setup Enviornment

poetry install
poetry config virtualenvs.in-project true
poetry shell

Make sure you use the Python in the virtual environment setup by poetry. In VS Code, use ⌘⇧P and enter Select Interpreter, then pick the one with python.

Linter and Formatter

As specified in the VS Code setting file (.vscode/settings.json), this project uses pylint for linting and autopep8 for auto formatting.

Publish

This is mostly an excerpt from Typer CLI's publish documentataion.

Add PyPI API Token (Once)

poetry config pypi-token.pypi <pypi api token>

Publish to PyPI

  • Make sure you bump the version.
  • Publish.
poetry publish --build

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

stackler-0.1.3.tar.gz (7.1 kB view hashes)

Uploaded Source

Built Distribution

stackler-0.1.3-py3-none-any.whl (7.9 kB view hashes)

Uploaded Python 3

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