-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the build process to use toltecmk (#789)
* Hack together using toltecmk for the build process * Use makefile for dependencies * Update to python 3.12 * Fix format * Add missing packages and ignore lint issues * Fix lint and format * Add missing format fix * Update to toltecmk 0.3.0 * Fix lint * builder.make(..., False) * Remove more unused code * Rename toltec_old to build and minor cleanup * Format fix * Add back missing method * Whoops, forgot to stage this * Only parse package/*/package files * Update requirements.txt * Update requirements.txt
- Loading branch information
Showing
20 changed files
with
210 additions
and
2,737 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
private | ||
build | ||
build/ | ||
!scripts/build/ | ||
__pycache__ | ||
.venv | ||
.venv/ | ||
repo/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,19 @@ | ||
docker==6.1.3 | ||
python-dateutil==2.8.2 | ||
pyelftools==0.29 | ||
black==23.7.0 | ||
pylint==2.17.5 | ||
mypy==1.5.1 | ||
mypy-extensions==1.0.0 | ||
certifi==2023.7.22 | ||
idna==3.4 | ||
isort==5.12.0 | ||
Jinja2==3.1.2 | ||
lazy-object-proxy==1.9.0 | ||
mypy-extensions==1.0.0 | ||
mypy==1.7.1 | ||
pylint==3.0.3 | ||
six==1.16.0 | ||
toltecmk==0.3.2 | ||
toml==0.10.2 | ||
types-python-dateutil==2.8.19.14 | ||
types-requests==2.31.0.2 | ||
typing-extensions==4.7.1 | ||
websocket-client==1.6.1 | ||
|
||
# Pinned due to https://github.com/docker/docker-py/issues/3256 | ||
requests==2.31.0 |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Copyright (c) 2021 The Toltec Contributors | ||
# SPDX-License-Identifier: MIT | ||
"""Collection of useful functions.""" | ||
|
||
import itertools | ||
from typing import ( | ||
Any, | ||
Callable, | ||
Dict, | ||
List, | ||
Protocol, | ||
Sequence, | ||
TypeVar, | ||
) | ||
|
||
|
||
# See <https://github.com/python/typing/issues/760> | ||
class SupportsLessThan(Protocol): # pylint:disable=too-few-public-methods | ||
"""Types that support the less-than operator.""" | ||
|
||
def __lt__(self, other: Any) -> bool: | ||
... | ||
|
||
|
||
Key = TypeVar("Key", bound=SupportsLessThan) | ||
Value = TypeVar("Value") | ||
|
||
|
||
def group_by( | ||
in_seq: Sequence[Value], key_fn: Callable[[Value], Key] | ||
) -> Dict[Key, List[Value]]: | ||
""" | ||
Group elements of a list. | ||
:param in_seq: list of elements to group | ||
:param key_fn: mapping of each element onto a group | ||
:returns: dictionary of groups | ||
""" | ||
return dict( | ||
(key, list(group)) | ||
for key, group in itertools.groupby( | ||
sorted(in_seq, key=key_fn), key=key_fn | ||
) | ||
) |
Oops, something went wrong.