@planqk/planqk-service-sdk 2.5.0 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.fossa.yml +9 -0
- package/.gitlab-ci.yml +39 -3
- package/package.json +1 -1
- package/planqk/service/_version.py +1 -1
- package/pyproject.toml +1 -1
- package/requirements-dev.txt +608 -0
- package/requirements.txt +241 -0
- package/uv.lock +448 -448
package/.fossa.yml
ADDED
package/.gitlab-ci.yml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
variables:
|
|
2
2
|
TWINE_USERNAME: __token__
|
|
3
|
-
UV_VERSION: 0.
|
|
3
|
+
UV_VERSION: 0.8
|
|
4
4
|
PYTHON_VERSION: 3.11
|
|
5
5
|
BASE_LAYER: bookworm-slim
|
|
6
6
|
# GitLab CI creates a separate mountpoint for the build directory,
|
|
@@ -11,6 +11,8 @@ variables:
|
|
|
11
11
|
stages:
|
|
12
12
|
- commit-test
|
|
13
13
|
- commit-release-check
|
|
14
|
+
- install
|
|
15
|
+
- compliance
|
|
14
16
|
- release-package
|
|
15
17
|
|
|
16
18
|
semantic-release:
|
|
@@ -21,19 +23,53 @@ semantic-release:
|
|
|
21
23
|
- if: '$CI_PIPELINE_SOURCE == "web"'
|
|
22
24
|
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
|
|
23
25
|
variables:
|
|
26
|
+
BASE_LAYER: bookworm
|
|
24
27
|
## Use the gitlab user to create the release commit
|
|
25
28
|
## https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#git-environment-variables
|
|
26
29
|
GIT_AUTHOR_NAME: "$GITLAB_USER_NAME"
|
|
27
30
|
GIT_AUTHOR_EMAIL: "$GITLAB_USER_EMAIL"
|
|
28
31
|
GIT_COMMITTER_NAME: "$GITLAB_USER_NAME"
|
|
29
32
|
GIT_COMMITTER_EMAIL: "$GITLAB_USER_EMAIL"
|
|
30
|
-
image:
|
|
33
|
+
image: ghcr.io/astral-sh/uv:$UV_VERSION-python$PYTHON_VERSION-$BASE_LAYER
|
|
31
34
|
before_script:
|
|
32
|
-
-
|
|
35
|
+
- curl -o- https://fnm.vercel.app/install | bash
|
|
36
|
+
- source ~/.bashrc
|
|
37
|
+
- fnm install 22
|
|
33
38
|
- npm install -g semantic-release @semantic-release/gitlab @semantic-release/git @semantic-release/exec
|
|
34
39
|
script:
|
|
35
40
|
- semantic-release
|
|
36
41
|
|
|
42
|
+
install:
|
|
43
|
+
stage: install
|
|
44
|
+
rules:
|
|
45
|
+
- if: '$CI_COMMIT_TAG'
|
|
46
|
+
image: ghcr.io/astral-sh/uv:$UV_VERSION-python$PYTHON_VERSION-$BASE_LAYER
|
|
47
|
+
script:
|
|
48
|
+
- uv sync --frozen --no-dev
|
|
49
|
+
- uv export --format requirements-txt --no-dev --no-emit-project > requirements.txt
|
|
50
|
+
- uv export --format requirements-txt --dev --no-emit-project > requirements-dev.txt
|
|
51
|
+
artifacts:
|
|
52
|
+
expire_in: 1 hour
|
|
53
|
+
paths:
|
|
54
|
+
- .venv
|
|
55
|
+
- requirements.txt
|
|
56
|
+
- requirements-dev.txt
|
|
57
|
+
|
|
58
|
+
oss-compliance-check:
|
|
59
|
+
stage: compliance
|
|
60
|
+
rules:
|
|
61
|
+
- if: "$CI_COMMIT_TAG"
|
|
62
|
+
image: ubuntu:latest
|
|
63
|
+
before_script:
|
|
64
|
+
- apt-get update && apt-get install -y --no-install-recommends ca-certificates curl
|
|
65
|
+
- curl https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash
|
|
66
|
+
- source .venv/bin/activate
|
|
67
|
+
script:
|
|
68
|
+
- FOSSA_REVISION=$([ -z $CI_COMMIT_TAG ] && echo $CI_COMMIT_SHA || echo $CI_COMMIT_TAG)
|
|
69
|
+
- FOSSA_BRANCH=$([ -z $CI_COMMIT_BRANCH ] && echo 'main' || echo $CI_COMMIT_BRANCH)
|
|
70
|
+
- fossa analyze -b $FOSSA_BRANCH -r $FOSSA_REVISION .
|
|
71
|
+
- fossa test -r $FOSSA_REVISION
|
|
72
|
+
|
|
37
73
|
publish-python-sdk:
|
|
38
74
|
stage: release-package
|
|
39
75
|
rules:
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "2.
|
|
1
|
+
__version__ = "2.6.0"
|