<commit_before>
include:
  - nginx


bootrap-deps:
  pkg.installed:
    - pkgs:
      - git
      - curl


/srv/bootstrap/www:
  file.directory:
    - user: nginx
    - group: nginx
    - mode: 755
    - makedirs: True


/etc/nginx/sites.d/bootstrap.pypa.io.conf:
  file.managed:
    - source: salt://pypa/bootstrap/config/nginx.conf.jinja
    - template: jinja
    - require:
      - file: /etc/nginx/sites.d/
      - file: /srv/bootstrap/www


pip-clone:
  git.latest:
    - name: https://github.com/pypa/get-pip.git
    - rev: master
    - target: /srv/bootstrap/pip
    - user: nginx
    - force: True
    - force_checkout: True
    - require:
      - pkg: bootrap-deps


setuptools-clone:
  git.latest:
    - name: https://github.com/pypa/setuptools
    - rev: bootstrap
    - target: /srv/bootstrap/setuptools
    - user: nginx
    - force: True
    - force_checkout: True
    - require:
      - pkg: bootrap-deps


buildout-clone:
  git.latest:
    - name: https://github.com/buildout/buildout.git
    - rev: bootstrap-release
    - target: /srv/bootstrap/buildout
    - user: nginx
    - force: True
    - force_checkout: True
    - require:
      - pkg: bootrap-deps


/srv/bootstrap/www/get-pip.py:
  file.symlink:
    - target: /srv/bootstrap/pip/get-pip.py
    - require:
      - git: pip-clone


/srv/bootstrap/www/3.2/:
  file.directory:
    - user: nginx
    - group: nginx
    - mode: 755
    - makedirs: True


/srv/bootstrap/www/3.2/get-pip.py:
  file.symlink:
    - target: /srv/bootstrap/pip/3.2/get-pip.py
    - require:
      - git: pip-clone


/srv/bootstrap/www/2.6/:
  file.directory:
    - user: nginx
    - group: nginx
    - mode: 755
    - makedirs: True


/srv/bootstrap/www/2.6/get-pip.py:
  file.symlink:
    - target: /srv/bootstrap/pip/2.6/get-pip.py
    - require:
      - git: pip-clone


/srv/bootstrap/www/ez_setup.py:
  file.symlink:
    - target: /srv/bootstrap/setuptools/ez_setup.py
    - require:
      - git: setuptools-clone


/srv/bootstrap/www/bootstrap-buildout.py:
  file.symlink:
    - target: /srv/bootstrap/buildout/bootstrap/bootstrap.py
    - require:
      - git: buildout-clone


refresh-pip:
  cmd.run:
    - name: 'curl -X PURGE https://bootstrap.pypa.io/get-pip.py'
    - require:
      - file: /srv/bootstrap/www/get-pip.py
    - onchanges:
      - git: pip-clone

refresh-pip-32:
  cmd.run:
    - name: 'curl -X PURGE https://bootstrap.pypa.io/3.2/get-pip.py'
    - require:
      - file: /srv/bootstrap/www/3.2/get-pip.py
    - onchanges:
      - git: pip-clone

<commit_msg>add python 3.3 to bootstrap<commit_after>
include:
  - nginx


bootrap-deps:
  pkg.installed:
    - pkgs:
      - git
      - curl


/srv/bootstrap/www:
  file.directory:
    - user: nginx
    - group: nginx
    - mode: 755
    - makedirs: True


/etc/nginx/sites.d/bootstrap.pypa.io.conf:
  file.managed:
    - source: salt://pypa/bootstrap/config/nginx.conf.jinja
    - template: jinja
    - require:
      - file: /etc/nginx/sites.d/
      - file: /srv/bootstrap/www


pip-clone:
  git.latest:
    - name: https://github.com/pypa/get-pip.git
    - rev: master
    - target: /srv/bootstrap/pip
    - user: nginx
    - force: True
    - force_checkout: True
    - require:
      - pkg: bootrap-deps


setuptools-clone:
  git.latest:
    - name: https://github.com/pypa/setuptools
    - rev: bootstrap
    - target: /srv/bootstrap/setuptools
    - user: nginx
    - force: True
    - force_checkout: True
    - require:
      - pkg: bootrap-deps


buildout-clone:
  git.latest:
    - name: https://github.com/buildout/buildout.git
    - rev: bootstrap-release
    - target: /srv/bootstrap/buildout
    - user: nginx
    - force: True
    - force_checkout: True
    - require:
      - pkg: bootrap-deps


/srv/bootstrap/www/get-pip.py:
  file.symlink:
    - target: /srv/bootstrap/pip/get-pip.py
    - require:
      - git: pip-clone


/srv/bootstrap/www/3.2/:
  file.directory:
    - user: nginx
    - group: nginx
    - mode: 755
    - makedirs: True


/srv/bootstrap/www/3.2/get-pip.py:
  file.symlink:
    - target: /srv/bootstrap/pip/3.2/get-pip.py
    - require:
      - git: pip-clone


/srv/bootstrap/www/3.3/:
  file.directory:
    - user: nginx
    - group: nginx
    - mode: 755
    - makedirs: True


/srv/bootstrap/www/3.3/get-pip.py:
  file.symlink:
    - target: /srv/bootstrap/pip/3.3/get-pip.py
    - require:
      - git: pip-clone


/srv/bootstrap/www/2.6/:
  file.directory:
    - user: nginx
    - group: nginx
    - mode: 755
    - makedirs: True


/srv/bootstrap/www/2.6/get-pip.py:
  file.symlink:
    - target: /srv/bootstrap/pip/2.6/get-pip.py
    - require:
      - git: pip-clone


/srv/bootstrap/www/ez_setup.py:
  file.symlink:
    - target: /srv/bootstrap/setuptools/ez_setup.py
    - require:
      - git: setuptools-clone


/srv/bootstrap/www/bootstrap-buildout.py:
  file.symlink:
    - target: /srv/bootstrap/buildout/bootstrap/bootstrap.py
    - require:
      - git: buildout-clone


refresh-pip:
  cmd.run:
    - name: 'curl -X PURGE https://bootstrap.pypa.io/get-pip.py'
    - require:
      - file: /srv/bootstrap/www/get-pip.py
    - onchanges:
      - git: pip-clone

refresh-pip-26:
  cmd.run:
    - name: 'curl -X PURGE https://bootstrap.pypa.io/3.2/get-pip.py'
    - require:
      - file: /srv/bootstrap/www/2.6/get-pip.py
    - onchanges:
      - git: pip-clone

refresh-pip-32:
  cmd.run:
    - name: 'curl -X PURGE https://bootstrap.pypa.io/3.2/get-pip.py'
    - require:
      - file: /srv/bootstrap/www/3.2/get-pip.py
    - onchanges:
      - git: pip-clone

refresh-pip-33:
  cmd.run:
    - name: 'curl -X PURGE https://bootstrap.pypa.io/3.2/get-pip.py'
    - require:
      - file: /srv/bootstrap/www/3.3/get-pip.py
    - onchanges:
      - git: pip-clone

{'fraction_non_alphanumeric': 0.15178416013925153, 'fraction_numerical': 0.013402959094865101, 'mean_word_length': 1.9064238745574102, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 12, 'lorem ipsum': 0, 'www.': 24, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3489352', 'n_tokens_mistral': 2432, 'n_tokens_neox': 2289, 'n_words': 369}