From ba65875bb5ac821472c6391835541cbfd4f5b97a Mon Sep 17 00:00:00 2001 From: Joe Robertson Date: Wed, 18 Oct 2023 16:02:05 -0700 Subject: [PATCH] RTD and bsb version fixes. [ci skip] --- .readthedocs.yml | 6 +++++- resources/buildstock.rb | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index fa1a5744b6..cf349ea849 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -3,7 +3,11 @@ version: 2 sphinx: configuration: docs/read_the_docs/source/conf.py +build: + os: "ubuntu-22.04" + tools: + python: "3.11" + python: - version: "3.8" install: - requirements: docs/read_the_docs/requirements.txt diff --git a/resources/buildstock.rb b/resources/buildstock.rb index 8f3dd8d972..e64c128eb3 100644 --- a/resources/buildstock.rb +++ b/resources/buildstock.rb @@ -555,7 +555,7 @@ class Version def self.check_buildstockbatch_version if ENV.keys.include?('BUILDSTOCKBATCH_VERSION') # buildstockbatch is installed bsb_version = ENV['BUILDSTOCKBATCH_VERSION'] - if bsb_version < BuildStockBatch_Version + if Gem::Version.new(bsb_version) < Gem::Version.new(BuildStockBatch_Version) fail "BuildStockBatch version #{BuildStockBatch_Version} or above is required. Found version: #{bsb_version}" end end