Skip to content

Commit

Permalink
Rename existing pre_commit to pre-commit
Browse files Browse the repository at this point in the history
Copied verbatim from conda-forge/pre_commit, only changing
the package name.

See conda-forge/pre_commit-feedstock#35
  • Loading branch information
nicoddemus committed Aug 14, 2019
1 parent ad2858b commit b1fcd32
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions recipes/pre-commit/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{% set name = "pre-commit" %}
{% set version = "1.12.0" %}
{% set hash_type = "sha256" %}
{% set hash = "81fe7b1b0cba93e7d7aa3cfbfd55f5280d3639e4fcb14bf9d1b95ab35f41cf0d" %}

package:
name: {{ name }}
version: {{ version }}

source:
fn: {{ name }}-v{{ version }}.tar.gz
url: https://github.com/pre-commit/pre-commit/archive/v{{ version }}.tar.gz
{{ hash_type }}: {{ hash }}

build:
number: 1
script: pip install . --no-deps --ignore-installed
entry_points:
- pre-commit = pre_commit.main:main
- pre-commit-validate-config = pre_commit.clientlib:validate_config_main
- pre-commit-validate-manifest = pre_commit.clientlib:validate_manifest_main

requirements:
build:
- pip
- python

run:
- aspy.yaml
- cached-property
- cfgv >=1.0.0
- identify >=1.0.0
- importlib_metadata
- importlib_resources # [py<37]
- nodeenv >=0.11.1
- python
- pyyaml
- setuptools
- six
- toml
- virtualenv

test:
imports:
- pre_commit
- pre_commit.commands
- pre_commit.languages
commands:
- pre-commit --help
- pre-commit-validate-config --help
- pre-commit-validate-manifest --help

about:
home: http://pre-commit.com/
license: MIT
license_file: LICENSE
summary: 'A framework for managing and maintaining multi-language pre-commit hooks.'
license_family: MIT
dev_url: https://github.com/pre-commit/pre-commit
doc_url: https://github.com/pre-commit/pre-commit

extra:
recipe-maintainers:
- nicoddemus

0 comments on commit b1fcd32

Please sign in to comment.