pyrelukko 0.6.0__tar.gz → 0.6.1__tar.gz

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.

Potentially problematic release.


This version of pyrelukko might be problematic. Click here for more details.

Files changed (29) hide show
  1. {pyrelukko-0.6.0 → pyrelukko-0.6.1}/.gitlab-ci.yml +15 -0
  2. {pyrelukko-0.6.0 → pyrelukko-0.6.1}/PKG-INFO +1 -1
  3. pyrelukko-0.6.1/cicd/run_publish.sh +11 -0
  4. pyrelukko-0.6.1/cicd/tox_publish.sh +27 -0
  5. {pyrelukko-0.6.0 → pyrelukko-0.6.1}/pyproject.toml +22 -3
  6. {pyrelukko-0.6.0 → pyrelukko-0.6.1}/src/pyrelukko/version.py +1 -1
  7. {pyrelukko-0.6.0 → pyrelukko-0.6.1}/LICENSE +0 -0
  8. {pyrelukko-0.6.0 → pyrelukko-0.6.1}/README.md +0 -0
  9. {pyrelukko-0.6.0 → pyrelukko-0.6.1}/cicd/run_docs_pages.sh +0 -0
  10. {pyrelukko-0.6.0 → pyrelukko-0.6.1}/cicd/run_pylint.sh +0 -0
  11. {pyrelukko-0.6.0 → pyrelukko-0.6.1}/cicd/run_pytest.sh +0 -0
  12. {pyrelukko-0.6.0 → pyrelukko-0.6.1}/cicd/run_shellcheck.sh +0 -0
  13. {pyrelukko-0.6.0 → pyrelukko-0.6.1}/cicd/tox_docs_pages.sh +0 -0
  14. {pyrelukko-0.6.0 → pyrelukko-0.6.1}/cicd/tox_shellcheck.sh +0 -0
  15. {pyrelukko-0.6.0 → pyrelukko-0.6.1}/src/pyrelukko/__init__.py +0 -0
  16. {pyrelukko-0.6.0 → pyrelukko-0.6.1}/src/pyrelukko/pyrelukko.py +0 -0
  17. {pyrelukko-0.6.0 → pyrelukko-0.6.1}/src/pyrelukko/retry.py +0 -0
  18. {pyrelukko-0.6.0 → pyrelukko-0.6.1}/src/pyrelukko/testcontainers.py +0 -0
  19. {pyrelukko-0.6.0 → pyrelukko-0.6.1}/tests/cert/5d868fca.0 +0 -0
  20. {pyrelukko-0.6.0 → pyrelukko-0.6.1}/tests/cert/README.md +0 -0
  21. {pyrelukko-0.6.0 → pyrelukko-0.6.1}/tests/cert/relukko.crt +0 -0
  22. {pyrelukko-0.6.0 → pyrelukko-0.6.1}/tests/cert/relukko.csr +0 -0
  23. {pyrelukko-0.6.0 → pyrelukko-0.6.1}/tests/cert/relukko.key +0 -0
  24. {pyrelukko-0.6.0 → pyrelukko-0.6.1}/tests/cert/rootCA.crt +0 -0
  25. {pyrelukko-0.6.0 → pyrelukko-0.6.1}/tests/cert/rootCA.der +0 -0
  26. {pyrelukko-0.6.0 → pyrelukko-0.6.1}/tests/cert/rootCA.key +0 -0
  27. {pyrelukko-0.6.0 → pyrelukko-0.6.1}/tests/cert/rootCA.srl +0 -0
  28. {pyrelukko-0.6.0 → pyrelukko-0.6.1}/tests/conftest.py +0 -0
  29. {pyrelukko-0.6.0 → pyrelukko-0.6.1}/tests/test_relukko.py +0 -0
@@ -120,6 +120,21 @@ run-shellcheck:
120
120
  - ./cicd/run_shellcheck.sh
121
121
 
122
122
 
123
+ publish:
124
+ stage: deploy
125
+ image: "registry.gitlab.com/relukko/py-tox-images/py-3.13-tox"
126
+ environment: publish
127
+ rules:
128
+ - if: $CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+$/ && $CI_PIPELINE_SOURCE == "push"
129
+ id_tokens:
130
+ PYPI_ID_TOKEN:
131
+ aud: pypi
132
+ before_script:
133
+ - echo "Publishing to PyPi..."
134
+ script:
135
+ - ./cicd/run_publish.sh
136
+
137
+
123
138
  # pages:
