@planqk/planqk-api-sdk 1.3.1 → 1.3.5
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 +8 -0
- package/.gitlab-ci.yml +40 -8
- package/package.json +1 -1
- package/planqk/api/_version.py +1 -1
- package/pyproject.toml +2 -1
- package/uv.lock +519 -519
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,
|
|
@@ -10,6 +10,8 @@ variables:
|
|
|
10
10
|
|
|
11
11
|
stages:
|
|
12
12
|
- commit-test
|
|
13
|
+
- install
|
|
14
|
+
- compliance
|
|
13
15
|
- commit-release-check
|
|
14
16
|
- release-package
|
|
15
17
|
|
|
@@ -21,27 +23,53 @@ semantic-release:
|
|
|
21
23
|
- if: '$CI_PIPELINE_SOURCE == "web"'
|
|
22
24
|
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
|
|
23
25
|
variables:
|
|
24
|
-
|
|
25
|
-
## https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#git-environment-variables
|
|
26
|
+
BASE_LAYER: bookworm
|
|
26
27
|
GIT_AUTHOR_NAME: "$GITLAB_USER_NAME"
|
|
27
28
|
GIT_AUTHOR_EMAIL: "$GITLAB_USER_EMAIL"
|
|
28
29
|
GIT_COMMITTER_NAME: "$GITLAB_USER_NAME"
|
|
29
30
|
GIT_COMMITTER_EMAIL: "$GITLAB_USER_EMAIL"
|
|
30
|
-
image:
|
|
31
|
+
image: ghcr.io/astral-sh/uv:$UV_VERSION-python$PYTHON_VERSION-$BASE_LAYER
|
|
31
32
|
before_script:
|
|
32
|
-
-
|
|
33
|
+
- curl -o- https://fnm.vercel.app/install | bash
|
|
34
|
+
- source ~/.bashrc
|
|
35
|
+
- fnm install 22
|
|
33
36
|
- npm install -g semantic-release @semantic-release/gitlab @semantic-release/git @semantic-release/exec
|
|
34
37
|
script:
|
|
35
38
|
- semantic-release
|
|
36
39
|
|
|
40
|
+
install:
|
|
41
|
+
stage: install
|
|
42
|
+
rules:
|
|
43
|
+
- if: '$CI_COMMIT_TAG'
|
|
44
|
+
image: ghcr.io/astral-sh/uv:$UV_VERSION-python$PYTHON_VERSION-$BASE_LAYER
|
|
45
|
+
script:
|
|
46
|
+
- uv sync --frozen --no-dev
|
|
47
|
+
artifacts:
|
|
48
|
+
expire_in: 1 hour
|
|
49
|
+
paths:
|
|
50
|
+
- .venv
|
|
51
|
+
|
|
52
|
+
oss-compliance-check:
|
|
53
|
+
stage: compliance
|
|
54
|
+
rules:
|
|
55
|
+
- if: "$CI_COMMIT_TAG"
|
|
56
|
+
image: ubuntu:latest
|
|
57
|
+
before_script:
|
|
58
|
+
- apt-get update && apt-get install -y --no-install-recommends ca-certificates curl
|
|
59
|
+
- curl https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash
|
|
60
|
+
- source .venv/bin/activate
|
|
61
|
+
script:
|
|
62
|
+
- FOSSA_REVISION=$([ -z $CI_COMMIT_TAG ] && echo $CI_COMMIT_SHA || echo $CI_COMMIT_TAG)
|
|
63
|
+
- FOSSA_BRANCH=$([ -z $CI_COMMIT_BRANCH ] && echo 'main' || echo $CI_COMMIT_BRANCH)
|
|
64
|
+
- fossa analyze -b $FOSSA_BRANCH -r $FOSSA_REVISION .
|
|
65
|
+
- fossa test -r $FOSSA_REVISION
|
|
66
|
+
|
|
37
67
|
publish-python-sdk:
|
|
38
68
|
stage: release-package
|
|
39
69
|
rules:
|
|
40
70
|
- if: '$CI_COMMIT_TAG'
|
|
41
71
|
image: ghcr.io/astral-sh/uv:$UV_VERSION-python$PYTHON_VERSION-$BASE_LAYER
|
|
42
72
|
before_script:
|
|
43
|
-
- uv venv
|
|
44
|
-
- uv sync --frozen
|
|
45
73
|
- source .venv/bin/activate
|
|
46
74
|
- uv pip install twine
|
|
47
75
|
script:
|
|
@@ -66,7 +94,11 @@ publish-node-sdk:
|
|
|
66
94
|
- cp README-node.md README.md
|
|
67
95
|
- npm run build
|
|
68
96
|
- npm publish
|
|
97
|
+
artifacts:
|
|
98
|
+
expire_in: 1 hour
|
|
99
|
+
paths:
|
|
100
|
+
- dist
|
|
69
101
|
cache:
|
|
70
|
-
key:
|
|
102
|
+
key: node_modules
|
|
71
103
|
paths:
|
|
72
104
|
- node_modules
|
package/package.json
CHANGED
package/planqk/api/_version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "1.3.
|
|
1
|
+
__version__ = "1.3.5"
|
package/pyproject.toml
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "planqk-api-sdk"
|
|
3
|
-
version = "1.3.
|
|
3
|
+
version = "1.3.5"
|
|
4
4
|
description = "SDK to interact with the official PLANQK API."
|
|
5
5
|
authors = [
|
|
6
6
|
{ name = "Kipu Quantum GmbH", email = "info@kipu-quantum.com" },
|
|
7
7
|
]
|
|
8
8
|
maintainers = [
|
|
9
9
|
{ name = "Michael Wurster", email = "michael.wurster@kipu-quantum.com" },
|
|
10
|
+
{ name = "Lukas Harzenetter", email = "lukas.harzenetter@kipu-quantum.com" },
|
|
10
11
|
]
|
|
11
12
|
classifiers = [
|
|
12
13
|
"Programming Language :: Python :: 3",
|