From 2c8c6daccaeb2bc6864e3f0802381c7cf5fc38f7 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 26 Dec 2022 11:17:49 +0100 Subject: add deps.sh to install working versions --- .gitattributes | 3 +++ .python-version | 1 + .ruby-version | 1 + Gemfile.lock | 6 ++++-- _config.yml | 5 +++++ deps.sh | 19 +++++++++++++++++++ requirements.txt | 1 + 7 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 .gitattributes create mode 100644 .python-version create mode 100644 .ruby-version create mode 100755 deps.sh create mode 100644 requirements.txt diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..d76765e --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +* text=auto + +*.sh text eol=lf diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..a616492 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +2.7.18 diff --git a/.ruby-version b/.ruby-version new file mode 100644 index 0000000..bc4abe8 --- /dev/null +++ b/.ruby-version @@ -0,0 +1 @@ +2.3.8 diff --git a/Gemfile.lock b/Gemfile.lock index dbbf2a6..cf4ce77 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -24,6 +24,7 @@ GEM faraday (0.9.2) multipart-post (>= 1.2, < 3) fast-stemmer (1.0.2) + ffi (1.9.10) ffi (1.9.10-x64-mingw32) ffi (1.9.10-x86-mingw32) gemoji (2.1.0) @@ -104,6 +105,8 @@ GEM minitest (5.8.3) multipart-post (2.0.0) net-dns (0.8.0) + nokogiri (1.6.7.1) + mini_portile2 (~> 2.0.0.rc2) nokogiri (1.6.7.1-x64-mingw32) mini_portile2 (~> 2.0.0.rc2) nokogiri (1.6.7.1-x86-mingw32) @@ -136,17 +139,16 @@ GEM ethon (>= 0.8.0) tzinfo (1.2.2) thread_safe (~> 0.1) - wdm (0.1.1) yajl-ruby (1.2.1) PLATFORMS + ruby x64-mingw32 x86-mingw32 DEPENDENCIES github-pages rouge - wdm (~> 0.1.0) BUNDLED WITH 1.10.6 diff --git a/_config.yml b/_config.yml index e875a3e..656bd3b 100644 --- a/_config.yml +++ b/_config.yml @@ -7,3 +7,8 @@ jquery_version: 1.11.3 html5shiv_version: 3.7.2 respond_version: 1.4.2 minified_externals: true + +exclude: + - Gemfile + - Gemfile.lock + - deps.sh diff --git a/deps.sh b/deps.sh new file mode 100755 index 0000000..05232bf --- /dev/null +++ b/deps.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +set -o errexit -o nounset -o pipefail +shopt -s inherit_errexit lastpipe + +rbenv install --skip-existing "$( cat .ruby-version )" +rbenv rehash + +gem install bundler -v "$( tail -n 1 Gemfile.lock )" +rbenv rehash + +bundle install +rbenv rehash + +pyenv install --skip-existing "$( cat .python-version )" +pyenv rehash + +pip install -r requirements.txt +pyenv rehash diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..ecb2bef --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +Pygments==2.5.2 -- cgit v1.2.3