Skip to content

Commit bd3a694

Browse files
authored
chore: release v1.0.2 (#2585)
1 parent 082e897 commit bd3a694

File tree

84 files changed

+6537
-487
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+6537
-487
lines changed

.dockerignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
!renku/**
44
!pyproject.toml
55
!poetry.lock
6-
!build.py
76
!*.rst
87
!entrypoint-svc.sh
98
!.git

.github/workflows/test_deploy.yml

Lines changed: 143 additions & 47 deletions
Large diffs are not rendered by default.

.github/workflows/test_publish.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ on:
44
push:
55
branches:
66
- master
7+
- develop
78
paths:
89
- renku/core/commands/providers/*.py
910

1011
jobs:
11-
test-linux-integration:
12+
test-linux-integration-publish:
1213
runs-on: ubuntu-latest
1314
strategy:
1415
max-parallel: 4
@@ -37,7 +38,7 @@ jobs:
3738
OLOS_ACCESS_TOKEN: ${{ secrets.OLOS_ACCESS_TOKEN }}
3839
run: pytest -m publish -v
3940

40-
test-macos-integration:
41+
test-macos-integration-publish:
4142
runs-on: macos-latest
4243
strategy:
4344
max-parallel: 4

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,6 @@ helm-chart/renku-core/charts
9191
renku/templates/
9292
temp/
9393
tmp/
94+
95+
# pytest-recording cache
96+
cassettes

CHANGES.rst

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,60 @@
1818
Changes
1919
=======
2020

21+
` <https://github.com/SwissDataScienceCenter/renku-python/compare/v1.0.1...v1.0.2>`__ (2022-01-18)
22+
--------------------------------------------------------------------------------------------------
23+
24+
Bug Fixes
25+
~~~~~~~~~
26+
27+
- **core:** disable interpolation when loading/storing renku config
28+
(`#2527 <https://github.com/SwissDataScienceCenter/renku-python/issues/2527>`__)
29+
(`4724b60 <https://github.com/SwissDataScienceCenter/renku-python/commit/4724b6024273e6b9f217e2d37303da662295d941>`__)
30+
- **core:** fail gracefully when running non-existing commands
31+
(`#2523 <https://github.com/SwissDataScienceCenter/renku-python/issues/2523>`__)
32+
(`2879c55 <https://github.com/SwissDataScienceCenter/renku-python/commit/2879c55314bbee58c040a455fe1882136e404595>`__)
33+
- **core:** fix cwl float type and derived from
34+
(`#2570 <https://github.com/SwissDataScienceCenter/renku-python/issues/2570>`__)
35+
(`19454ba <https://github.com/SwissDataScienceCenter/renku-python/commit/19454ba89f2eea15cc0051f48a0e60cf373d742d>`__)
36+
- **core:** make activity ids deterministic in migration
37+
(`#2581 <https://github.com/SwissDataScienceCenter/renku-python/issues/2581>`__)
38+
(`7ed6102 <https://github.com/SwissDataScienceCenter/renku-python/commit/7ed6102496abb03329f6b19521232215e31a834a>`__)
39+
- **core:** preserve ``dateCreated`` when migrating datasets
40+
(`#2526 <https://github.com/SwissDataScienceCenter/renku-python/issues/2526>`__)
41+
(`74c48f2 <https://github.com/SwissDataScienceCenter/renku-python/commit/74c48f2c93323dbd607e7539d1eeaa3419c89ace>`__)
42+
- **core:** set project when exporting graph
43+
(`#2534 <https://github.com/SwissDataScienceCenter/renku-python/issues/2534>`__)
44+
(`de098a5 <https://github.com/SwissDataScienceCenter/renku-python/commit/de098a5326196c294cb45f1245c4e4f3f178ff93>`__)
45+
- **service:** disable migration check optimization
46+
(`#2541 <https://github.com/SwissDataScienceCenter/renku-python/issues/2541>`__)
47+
(`f2f573f <https://github.com/SwissDataScienceCenter/renku-python/commit/f2f573f299b971c1914b711a3d39fc97a54c7987>`__)
48+
- **service:** fix cache.migrate not locking the project
49+
(`#2573 <https://github.com/SwissDataScienceCenter/renku-python/issues/2573>`__)
50+
(`ed2bcd8 <https://github.com/SwissDataScienceCenter/renku-python/commit/ed2bcd8551f500e3a4a422a6906d0813317b1c77>`__)
51+
52+
Features
53+
~~~~~~~~
54+
55+
- **core:** add shell_complete implementation for workflows and
56+
datasets
57+
(`#2512 <https://github.com/SwissDataScienceCenter/renku-python/issues/2512>`__)
58+
(`d6c1fe2 <https://github.com/SwissDataScienceCenter/renku-python/commit/d6c1fe2b61116c561665b2fddd0ce0315bfb95a2>`__)
59+
- **core:** extended template variable functionality
60+
(`#2120 <https://github.com/SwissDataScienceCenter/renku-python/issues/2120>`__)
61+
(`0e13fc1 <https://github.com/SwissDataScienceCenter/renku-python/commit/0e13fc1b4db8b0fd323cc3d3fc0c865ed280fccc>`__)
62+
- **core:** ignore quotation mark in git user/email config
63+
(`#2537 <https://github.com/SwissDataScienceCenter/renku-python/issues/2537>`__)
64+
(`e70481c <https://github.com/SwissDataScienceCenter/renku-python/commit/e70481cd386ceadd9e43e06d373c32e8f6c8669d>`__)
65+
- **core:** renku clone with credentials
66+
(`#2517 <https://github.com/SwissDataScienceCenter/renku-python/issues/2517>`__)
67+
(`594d0ad <https://github.com/SwissDataScienceCenter/renku-python/commit/594d0ad0e6a52b2a98afedac9a20a20d50383f02>`__)
68+
- **core:** support forward compatibility of datasets
69+
(`#2554 <https://github.com/SwissDataScienceCenter/renku-python/issues/2554>`__)
70+
(`c6a7013 <https://github.com/SwissDataScienceCenter/renku-python/commit/c6a7013e02b639bf1894d6b96e53b05a0058cb9e>`__)
71+
- **service:** add project.lock_status endpoint
72+
(`#2531 <https://github.com/SwissDataScienceCenter/renku-python/issues/2531>`__)
73+
(`082e897 <https://github.com/SwissDataScienceCenter/renku-python/commit/082e897feac105e772f5672349f4f3535425d4ce>`__)
74+
2175
` <https://github.com/SwissDataScienceCenter/renku-python/compare/v1.0.0...v1.0.1>`__ (2021-12-07)
2276
--------------------------------------------------------------------------------------------------
2377

Dockerfile.cli

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
FROM python:3.7-slim as base
22

33
RUN apt-get update && \
4-
apt-get install -y git && \
4+
apt-get install -y git make && \
55
pip install --no-cache --upgrade pip poetry
66

77
FROM base as builder
88

99
# The python install is done in two steps to avoid re-installing all dependencies every
1010
# time the code changes
11-
COPY pyproject.toml build.py poetry.lock README.rst CHANGES.rst /code/renku/
11+
COPY pyproject.toml poetry.lock README.rst CHANGES.rst /code/renku/
1212
WORKDIR /code/renku
1313
RUN poetry export --without-hashes -f requirements.txt --output /tmp/requirements.txt && \
1414
pip install -r /tmp/requirements.txt && \
@@ -23,7 +23,7 @@ ARG CLEAN_INSTALL
2323
RUN if [ -n "${CLEAN_INSTALL}" ]; then git reset --hard ; fi
2424
# manually update version.py
2525
RUN poetry-dynamic-versioning
26-
26+
RUN make download-templates
2727
RUN pip wheel --wheel-dir /wheels . && \
2828
pip install --no-index --no-warn-script-location --force --root=/pythonroot/ /wheels/*.whl && \
2929
apt-get clean

Dockerfile.svc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
FROM python:3.7-slim as base
22

33
RUN apt-get update && \
4-
apt-get install -y git && \
4+
apt-get install -y git make && \
55
pip install --no-cache --upgrade pip poetry
66

77
FROM base as builder
88

99
# The python install is done in two steps to avoid re-installing all dependencies every
1010
# time the code changes
11-
COPY pyproject.toml build.py poetry.lock README.rst CHANGES.rst /code/renku/
11+
COPY pyproject.toml poetry.lock README.rst CHANGES.rst /code/renku/
1212
WORKDIR /code/renku
1313
RUN poetry export --without-hashes -f requirements.txt --output /tmp/requirements.txt && \
1414
pip install -r /tmp/requirements.txt && \
@@ -23,7 +23,7 @@ ARG CLEAN_INSTALL
2323
RUN if [ -n "${CLEAN_INSTALL}" ]; then git reset --hard ; fi
2424
# manually update version.py
2525
RUN poetry-dynamic-versioning
26-
26+
RUN make download-templates
2727
RUN pip wheel --wheel-dir /wheels .[service] && \
2828
pip install --no-index --no-warn-script-location --force --root=/pythonroot/ /wheels/*.whl && \
2929
apt-get clean

Makefile

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ DOCKER_PREFIX:=${DOCKER_REGISTRY}$(DOCKER_REPOSITORY)
2121

2222
GIT_MASTER_HEAD_SHA:=$(shell git rev-parse --short --verify HEAD)
2323

24+
TEMPLATE_URL:=https://github.com/SwissDataScienceCenter/renku-project-template
25+
TEMPLATE_REFERENCE:=0.2.1
26+
TEMPLATE_DIR:=renku/templates/
27+
2428
.PHONY: service cli docker-tag docker-push docker-login
2529

2630
docker-tag: service cli
@@ -41,3 +45,31 @@ service:
4145

4246
cli:
4347
docker build -f Dockerfile.cli -t $(DOCKER_PREFIX)renku-python:`git rev-parse --short HEAD` --build-arg CLEAN_INSTALL=1 .
48+
49+
download-templates:
50+
@echo "Downloading templates"
51+
rm -rf $(TEMPLATE_DIR)
52+
mkdir -p $(TEMPLATE_DIR)
53+
git clone $(TEMPLATE_URL) $(TEMPLATE_DIR)
54+
git --git-dir=$(TEMPLATE_DIR).git --work-tree=$(TEMPLATE_DIR) checkout $(TEMPLATE_REFERENCE)
55+
rm -rf $(TEMPLATE_DIR).git
56+
57+
build-package: download-templates
58+
@echo "Building package"
59+
poetry build
60+
61+
publish-package: build-package
62+
@echo "Publishing package"
63+
poetry config pypi-token.pypi ${PYPI_TOKEN}
64+
poetry publish
65+
66+
build-lock-package: download-templates
67+
@echo "Building package"
68+
poetry-dynamic-versioning
69+
poetry run poetry-lock-package --build
70+
sed -i --regexp-extended 's/^version\s=\s"[^"]+"/version = "0.0.0"/gm' pyproject.toml
71+
sed -i --regexp-extended 's/^__version__\s=\s"[^"]+"/__version__ = "0.0.0"/gm' renku/version.py
72+
73+
publish-lock-package: build-lock-package
74+
@echo "Publishing package"
75+
twine upload -u __token__ -p ${PYPI_TOKEN} dist/renku_lock*

build.py

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)