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
* set up package for dev with uv
* update CI to use uv
* use uv to download python in CI
* cache python
* do not cache python
* update earthfile
* update some other stuff
* update poetry run to uv run
* Apply suggestions from code review
Co-authored-by: Copilot <[email protected]>
* update dev container
* update dev container
---------
Co-authored-by: Copilot <[email protected]>
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,13 +46,13 @@ The zone configurations hold information such as the installed capacity, which p
46
46
47
47
To get started with editing the parsers use the following steps:
48
48
49
-
1. Run `poetry install -E parsers` to install all needed dependencies.
50
-
2. Use `poetry run test_parser ZONE_KEY` to test any parser changes.
49
+
1. Run `uv sync --group parsers` to install all needed dependencies.
50
+
2. Use `uv run test_parser ZONE_KEY` to test any parser changes.
51
51
52
-
Note: This requires you to have [Python 3.10][python homepage] and [Poetry][poetry homepage] installed, you can see their respective installation guides here:
52
+
Note: This requires you to have [Python 3.10][python homepage] and [uv][uv homepage] installed, you can see their respective installation guides here:
53
53
54
54
-[Downloading Python][python install guide]
55
-
-[poetry installation][poetry install guide]
55
+
-[uv installation][uv install guide]
56
56
57
57
### Parser information
58
58
@@ -66,7 +66,7 @@ For an example of how a parser can look we have an example here: </br> [electric
66
66
67
67
We use [black][black homepage] and [isort][isort homepage] as code formatters for python which is automatically checked in the CI job `Python / Formatting`.
68
68
69
-
If this jobs fails and you need to manually format the code you can run `poetry run format` in the top level of the repository.
69
+
If this jobs fails and you need to manually format the code you can run `uv run format` in the top level of the repository.
70
70
71
71
Check the [wiki page][wiki python code formatting] for more details and tips.
72
72
@@ -181,10 +181,10 @@ If it is frontend changes it will be deployed to our staging environment at http
Copy file name to clipboardExpand all lines: electricitymap/contrib/capacity_parsers/README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -84,7 +84,7 @@ Before opening a PR to update capacity data, you should check the following:
84
84
85
85
For some zones, we have developed capacity parsers which collect the data automatically.
86
86
87
-
The update of capacity configurations can be done in the `contrib` repo using `poetry run capacity_update`.
87
+
The update of capacity configurations can be done in the `contrib` repo using `uv run capacity_update`.
88
88
89
89
The `capacity_update` function has the following arguments:
90
90
| Argument | Description |
@@ -97,11 +97,11 @@ The `capacity_update` function has the following arguments:
97
97
Here is a list of examples:
98
98
99
99
```{python}
100
-
poetry run capacity_update --zone DK-DK1 --target_datetime "2023-01-01 --update_aggregate True"
100
+
uv run capacity_update --zone DK-DK1 --target_datetime "2023-01-01 --update_aggregate True"
101
101
```
102
102
103
103
```{python}
104
-
poetry run capacity_update --source EIA --target_datetime "2023-06-01"
104
+
uv run capacity_update --source EIA --target_datetime "2023-06-01"
105
105
```
106
106
107
107
The following zones can be updated with a parser are listed on our wiki page [Capacity update process](https://github.com/electricitymaps/electricitymaps-contrib/wiki/Capacity-update-process)
0 commit comments