-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit 51ab9b2
Use pyproject.toml as Python version source
Python and Python-based tools are used in the development and maintenance of the project. A standardized version of
Python is used for these operations.
Poetry is used for Python package dependencies management. Poetry installs dependencies into a virtual environment. For
this reason, the Poetry configuration includes a Python version number, which must match the correct version of Python
for the project. This configuration is stored in the `pyproject.toml` file.
Python is installed in the GitHub Actions runner environments using the "actions/setup-python" action, which also must
be configured to install the correct version of Python. Previously the version number for use by the actions/setup-python
action was defined in each workflow. This meant that we had multiple copies of the Python version information, all of
which had to be kept in sync.
Fortunately, support for using `pyproject.toml` as the source of version information for the "actions/setup-python"
action was recently added. This means it is now possible for all components of the project infrastructure to get the
Python version from a single source.1 parent 07dc9c5 commit 51ab9b2
File tree
5 files changed
+6
-20
lines changed- .github/workflows
5 files changed
+6
-20
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 | - | ||
8 | - | ||
9 | 7 |
| |
10 | 8 |
| |
11 | 9 |
| |
| |||
88 | 86 |
| |
89 | 87 |
| |
90 | 88 |
| |
91 | - | ||
89 | + | ||
92 | 90 |
| |
93 | 91 |
| |
94 | 92 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 | - | ||
5 | - | ||
6 | - | ||
7 | - | ||
8 | 4 |
| |
9 | 5 |
| |
10 | 6 |
| |
| |||
73 | 69 |
| |
74 | 70 |
| |
75 | 71 |
| |
76 | - | ||
72 | + | ||
77 | 73 |
| |
78 | 74 |
| |
79 | 75 |
| |
| |||
104 | 100 |
| |
105 | 101 |
| |
106 | 102 |
| |
107 | - | ||
103 | + | ||
108 | 104 |
| |
109 | 105 |
| |
110 | 106 |
| |
|
Lines changed: 1 addition & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 | - | ||
8 | - | ||
9 | 7 |
| |
10 | 8 |
| |
11 | 9 |
| |
| |||
76 | 74 |
| |
77 | 75 |
| |
78 | 76 |
| |
79 | - | ||
77 | + | ||
80 | 78 |
| |
81 | 79 |
| |
82 | 80 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 | - | ||
5 | - | ||
6 | - | ||
7 | - | ||
8 | 4 |
| |
9 | 5 |
| |
10 | 6 |
| |
| |||
55 | 51 |
| |
56 | 52 |
| |
57 | 53 |
| |
58 | - | ||
54 | + | ||
59 | 55 |
| |
60 | 56 |
| |
61 | 57 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 | - | ||
8 | - | ||
9 | 7 |
| |
10 | 8 |
| |
11 | 9 |
| |
| |||
88 | 86 |
| |
89 | 87 |
| |
90 | 88 |
| |
91 | - | ||
89 | + | ||
92 | 90 |
| |
93 | 91 |
| |
94 | 92 |
| |
|
0 commit comments