mkdocs-pseudocode-i18n 0.1.0__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.
@@ -0,0 +1,11 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ .pytest_cache/
4
+ .ruff_cache/
5
+ dist/
6
+ build/
7
+ public/
8
+ *.egg-info/
9
+ .yarn/
10
+ .pnp.*
11
+ *.zip
@@ -0,0 +1,61 @@
1
+ stages:
2
+ - test
3
+ - build
4
+ - deploy
5
+
6
+ image: python:3.13
7
+
8
+ before_script:
9
+ - python -m pip install --upgrade pip
10
+ - python -m pip install -e '.[dev]'
11
+
12
+ test:
13
+ stage: test
14
+ script:
15
+ - python scripts/check_version.py
16
+ - python -m ruff check .
17
+ - python -m pytest
18
+ - mkdocs build -f site/mkdocs.yml --strict
19
+
20
+ build:
21
+ stage: build
22
+ script:
23
+ - python -m build
24
+ artifacts:
25
+ paths:
26
+ - dist/
27
+ expire_in: 1 week
28
+
29
+ # Publish the documentation for the default branch.
30
+ deploy-pages:
31
+ stage: deploy
32
+ script:
33
+ - mkdocs build -f site/mkdocs.yml --strict
34
+ pages:
35
+ publish: public
36
+ rules:
37
+ - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
38
+
39
+ # PyPI Trusted Publishing (OIDC).
40
+ # Before the first release, create a Pending Trusted Publisher on PyPI with:
41
+ # Project: mkdocs-pseudocode-i18n
42
+ # Namespace: rod2ik
43
+ # Repository: mkdocs-pseudocode-i18n
44
+ # Pipeline: .gitlab-ci.yml
45
+ # Environment: release
46
+ publish-pypi:
47
+ stage: deploy
48
+ image: python:3.13
49
+ dependencies:
50
+ - build
51
+ id_tokens:
52
+ PYPI_ID_TOKEN:
53
+ aud: pypi
54
+ environment:
55
+ name: release
56
+ before_script: []
57
+ script:
58
+ - python -m pip install --upgrade twine
59
+ - python -m twine upload dist/*
60
+ rules:
61
+ - if: '$CI_COMMIT_TAG =~ /^v.+$/'