Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[soil] Run test/py3_parse in a new Soil task 'pea'
With Dockerfile.pea. We need Python 3.10 for the 'match' statement and type checking of it. Our 'soil' pattern is holding up! That wasn't too hard.
- Loading branch information
Andy C
committed
May 12, 2022
1 parent
b06d7fd
commit 79d0e04
Showing
8 changed files
with
126 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM debian:buster-slim | ||
|
||
RUN apt-get update | ||
|
||
WORKDIR /home/uke/tmp | ||
|
||
# Copy build scripts into the container and run them | ||
|
||
COPY soil/deps-apt.sh /home/uke/tmp/soil/deps-apt.sh | ||
RUN soil/deps-apt.sh layer-for-soil | ||
RUN soil/deps-apt.sh pea | ||
|
||
# deps-tar.sh has a 'wget' step which we're skipping | ||
COPY _cache/Python-3.10.4.tar.xz /home/uke/tmp/_cache/Python-3.10.4.tar.xz | ||
|
||
COPY build/common.sh /home/uke/tmp/build/common.sh | ||
COPY soil/deps-tar.sh /home/uke/tmp/soil/deps-tar.sh | ||
RUN soil/deps-tar.sh layer-py3 | ||
|
||
RUN useradd --create-home uke && chown -R uke /home/uke | ||
USER uke | ||
|
||
COPY soil/deps-py.sh /home/uke/tmp/soil/deps-py.sh | ||
RUN soil/deps-py.sh pea | ||
|
||
CMD ["sh", "-c", "echo 'hello from oilshell/soil-pea'"] |
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 |
---|---|---|
|
@@ -17,4 +17,8 @@ dev-minimal() { | |
pip3 install --user mypy pexpect | ||
} | ||
|
||
pea() { | ||
pip3 install --user mypy | ||
} | ||
|
||
"$@" |
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,6 +9,7 @@ | |
import sys | ||
|
||
|
||
#def main(argv) -> None: | ||
def main(argv): | ||
ast_dump = os.getenv('AST_DUMP') | ||
|
||
|
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