<commit_before>{% set import_path = "github.com/etcd-io/zetcd" %}
{% set version = "0.0.5" %}

{% set name = import_path.split('/')[-1] %}
{% set pkg_src = ('src/'+import_path).replace('etcd-io',
                                              'coreos').replace("/", "\\" if win else "/") %}

package:
  name: {{ name|lower }}
  version: v{{ version }}

source:
  - folder: {{ pkg_src }}
    git_url: https://{{ import_path }}
    git_tag: v{{ version }}

build:
  number: 0
  script:
    - pushd {{ pkg_src }}
    - go install -v
        -ldflags "-w -X {{pkg_src}}/version.Version={{ version }} -X {{pkg_src}}/version.SHA={{ GIT_FULL_HASH }}"
        ./cmd/...

requirements:
  build:
    - {{ compiler("go") }}

test:
  commands:
      - which zetcd  # [not win]
      - where zetcd  # [win]
      - zkctl --help
      - zkboom --help

about:
  home: https://github.com/etcd-io/zetcd

  license: Apache 2.0
  license_family: Apache
  license_file: {{ pkg_src }}/LICENSE
  summary: 'A ZooKeeper "personality" for etcd.'

  description: |
    Zetcd allows serving the Apache Zookeeper API backed with an etcd cluster.

extra:
  recipe-maintainers:
    - adbeda
<commit_msg>Apply suggestions from code review<commit_after>{% set import_path = "github.com/etcd-io/zetcd" %}
{% set version = "0.0.5" %}

{% set name = import_path.split('/')[-1] %}
{% set pkg_src = ('src/'+import_path).replace('etcd-io',
                                              'coreos').replace("/", "\\" if win else "/") %}

package:
  name: {{ name|lower }}
  version: v{{ version }}

source:
  - folder: {{ pkg_src }}
    git_url: https://{{ import_path }}
    git_tag: v{{ version }}

build:
  number: 0
  script:
    - pushd {{ pkg_src }}
    - go install -v
        -ldflags "-w -X {{pkg_src}}/version.Version={{ version }} -X {{pkg_src}}/version.SHA={{ GIT_FULL_HASH }}"
        ./cmd/...

requirements:
  build:
    - {{ compiler("go") }}

test:
  commands:
      - which zetcd  # [not win]
      - where zetcd  # [win]
      - zkctl --help
      - zkboom --help

about:
  home: https://github.com/etcd-io/zetcd

  license: Apache-2.0
  license_family: Apache
  license_file: {{ pkg_src }}/LICENSE
  summary: 'A ZooKeeper "personality" for etcd.'

  description: |
    Zetcd allows serving the Apache Zookeeper API backed with an etcd cluster.

extra:
  recipe-maintainers:
    - adbeda

{'fraction_non_alphanumeric': 0.173784355179704, 'fraction_numerical': 0.005919661733615222, 'mean_word_length': 2.3560283687943264, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '626301', 'n_tokens_mistral': 863, 'n_tokens_neox': 825, 'n_words': 201}