Skip to content

Commit

Permalink
Only build and inspect if Python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
trallard committed Nov 25, 2024
1 parent 75bbbc7 commit 5999b61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,11 @@ jobs:
- name: "Build and inspect package 📦"
uses: hynek/build-and-inspect-python-package@v2
if: matrix.python-version == '3.9'
id: baipp

- run: echo Packages can be found at ${{ steps.baipp.outputs.dist }}
if: matrix.python-version == '3.9'

# If either the docs build or the tests resulted in an error, create an issue to note it
- name: "Create an issue if failure"
Expand Down
5 changes: 2 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,8 @@ module.exports = (env, argv) => {
// that builds the theme:
// 1. command to package theme
// a. compile translations
// The theme builder calls `npm run-script build`, which we have configured
// to call `webpack --mode=production` (which calls this file), which is why
// we compile the translations here.
// The theme builder calls `npm run-script build` (`webpack --mode=production` per our
// package.json) so we compile the translations here.
if (argv.mode === 'production') {
exec(`pybabel compile -d ${localePath} -D sphinx`, (error, stdout, stderr) => {
if (error) {
Expand Down

0 comments on commit 5999b61

Please sign in to comment.