You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
:alt: Screenshot showing .celbridge configuration file in the file explorer panel
9
9
:width: 50%
10
10
```
@@ -14,14 +14,19 @@ For example, this screenshot shows the project settings file for a project named
14
14
The `project` section of the project settings file uses key `requires-python` to declare the Python version for the project. For example, this declares Python version **3.12** for a project:
15
15
16
16
```
17
+
[celbridge]
18
+
celbridge-version = "0.2.0"
19
+
17
20
[project]
18
21
requires-python = "3.12"
19
22
```
20
23
21
24
If your project requires a specific version of Python, then it's this project setting you need to ensure specifies that version.
22
25
23
26
:::{note}
24
-
Every project **must** have a `[project]` section, with a `requires-python` key that declares the required Python language version.
27
+
Every project **must** have a `[project]` section, with a `requires-python` key that declares the required Python language version.
28
+
29
+
It must also have a `[celbridge]` section, with a `celbridge-version` key that declares the version of Celbridge the project was created with.
25
30
26
31
When you create a new Celbridge project an up-to-date version of Python will automatically be declared in the project settings file created with the project.
27
32
:::
@@ -39,6 +44,9 @@ For example, let's add the data analysis library [Pandas] to our Celbridge proje
39
44
- ensure you wrap double-quotes around the package name.
40
45
41
46
```
47
+
[celbridge]
48
+
celbridge-version = "0.2.0"
49
+
42
50
[project]
43
51
requires-python = "3.12"
44
52
dependencies = ["pandas"]
@@ -60,6 +68,9 @@ dependencies = ["pandas"]
60
68
You can specify multiple packages by declaring a comma-separate list of them in the `dependencies` key. For example, here we specify both the `"pandas"` and `"numpy"` packages:
0 commit comments