Skip to content

Commit

Permalink
Point to python3 executable for rendering RST
Browse files Browse the repository at this point in the history
#919 added support for python3, but
we still explicitly shell out to the `python2` executable.  Let's switch
to python3 now that it's supported.

This bumps the major version because it's a breaking change for anyone
running in an environment with only python2.
  • Loading branch information
Carl Brasic committed Mar 30, 2021
1 parent 194e363 commit b95a306
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/github-markup.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module GitHub
module Markup
VERSION = '3.0.5'
VERSION = '4.0.0'
Version = VERSION
end
end
2 changes: 1 addition & 1 deletion lib/github/markups.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

command(
::GitHub::Markups::MARKUP_RST,
"python2 -S #{Shellwords.escape(File.dirname(__FILE__))}/commands/rest2html",
"python3 -S #{Shellwords.escape(File.dirname(__FILE__))}/commands/rest2html",
/re?st(\.txt)?/,
["reStructuredText"],
"restructuredtext"
Expand Down

0 comments on commit b95a306

Please sign in to comment.