open pull request via circle-ci


License
MIT
Install
pip install pkg_tracker==0.0.dev16

Documentation

MIT License

pkg_tracker

pkg_tracker continuously update the package installed with pip. Although it works only on CircleCI now, but I want to make this package work fine on other CI tool eventually.

Installation

pip install pkg-tracker

Prerequisites

This package currently works only with circleci workflow.

Usage

Get your Github access token.

  1. access your developer setting page.
  2. click Personal access tokens tab.
  3. you can generate personal access tokens.

CircleCI Setting

After you get Github personal access token, add this token as an environment GITHUB_ACCESS_TOKEN in CircleCI.

Change your circleci.yml

for example:

version: 2
jobs:
  build:
    # [...]
    update_requirements:
    docker:
      - image: circleci/python:3.6.2
    steps:
      - checkout
      - run:
          name : update_requirements
          command: |
            python -m venv .venv
            source .venv/bin/activate
            pip install pkg-tracker
            pkgtrack

workflows:
  version: 2
  build:
    jobs:
      - build:
          # [...]
  nightly:
    triggers:
      - schedule:
          cron: "00 10 * * 5"
          filters:
            branches:
              only: master
    jobs:
      - update_requirements

Command line argument

pkgtrack {the branch name you want to work this command} {the branch name merged the commit into}

Both argument is master by default. Example:

pkgtrack master,feature/auto_pkg_update develop

Contributing

Welcome. if you notice bug, please create issue. when you want to contribute, please open pull request.