124
139
  # stage: deploy
125
140
  # image: "registry.gitlab.com/relukko/py-tox-images/py-3.13-tox"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pyrelukko
3
- Version: 0.6.0
3
+ Version: 0.6.1
4
4
  Summary: Relukko client.
5
5
  Author-email: Reto Zingg <g.d0b3rm4n@gmail.com>
6
6
  Requires-Python: >=3.10
@@ -0,0 +1,11 @@
1
+ #!/bin/bash
2
+
3
+ # Main script execution
4
+ main() {
5
+ tox run -e publish
6
+ }
7
+
8
+ # Execute the main function
9
+ main
10
+
11
+ # vim:set softtabstop=4 shiftwidth=4 tabstop=4 expandtab:
@@ -0,0 +1,27 @@
1
+ #!/bin/bash
2
+
3
+ export FLIT_INDEX_URL="https://upload.pypi.org/legacy/"
4
+ export FLIT_USERNAME="__token__"
5
+
6
+ # Main script execution
7
+ main() {
8
+ echo "CI: ${CI}"
9
+ if [[ "${CI}" == "true" ]]; then
10
+ echo "Push to PyPi!"
11
+ # Retrieve the OIDC token from GitLab CI/CD,
12
+ # and exchange it for a PyPI API token
13
+ oidc_token=$(python -m id PYPI)
14
+ resp=$(curl -X POST https://pypi.org/_/oidc/mint-token \
15
+ -d "{\"token\":\"${oidc_token}\"}")
16
+ api_token=$(jq --raw-output '.token' <<< "${resp}")
17
+
18
+ FLIT_PASSWORD="${api_token}" flit publish
19
+ else
20
+ echo "Running local, will not push to PyPi!"
21
+ fi
22
+ }
23
+
24
+ # Execute the main function
25
+ main
26
+
27
+ # vim:set softtabstop=4 shiftwidth=4 tabstop=4 expandtab:
@@ -37,6 +37,10 @@ lint = [
37
37
  coverage = [
38
38
  "pytest-cov"
39
39
  ]
40
+ publish = [
41
+ "flit >=3.2,<4",
42
+ "id"
43
+ ]
40
44
 
41
45
  [tool.flit.sdist]
42
46
  exclude = [".gitignore", "demo.py"]
@@ -74,17 +78,32 @@ env_list = [
74
78
  "3.11",
75
79
  "3.12",
76
80
  "3.13",
81
+ "docs",
82
+ "publish",
77
83
  "pylint",
78
- "shellcheck",
79
- "docs"
84
+ "shellcheck"
80
85
  ]
81
86
 
82
87
  [tool.tox.env_run_base]
83
88
  description = "Run test under {base_python}"
84
89
  commands = [["pytest", "--junit-xml", "pytest-junit-{env_name}.xml", "--junit-prefix", "{env_name}"]]
85
- pass_env = [ "TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE", "DOCKER_HOST", "CI_HAS_RELUKKO", "CI_RELUKKO_*" ]
90
+ pass_env = [
91
+ "CI",
92
+ "CI_HAS_RELUKKO",
93
+ "CI_RELUKKO_*",
94
+ "DOCKER_HOST",
95
+ "GITLAB_CI",
96
+ "PYPI_ID_TOKEN",
97
+ "TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE"
98
+ ]
86
99
  dependency_groups = [ "test" ]
87
100
 
101
+ [tool.tox.env.publish]
102
+ description = "Publish PyRelukko to PyPi"
103
+ dependency_groups = [ "publish" ]
104
+ allowlist_externals = ["curl", "jq", "{tox_root}/cicd/tox_publish.sh"]
105
+ commands = [[ "{tox_root}/cicd/tox_publish.sh" ]]
106
+
88
107
  [tool.tox.env.pylint]
89
108
  description = "Run PyLint with {base_python}"
90
109
  dependency_groups = [ "lint" ]
@@ -1,2 +1,2 @@
1
1
  # pylint: disable=all
2
- __version__ = "0.6.0"
2
+ __version__ = "0.6.1"
File without changes
File without changes
File without changes
File without changes
File without changes