-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject.toml
More file actions
87 lines (75 loc) · 1.67 KB
/
project.toml
File metadata and controls
87 lines (75 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# Cloud Native Buildpack configuration for knowledgebase-processor
# Addresses srsly compilation requirements
# Specify the builder - use full builder for C compilation support
# The 'full' builder includes build-essential and other compilation tools
[_]
schema-version = "0.2"
# Build configuration
[[build.env]]
name = "BP_CPYTHON_VERSION"
value = "3.12.*"
[[build.env]]
name = "BP_POETRY_VERSION"
value = "1.8.*"
# Enable pip install for better C extension handling
[[build.env]]
name = "BP_PIP_INSTALL_FLAGS"
value = "--no-binary :all:"
# Ensure we have compilation tools available
[[build.env]]
name = "BP_INCLUDE_FILES"
value = "pyproject.toml poetry.lock src/ README.md"
# Buildpacks to use
[[build.buildpacks]]
uri = "gcr.io/paketo-buildpacks/python"
# Or use specific buildpack versions
# [[build.buildpacks]]
# uri = "gcr.io/paketo-buildpacks/cpython"
# version = "latest"
#
# [[build.buildpacks]]
# uri = "gcr.io/paketo-buildpacks/poetry"
# version = "latest"
#
# [[build.buildpacks]]
# uri = "gcr.io/paketo-buildpacks/poetry-install"
# version = "latest"
#
# [[build.buildpacks]]
# uri = "gcr.io/paketo-buildpacks/python-start"
# version = "latest"
# Process type
[[processes]]
type = "cli"
command = "kb"
default = true
[[processes]]
type = "worker"
command = "kb publish --watch /workspace"
# Slices for layer reuse
[slices]
paths = ["src/knowledgebase_processor"]
# Metadata
[metadata]
include_files = ["README.md", "LICENSE"]
# Build exclusions
[build]
exclude = [
".git",
".github",
"tests",
"docs",
"examples",
"scripts",
"*.pyc",
"__pycache__",
".pytest_cache",
"coordination",
"memory",
"output",
"sample_data",
"tmp*",
"*.log",
"*.db",
"*.ttl"
]