Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ jobs:
push: true
context: .
tags: faasm/cpython:${{ env.TAG_VERSION }}
build-args: FAASM_CPYTHON_VERSION=${{ env.TAG_VERSION }}
build-args: FAASM_PYTHON_VERSION=${{ env.TAG_VERSION }}
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
if: github.event.pull_request.draft == false
runs-on: ubuntu-20.04
container:
image: faasm/cpython:0.0.9
image: faasm/cpython:0.0.10
defaults:
run:
working-directory: /code/faasm-cpython
working-directory: /code/python
steps:
- name: "Fetch ref"
run: git fetch origin ${GITHUB_REF}:ci-branch
Expand All @@ -36,10 +36,10 @@ jobs:
REDIS_QUEUE_HOST: redis
REDIS_STATE_HOST: redis
container:
image: faasm/cpython:0.0.9
image: faasm/cpython:0.0.10
defaults:
run:
working-directory: /code/faasm-cpython
working-directory: /code/python
services:
redis:
image: redis
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM faasm/cpp-sysroot:0.0.18
ARG FAASM_CPYTHON_VERSION
ARG FAASM_PYTHON_VERSION

RUN apt install -y \
libssl-dev \
Expand All @@ -19,11 +19,11 @@ RUN pip3 install -r test_requirements.txt
# Clone current tag
WORKDIR /code
RUN git clone \
-b v${FAASM_CPYTHON_VERSION} \
https://github.com/faasm/faasm-cpython
-b v${FAASM_PYTHON_VERSION} \
https://github.com/faasm/python

# Submodules
WORKDIR /code/faasm-cpython
WORKDIR /code/python
RUN git submodule update --init

# Install pyfaasm natively
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Faasm Python Environment [![Tests](https://github.com/faasm/faasm-cpython/workflows/Tests/badge.svg?branch=master)](https://github.com/faasm/faasm-cpython/actions) [![License](https://img.shields.io/github/license/faasm/faasm-cpython.svg)](https://github.com/faasm/faasm-cpython/blob/master/LICENSE.md)
# Faasm Python Environment [![Tests](https://github.com/faasm/python/workflows/Tests/badge.svg?branch=master)](https://github.com/faasm/python/actions) [![License](https://img.shields.io/github/license/faasm/python.svg)](https://github.com/faasm/python/blob/master/LICENSE.md)

This build cross-compiles CPython and a number of Python modules to WebAssembly
for use in [Faasm](https://github.com/faasm/faasm).
Expand Down Expand Up @@ -47,7 +47,7 @@ Several of the code changes to CPython and numpy were borrowed from
This repo gets built as a container, `faasm/cpython`. If you want to release a
new version, you can:

- Update the version in `VERSION`, `.github` and `.env`
- Update the version in `VERSION` and `.github`
- Commit to your branch
- Check that the normal build works in CI
- Run `inv git.tag`
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.9
0.0.10
6 changes: 3 additions & 3 deletions bin/cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ PROJ_ROOT=${THIS_DIR}/..

pushd ${PROJ_ROOT} > /dev/null

if [[ -z "${CPYTHON_CLI_IMAGE}" ]]; then
if [[ -z "${PYTHON_CLI_IMAGE}" ]]; then
VERSION=$(cat VERSION)
CPYTHON_CLI_IMAGE=faasm/cpython:${VERSION}
PYTHON_CLI_IMAGE=faasm/cpython:${VERSION}
fi

echo "Running ${CPYTHON_CLI_IMAGE}"
echo "Running ${PYTHON_CLI_IMAGE}"
INNER_SHELL=${SHELL:-"/bin/bash"}

docker-compose \
Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ services:
image: redis

cli:
image: ${CPYTHON_CLI_IMAGE}
image: ${PYTHON_CLI_IMAGE}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /usr/bin/docker:/usr/bin/docker
- .:/code/faasm-cpython
working_dir: /code/faasm-cpython
- .:/code/python
working_dir: /code/python
stdin_open: true
tty: true
privileged: true
Expand Down
2 changes: 1 addition & 1 deletion pyfaasm/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def main():
long_description_content_type="text/markdown",
author="Simon S",
author_email="foo@bar.com",
url="https://github.com/faasm/faasm-cpython",
url="https://github.com/faasm/python",
)


Expand Down
2 changes: 1 addition & 1 deletion tasks/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def build(ctx, nocache=False, push=False):
PROJ_ROOT,
nocache=nocache,
push=push,
build_args={"FAASM_CPYTHON_VERSION": get_version()},
build_args={"FAASM_PYTHON_VERSION": get_version()},
)


Expand Down