@anthusai/papyrus 5.122.0-next.2 → 5.122.0-next.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,5 +4,5 @@ anthus-markus==0.7.0
4
4
  latex2mathml>=3.78,<4
5
5
  Pillow>=11.3,<12
6
6
  awscrt>=0.23,<1
7
- humanus>=0.40.1,<0.41
7
+ humanus>=0.41.1,<0.42
8
8
  pypdf>=6.12.1,<7
@@ -7,7 +7,7 @@ import { fileURLToPath } from "node:url";
7
7
  import { pythonLambdaCode } from "../shared/python-bundle.js";
8
8
  const dirname = path.dirname(fileURLToPath(import.meta.url));
9
9
  const projectRoot = path.resolve(dirname, "../../..");
10
- export const contentActionsRequirements = ["PyYAML>=6.0.2,<7", "citeproc-py>=0.8.2,<1", "anthus-markus==0.7.0", "latex2mathml>=3.78,<4", "Pillow>=11.3,<12", "awscrt>=0.23,<1", "humanus>=0.40.1,<0.41", "pypdf>=6.12.1,<7"];
10
+ export const contentActionsRequirements = ["PyYAML>=6.0.2,<7", "citeproc-py>=0.8.2,<1", "anthus-markus==0.7.0", "latex2mathml>=3.78,<4", "Pillow>=11.3,<12", "awscrt>=0.23,<1", "humanus>=0.41.1,<0.42", "pypdf>=6.12.1,<7"];
11
11
  function installCheckoutRequirements(outputDir) {
12
12
  const requirementsPath = path.join(projectRoot, "amplify/functions/content-actions/requirements.txt");
13
13
  execSync(`python3 -m pip install -r "${requirementsPath}" -t "${outputDir}" --no-cache-dir --platform manylinux2014_aarch64 --implementation cp --python-version 3.12 --only-binary=:all: --ignore-requires-python`, { cwd: projectRoot, stdio: "inherit" });
@@ -10,7 +10,7 @@ import { pythonLambdaCode, type SiteBundleFile } from "../shared/python-bundle";
10
10
  const dirname = path.dirname(fileURLToPath(import.meta.url));
11
11
  const projectRoot = path.resolve(dirname, "../../..");
12
12
 
13
- export const contentActionsRequirements = ["PyYAML>=6.0.2,<7", "citeproc-py>=0.8.2,<1", "anthus-markus==0.7.0", "latex2mathml>=3.78,<4", "Pillow>=11.3,<12", "awscrt>=0.23,<1", "humanus>=0.40.1,<0.41", "pypdf>=6.12.1,<7"];
13
+ export const contentActionsRequirements = ["PyYAML>=6.0.2,<7", "citeproc-py>=0.8.2,<1", "anthus-markus==0.7.0", "latex2mathml>=3.78,<4", "Pillow>=11.3,<12", "awscrt>=0.23,<1", "humanus>=0.41.1,<0.42", "pypdf>=6.12.1,<7"];
14
14
 
15
15
  function installCheckoutRequirements(outputDir: string): void {
16
16
  const requirementsPath = path.join(projectRoot, "amplify/functions/content-actions/requirements.txt");
@@ -1 +1 @@
1
- humanus[jev]>=0.40.1,<0.41
1
+ humanus[jev]>=0.41.1,<0.42
@@ -1,7 +1,4 @@
1
1
  import { Duration } from "aws-cdk-lib";
2
- import { execSync } from "node:child_process";
3
- import path from "node:path";
4
- import { fileURLToPath } from "node:url";
5
2
  import * as dynamodb from "aws-cdk-lib/aws-dynamodb";
6
3
  import { Effect, PolicyStatement } from "aws-cdk-lib/aws-iam";
7
4
  import { Architecture, CfnEventSourceMapping, Function as LambdaFunction, Runtime } from "aws-cdk-lib/aws-lambda";
@@ -15,13 +12,6 @@ import { connectToSiteApi } from "../../site-api-access.js";
15
12
  * What it may do, and nothing else: read and write EntityLabel rows, read the label's concept and set its `language`, and read the editorial settings (the
16
13
  * primary language) through its own site's API. A shared stack is not wired: its rows carry a tenant this function does not act for.
17
14
  */
18
- const functionDirectory = path.dirname(fileURLToPath(import.meta.url));
19
- const projectRoot = path.resolve(functionDirectory, "../../..");
20
- /** The consumer reads the site's primary language, which checks the tag against Humanus's language packs, so it bundles Humanus (the same pin as the content-actions function). */
21
- export const ENTITY_LABEL_SYNC_REQUIREMENTS = ["humanus>=0.39.0,<0.40"];
22
- function installCheckoutRequirements(outputDir) {
23
- execSync(`python3 -m pip install -r "${path.join(functionDirectory, "requirements.txt")}" -t "${outputDir}" --no-cache-dir --platform manylinux2014_aarch64 --implementation cp --python-version 3.12 --only-binary=:all: --ignore-requires-python`, { cwd: projectRoot, stdio: "inherit" });
24
- }
25
15
  export const ENTITY_LABEL_SYNC_API_FIELDS = [
26
16
  "Query/fields/listEntityLabelsByConceptAndSortKey",
27
17
  "Query/fields/getEditorialCheckSettings",
@@ -60,7 +50,7 @@ export function wireEntityLabelSync(backend) {
60
50
  handler: "handler.handler",
61
51
  timeout: Duration.seconds(60),
62
52
  memorySize: 256,
63
- code: pythonLambdaCode({ functionDir: "entity-label-sync", modules: ["papyrus_content"], requirements: ENTITY_LABEL_SYNC_REQUIREMENTS, noDeps: true, checkoutExtras: installCheckoutRequirements }, [
53
+ code: pythonLambdaCode({ functionDir: "entity-label-sync", modules: ["papyrus_content"], noDeps: true }, [
64
54
  "bash",
65
55
  "-c",
66
56
  [
@@ -68,7 +58,6 @@ export function wireEntityLabelSync(backend) {
68
58
  "mkdir -p /asset-output/papyrus_content",
69
59
  "cp amplify/functions/entity-label-sync/handler.py /asset-output/handler.py",
70
60
  "cp -R src/papyrus_content/. /asset-output/papyrus_content/",
71
- "python3 -m pip install -r amplify/functions/entity-label-sync/requirements.txt -t /asset-output --no-cache-dir",
72
61
  ].join(" && "),
73
62
  ]),
74
63
  });
@@ -1,7 +1,4 @@
1
1
  import { Duration } from "aws-cdk-lib";
2
- import { execSync } from "node:child_process";
3
- import path from "node:path";
4
- import { fileURLToPath } from "node:url";
5
2
  import * as dynamodb from "aws-cdk-lib/aws-dynamodb";
6
3
  import { Effect, PolicyStatement } from "aws-cdk-lib/aws-iam";
7
4
  import { Architecture, CfnEventSourceMapping, Function as LambdaFunction, Runtime } from "aws-cdk-lib/aws-lambda";
@@ -16,18 +13,6 @@ import { connectToSiteApi } from "../../site-api-access";
16
13
  * What it may do, and nothing else: read and write EntityLabel rows, read the label's concept and set its `language`, and read the editorial settings (the
17
14
  * primary language) through its own site's API. A shared stack is not wired: its rows carry a tenant this function does not act for.
18
15
  */
19
- const functionDirectory = path.dirname(fileURLToPath(import.meta.url));
20
- const projectRoot = path.resolve(functionDirectory, "../../..");
21
- /** The consumer reads the site's primary language, which checks the tag against Humanus's language packs, so it bundles Humanus (the same pin as the content-actions function). */
22
- export const ENTITY_LABEL_SYNC_REQUIREMENTS = ["humanus>=0.39.0,<0.40"];
23
-
24
- function installCheckoutRequirements(outputDir: string): void {
25
- execSync(
26
- `python3 -m pip install -r "${path.join(functionDirectory, "requirements.txt")}" -t "${outputDir}" --no-cache-dir --platform manylinux2014_aarch64 --implementation cp --python-version 3.12 --only-binary=:all: --ignore-requires-python`,
27
- { cwd: projectRoot, stdio: "inherit" },
28
- );
29
- }
30
-
31
16
  export const ENTITY_LABEL_SYNC_API_FIELDS = [
32
17
  "Query/fields/listEntityLabelsByConceptAndSortKey",
33
18
  "Query/fields/getEditorialCheckSettings",
@@ -68,7 +53,7 @@ export function wireEntityLabelSync(backend: any): LambdaFunction | undefined {
68
53
  timeout: Duration.seconds(60),
69
54
  memorySize: 256,
70
55
  code: pythonLambdaCode(
71
- { functionDir: "entity-label-sync", modules: ["papyrus_content"], requirements: ENTITY_LABEL_SYNC_REQUIREMENTS, noDeps: true, checkoutExtras: installCheckoutRequirements },
56
+ { functionDir: "entity-label-sync", modules: ["papyrus_content"], noDeps: true },
72
57
  [
73
58
  "bash",
74
59
  "-c",
@@ -77,7 +62,6 @@ export function wireEntityLabelSync(backend: any): LambdaFunction | undefined {
77
62
  "mkdir -p /asset-output/papyrus_content",
78
63
  "cp amplify/functions/entity-label-sync/handler.py /asset-output/handler.py",
79
64
  "cp -R src/papyrus_content/. /asset-output/papyrus_content/",
80
- "python3 -m pip install -r amplify/functions/entity-label-sync/requirements.txt -t /asset-output --no-cache-dir",
81
65
  ].join(" && "),
82
66
  ],
83
67
  ),
package/package.json CHANGED
@@ -640,7 +640,7 @@
640
640
  "optional": true
641
641
  }
642
642
  },
643
- "version": "5.122.0-next.2",
643
+ "version": "5.122.0-next.4",
644
644
  "dependencies": {
645
645
  "@aws-amplify/adapter-nextjs": "^1.7.3",
646
646
  "@aws-crypto/sha256-js": "5.2.0",
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.122.0-next.2",
2
+ "version": "5.122.0-next.4",
3
3
  "routes": [
4
4
  {
5
5
  "file": "app/%5F_preview/[[...path]]/route.ts",
@@ -1 +0,0 @@
1
- humanus>=0.39.0,<0.40