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.
@@ -7,7 +7,56 @@
7
7
  # See https://docs.gitlab.com/ee/ci/variables/#cicd-variable-precedence
8
8
  stages:
9
9
  - test
10
- sast:
11
- stage: test
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
- publish:
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-nso-client
3
- Version: 0.0.1
3
+ Version: 0.0.2
4
4
  Summary: Add your description here
5
5
  Author-email: James Harr <jharr@internet2.edu>
6
6
  License-Expression: Apache-2.0
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "python-nso-client"
3
- version = "0.0.1"
3
+ version = "0.0.2"
4
4
  description = "Add your description here"
5
5
  readme = "README.md"
6
6
  license = "Apache-2.0"