Skip to content
Pre-commit pip-compile wrapper capabable of "impersonating" platforms
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
tests
.pre-commit-hooks.yaml
LICENSE
README.md
noxfile.py
pip-tools-compile
setup.py

README.md

Pre-Commit pip-tools-compile-impersonate

This is a pre-commit hook which is a simple wrapper around pip-tools pip-compile CLI script which provides functionality to impersonate platforms.

The script is currently tailored to run under linux and can impersonate Windows.

Example Usage

repos:
  - repo: https://github.com/saltstack/pip-tools-compile-impersonate
    rev: master
    hooks:
      - id: pip-tools-compile
        alias: compile-linux-py3-zmq-requirements
        name: Linux Py3 ZeroMQ Requirements
        files: ^requirements/static/(.*)\.in$
        exclude: ^requirements/static/windows\.in$
        args:
          - --out-prefix=zeromq
          - --include=requirements/zeromq.txt
          - --include=requirements/pytest.txt
        language_version: python3
      - id: pip-tools-compile
        alias: compile-linux-py2-zmq-requirements
        name: Linux Py2 ZeroMQ Requirements
        files: ^requirements/static/(.*)\.in$
        exclude: ^requirements/static/windows\.in$
        args:
          - --out-prefix=zeromq
          - --include=requirements/zeromq.txt
          - --include=requirements/pytest.txt
        language_version: python2
      - id: pip-tools-compile
        alias: compile-linux-py3-raet-requirements
        name: Linux Py3 RAET Requirements
        files: ^requirements/static/(.*)\.in$
        exclude: ^requirements/static/windows\.in$
        args:
          - --out-prefix=raet
          - --include=requirements/raet.txt
          - --include=requirements/pytest.txt
        language_version: python3
      - id: pip-tools-compile
        alias: compile-linux-py2-raet-requirements
        name: Linux Py2 RAET Requirements
        files: ^requirements/static/(.*)\.in$
        exclude: ^requirements/static/windows\.in$
        args:
          - --out-prefix=raet
          - --include=requirements/raet.txt
          - --include=requirements/pytest.txt
        language_version: python2
      - id: pip-tools-compile
        alias: compile-windows-py3-zmq-requirements
        name: Windows Py3 ZeroMQ Requirements
        files: ^requirements/static/windows\.in$
        args:
          - --platform=windows
          - --out-prefix=zeromq
          - --include=requirements/zeromq.txt
          - --include=requirements/pytest.txt
        language_version: python3
      - id: pip-tools-compile
        alias: compile-windows-py2-zmq-requirements
        name: Windows Py2 ZeroMQ Requirements
        files: ^requirements/static/windows\.in$
        args:
          - --platform=windows
          - --out-prefix=zeromq
          - --include=requirements/zeromq.txt
          - --include=requirements/pytest.txt
        language_version: python2
      - id: pip-tools-compile
        alias: compile-windows-py3-raet-requirements
        name: Windows Py3 RAET Requirements
        files: ^requirements/static/windows\.in$
        args:
          - --out-prefix=raet
          - --platform=windows
          - --include=requirements/raet.txt
          - --include=requirements/pytest.txt
          - --rebuild
        language_version: python3
      - id: pip-tools-compile
        alias: compile-windows-py2-raet-requirements
        name: Windows Py2 RAET Requirements
        files: ^requirements/static/windows\.in$
        args:
          - --out-prefix=raet
          - --platform=windows
          - --include=requirements/raet.txt
          - --include=requirements/pytest.txt
        language_version: python2
You can’t perform that action at this time.