generated from IRNAS/irnas-projects-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from IRNAS/release/v0.2.0
Release v0.2.0
- Loading branch information
Showing
21 changed files
with
1,068 additions
and
193 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
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
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 |
---|---|---|
|
@@ -9,31 +9,25 @@ enabled = true | |
name = "east-tool" | ||
description="Tool built on top of West for managing nRF Connect SDK projects." | ||
readme = "README.md" | ||
dynamic = ["version"] | ||
dynamic = ["version", "dependencies", "optional-dependencies"] | ||
authors = [{ name = "Marko Sagadin", email = "[email protected]" }] | ||
license = { file = "LICENSE" } | ||
classifiers = [ | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
] | ||
dependencies = [ | ||
"rich >= 12.5.1", | ||
"click >= 8.1.3", | ||
"rich_click >= 1.5.2", | ||
"requests >= 2.28.1", | ||
] | ||
requires-python = ">=3.8" | ||
|
||
[project.optional-dependencies] | ||
dev = ["black", "flake8", "pytest", "build", "twine", "setuptools_scm"] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/IRNAS/irnas-easttool-software" | ||
Homepage = "https://github.com/IRNAS/irnas-east-software" | ||
|
||
[project.scripts] | ||
east = "east.__main__:main" | ||
|
||
[tool.setuptools.dynamic] | ||
dependencies = {file = ["scripts/requirements.txt"]} | ||
optional-dependencies.dev = {file = ["scripts/requirements-dev.txt"]} | ||
|
||
[tool.setuptools_scm] | ||
version_scheme = "post-release" | ||
# Can be empty, just having section will enable scm | ||
|
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,23 @@ | ||
FROM east-empty | ||
|
||
ARG CONDA_LINK="https://repo.anaconda.com/miniconda/Miniconda3-py38_4.12.0-Linux-x86_64.sh" | ||
ARG WGET_ARGS="-q --show-progress --progress=bar:force:noscroll --no-check-certificate" | ||
ARG CONDA_PATH="/home/$USER/miniconda3/bin/conda" | ||
ARG NRF_TOOLCHAIN_LINK="https://github.com/NordicSemiconductor/pc-nrfconnect-toolchain-manager/blob/2f24ef572b8a7182cb6838fc2f080ad1b4fee448/resources/nrfutil-toolchain-manager/linux/nrfutil-toolchain-manager.exe?raw=true" | ||
ARG EAST_DIR="/home/$USER/.local/share/east" | ||
|
||
RUN mkdir -p $EAST_DIR | ||
|
||
USER root | ||
RUN wget ${WGET_ARGS} ${CONDA_LINK} -O miniconda.sh && \ | ||
wget ${WGET_ARGS} ${NRF_TOOLCHAIN_LINK} && \ | ||
mv -f nrfutil-toolchain-manager.exe?raw=true $EAST_DIR/nrfutil-toolchain-manager.exe && \ | ||
chmod +x $EAST_DIR/nrfutil-toolchain-manager.exe | ||
|
||
USER $USER | ||
RUN bash miniconda.sh -b && \ | ||
${CONDA_PATH} config --set auto_activate_base false && \ | ||
${CONDA_PATH} init | ||
|
||
RUN $EAST_DIR/nrfutil-toolchain-manager.exe config --install-dir $EAST_DIR && \ | ||
$EAST_DIR/nrfutil-toolchain-manager.exe install v2.0.0 |
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,3 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
docker build --tag east-tool . | ||
# docker build --tag east-empty \ | ||
# --build-arg "USER=$(whoami)" \ | ||
# --build-arg "host_uid=$(id -u)" \ | ||
# . | ||
|
||
docker build --tag east-after-sys-setup \ | ||
--build-arg "USER=$(whoami)" \ | ||
--build-arg "host_uid=$(id -u)" \ | ||
-f Dockerfile_after_sys_setup \ | ||
. |
This file was deleted.
Oops, something went wrong.
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,3 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
docker run -it --volume $(pwd)/../:/home/project east-tool | ||
docker run -it --volume $(pwd)/../:/home/$USER/project east-after-sys-setup |
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,6 @@ | ||
black == 22.8.0 | ||
flake8 == 5.0.4 | ||
pytest == 7.1.3 | ||
build == 0.8.0 | ||
twine == 4.0.1 | ||
setuptools_scm == 7.0.5 |
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,5 @@ | ||
rich == 12.5.1 | ||
click == 8.1.3 | ||
rich_click == 1.5.2 | ||
requests == 2.28.1 | ||
PyYAML == 6.0 |
Oops, something went wrong.