Skip to content

Commit

Permalink
Merge pull request #221 from daltonmaag/fonttools-interpolatable
Browse files Browse the repository at this point in the history
Install with `fonttools[interpolatable]`
  • Loading branch information
chrissimpkins authored Jan 3, 2024
2 parents 0061e5e + aa46eb2 commit 337aa3e
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,34 +8,28 @@ async function run() {
const fbArgs = core.getInput("args");
const fbVersion = core.getInput("version");

// const options = {};
// options.listeners = {
// stdout: (data) => {
// myOutput += data.toString();
// },
// stderr: (data) => {
// myError += data.toString();
// },
// };

// ==================
// Install fontbakery
// ==================
try {
if (fbVersion === "latest") {
// this installs the latest stable release
await exec.exec("python -m pip install --upgrade fontbakery[all]");
await exec.exec(
"python -m pip install --upgrade fontbakery[all] fonttools[interpolatable]"
);
} else if (fbVersion === "pre") {
// pre-releases happen much more often
await exec.exec("python -m pip install --pre --upgrade fontbakery[all]");
await exec.exec(
"python -m pip install --pre --upgrade fontbakery[all] fonttools[interpolatable]"
);
} else if (fbVersion === "main") {
// here one gets the bleeding edge of the git development tree
await exec.exec(
"python -m pip install --upgrade fontbakery[all]@git+https://github.com/googlefonts/fontbakery.git"
"python -m pip install --upgrade fontbakery[all]@git+https://github.com/googlefonts/fontbakery.git fonttools[interpolatable]"
);
} else {
await exec.exec(
`python -m pip install --upgrade fontbakery[all]==${fbVersion}`
`python -m pip install --upgrade fontbakery[all]==${fbVersion} fonttools[interpolatable]`
);
}
// Show the installed version
Expand Down

0 comments on commit 337aa3e

Please sign in to comment.