Skip to content

Commit 86e829f

Browse files
authored
Renaming (#8)
* Renaming * Version * Correct uses of CPYTHON to PYTHON
1 parent ac1cf7b commit 86e829f

File tree

9 files changed

+20
-20
lines changed

9 files changed

+20
-20
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ jobs:
3333
push: true
3434
context: .
3535
tags: faasm/cpython:${{ env.TAG_VERSION }}
36-
build-args: FAASM_CPYTHON_VERSION=${{ env.TAG_VERSION }}
36+
build-args: FAASM_PYTHON_VERSION=${{ env.TAG_VERSION }}

.github/workflows/tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
if: github.event.pull_request.draft == false
1313
runs-on: ubuntu-20.04
1414
container:
15-
image: faasm/cpython:0.0.9
15+
image: faasm/cpython:0.0.10
1616
defaults:
1717
run:
18-
working-directory: /code/faasm-cpython
18+
working-directory: /code/python
1919
steps:
2020
- name: "Fetch ref"
2121
run: git fetch origin ${GITHUB_REF}:ci-branch
@@ -36,10 +36,10 @@ jobs:
3636
REDIS_QUEUE_HOST: redis
3737
REDIS_STATE_HOST: redis
3838
container:
39-
image: faasm/cpython:0.0.9
39+
image: faasm/cpython:0.0.10
4040
defaults:
4141
run:
42-
working-directory: /code/faasm-cpython
42+
working-directory: /code/python
4343
services:
4444
redis:
4545
image: redis

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM faasm/cpp-sysroot:0.0.18
2-
ARG FAASM_CPYTHON_VERSION
2+
ARG FAASM_PYTHON_VERSION
33

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

2525
# Submodules
26-
WORKDIR /code/faasm-cpython
26+
WORKDIR /code/python
2727
RUN git submodule update --init
2828

2929
# Install pyfaasm natively

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 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)
1+
# 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)
22

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

50-
- Update the version in `VERSION`, `.github` and `.env`
50+
- Update the version in `VERSION` and `.github`
5151
- Commit to your branch
5252
- Check that the normal build works in CI
5353
- Run `inv git.tag`

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.9
1+
0.0.10

bin/cli.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ PROJ_ROOT=${THIS_DIR}/..
77

88
pushd ${PROJ_ROOT} > /dev/null
99

10-
if [[ -z "${CPYTHON_CLI_IMAGE}" ]]; then
10+
if [[ -z "${PYTHON_CLI_IMAGE}" ]]; then
1111
VERSION=$(cat VERSION)
12-
CPYTHON_CLI_IMAGE=faasm/cpython:${VERSION}
12+
PYTHON_CLI_IMAGE=faasm/cpython:${VERSION}
1313
fi
1414

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

1818
docker-compose \

docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ services:
55
image: redis
66

77
cli:
8-
image: ${CPYTHON_CLI_IMAGE}
8+
image: ${PYTHON_CLI_IMAGE}
99
volumes:
1010
- /var/run/docker.sock:/var/run/docker.sock
1111
- /usr/bin/docker:/usr/bin/docker
12-
- .:/code/faasm-cpython
13-
working_dir: /code/faasm-cpython
12+
- .:/code/python
13+
working_dir: /code/python
1414
stdin_open: true
1515
tty: true
1616
privileged: true

pyfaasm/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def main():
2121
long_description_content_type="text/markdown",
2222
author="Simon S",
2323
author_email="[email protected]",
24-
url="https://github.com/faasm/faasm-cpython",
24+
url="https://github.com/faasm/python",
2525
)
2626

2727

tasks/container.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def build(ctx, nocache=False, push=False):
3131
PROJ_ROOT,
3232
nocache=nocache,
3333
push=push,
34-
build_args={"FAASM_CPYTHON_VERSION": get_version()},
34+
build_args={"FAASM_PYTHON_VERSION": get_version()},
3535
)
3636

3737

0 commit comments

Comments
 (0)