@planqk/planqk-service-sdk 2.4.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 ADDED
@@ -0,0 +1,9 @@
1
+ version: 3
2
+ project:
3
+ id: "git@gitlab.com:planqk-foss/planqk-service-sdk.git"
4
+ name: "Platform-API-SDK"
5
+ labels:
6
+ - "Platform"
7
+ - "Open Source"
8
+ - "SDK"
9
+ - "PLANQK"
package/.gitlab-ci.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  variables:
2
2
  TWINE_USERNAME: __token__
3
- UV_VERSION: 0.6
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: node:lts
33
+ image: ghcr.io/astral-sh/uv:$UV_VERSION-python$PYTHON_VERSION-$BASE_LAYER
31
34
  before_script:
32
- - apt-get update && apt-get install -y --no-install-recommends git-core ca-certificates
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:
@@ -0,0 +1,11 @@
1
+ export declare enum ReferenceType {
2
+ DATAPOOL = "DATAPOOL"
3
+ }
4
+ export interface DataPoolReference {
5
+ id: string;
6
+ ref: ReferenceType;
7
+ }
8
+ /**
9
+ * Factory function to create DataPoolReference objects with ref always set to DATAPOOL.
10
+ */
11
+ export declare function withDataPoolReference(id: string): DataPoolReference;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ReferenceType = void 0;
4
+ exports.withDataPoolReference = withDataPoolReference;
5
+ var ReferenceType;
6
+ (function (ReferenceType) {
7
+ ReferenceType["DATAPOOL"] = "DATAPOOL";
8
+ })(ReferenceType || (exports.ReferenceType = ReferenceType = {}));
9
+ /**
10
+ * Factory function to create DataPoolReference objects with ref always set to DATAPOOL.
11
+ */
12
+ function withDataPoolReference(id) {
13
+ return {
14
+ id,
15
+ ref: ReferenceType.DATAPOOL,
16
+ };
17
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@planqk/planqk-service-sdk",
3
- "version": "2.4.0",
3
+ "version": "2.6.0",
4
4
  "description": "SDK to interact with PLANQK Managed Services.",
5
5
  "author": "Kipu Quantum GmbH",
6
6
  "contributors": [
@@ -1 +1 @@
1
- __version__ = "2.4.0"
1
+ __version__ = "2.6.0"
package/pyproject.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "planqk-service-sdk"
3
- version = "2.4.0"
3
+ version = "2.6.0"
4
4
  description = "SDK to interact with PLANQK Managed Services."
5
5
  authors = [
6
6
  { name = "Kipu Quantum GmbH", email = "info@kipu-quantum.com" },