python-nso-client 0.0.1__tar.gz → 0.0.2__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.
- {python_nso_client-0.0.1 → python_nso_client-0.0.2}/.gitlab-ci.yml +51 -2
- {python_nso_client-0.0.1 → python_nso_client-0.0.2}/Makefile +4 -3
- {python_nso_client-0.0.1 → python_nso_client-0.0.2}/PKG-INFO +1 -1
- {python_nso_client-0.0.1 → python_nso_client-0.0.2}/pyproject.toml +1 -1
- {python_nso_client-0.0.1 → python_nso_client-0.0.2}/.allowed_signers +0 -0
- {python_nso_client-0.0.1 → python_nso_client-0.0.2}/.gitignore +0 -0
- {python_nso_client-0.0.1 → python_nso_client-0.0.2}/.python-version +0 -0
- {python_nso_client-0.0.1 → python_nso_client-0.0.2}/LICENSE.txt +0 -0
- {python_nso_client-0.0.1 → python_nso_client-0.0.2}/README.md +0 -0
- {python_nso_client-0.0.1 → python_nso_client-0.0.2}/src/nso_client/__init__.py +0 -0
- {python_nso_client-0.0.1 → python_nso_client-0.0.2}/src/nso_client/exceptions.py +0 -0
- {python_nso_client-0.0.1 → python_nso_client-0.0.2}/src/nso_client/py.typed +0 -0
- {python_nso_client-0.0.1 → python_nso_client-0.0.2}/src/nso_client/types.py +0 -0
- {python_nso_client-0.0.1 → python_nso_client-0.0.2}/tests/fixtures.py +0 -0
- {python_nso_client-0.0.1 → python_nso_client-0.0.2}/tests/test_nso_client.py +0 -0
- {python_nso_client-0.0.1 → python_nso_client-0.0.2}/tests/test_patch.py +0 -0
- {python_nso_client-0.0.1 → python_nso_client-0.0.2}/uv.lock +0 -0
|
@@ -7,7 +7,56 @@
|
|
|
7
7
|
# See https://docs.gitlab.com/ee/ci/variables/#cicd-variable-precedence
|
|
8
8
|
stages:
|
|
9
9
|
- test
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
- build
|
|
11
|
+
- deploy
|
|
12
|
+
|
|
12
13
|
include:
|
|
13
14
|
- template: Security/SAST.gitlab-ci.yml
|
|
15
|
+
|
|
16
|
+
sast:
|
|
17
|
+
stage: test
|
|
18
|
+
|
|
19
|
+
lint-ruff:
|
|
20
|
+
stage: test
|
|
21
|
+
image: ghcr.io/astral-sh/ruff:alpine
|
|
22
|
+
script:
|
|
23
|
+
- ruff check
|
|
24
|
+
- ruff format --diff
|
|
25
|
+
|
|
26
|
+
test-pytest:
|
|
27
|
+
stage: test
|
|
28
|
+
image: ghcr.io/astral-sh/uv:alpine
|
|
29
|
+
script:
|
|
30
|
+
- uv sync
|
|
31
|
+
- uv run pytest --showlocals
|
|
32
|
+
artifacts:
|
|
33
|
+
when: always
|
|
34
|
+
paths:
|
|
35
|
+
- report.xml
|
|
36
|
+
- coverage.xml
|
|
37
|
+
- htmlcov
|
|
38
|
+
reports:
|
|
39
|
+
junit: report.xml
|
|
40
|
+
coverage_report:
|
|
41
|
+
coverage_format: cobertura
|
|
42
|
+
path: coverage.xml
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
publish-release:
|
|
46
|
+
stage: build
|
|
47
|
+
image: ghcr.io/astral-sh/uv:alpine
|
|
48
|
+
dependencies:
|
|
49
|
+
- lint-ruff
|
|
50
|
+
- test-pytest
|
|
51
|
+
rules:
|
|
52
|
+
- if: $CI_COMMIT_TAG
|
|
53
|
+
when: on_success
|
|
54
|
+
|
|
55
|
+
environment:
|
|
56
|
+
name: release
|
|
57
|
+
# id_tokens:
|
|
58
|
+
# UV_PUBLISH_TOKEN:
|
|
59
|
+
# aud: pypi
|
|
60
|
+
script:
|
|
61
|
+
- uv build
|
|
62
|
+
- uv publish --token "$PYPI_TOKEN"
|
|
@@ -20,11 +20,12 @@ dev-setup: ## Setup environment with UV
|
|
|
20
20
|
test: ## Run tests once, specify $TESTS for specific file/method
|
|
21
21
|
uv run pytest $(PYTEST_ARGS) $(TESTS)
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
watch-test: ## Run tests every time code changes
|
|
24
|
+
watchexec $(WATCHEXEC_ARGS) poetry run pytest $(PYTEST_ARGS) $(TESTS)
|
|
25
|
+
|
|
26
|
+
publish: ## Publish a relase to PyPI
|
|
24
27
|
rm -fr dist/
|
|
25
28
|
uv build
|
|
26
29
|
uv publish
|
|
27
30
|
|
|
28
|
-
watch-test: ## Run tests every time code changes
|
|
29
|
-
watchexec $(WATCHEXEC_ARGS) poetry run pytest $(PYTEST_ARGS) $(TESTS)
|
|
30
31
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|