coauthor 0.0.5__tar.gz → 0.0.9__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 coauthor might be problematic. Click here for more details.
- {coauthor-0.0.5 → coauthor-0.0.9}/.bumpversion.toml +1 -1
- coauthor-0.0.9/.gitlab-ci.yml +110 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/PKG-INFO +7 -8
- {coauthor-0.0.5 → coauthor-0.0.9}/README.md +2 -1
- {coauthor-0.0.5 → coauthor-0.0.9}/docs/conf.py +1 -1
- {coauthor-0.0.5 → coauthor-0.0.9}/pyproject.toml +4 -6
- {coauthor-0.0.5 → coauthor-0.0.9}/src/coauthor/__init__.py +1 -1
- coauthor-0.0.5/.gitlab-ci.yml +0 -175
- {coauthor-0.0.5 → coauthor-0.0.9}/.coauthor/templates/coauthor/ai-file-update/system.md +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/.coauthor.yml +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/.github/dependabot.yml +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/.github/template-sync.yml +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/.github/workflows/CI.yml +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/.github/workflows/publish.yml +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/.github/workflows/schedule-update-actions.yml +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/.github/workflows/semantic-pr-check.yml +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/.github/workflows/sphinx.yml +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/.github/workflows/template-sync.yml +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/.gitignore +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/.pre-commit-config.yaml +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/.pypirc +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/.readthedocs.yaml +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/.vscode/launch.json +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/.vscode/settings.json +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/CHANGELOG.md +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/CODE_OF_CONDUCT.md +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/LICENSE +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/SECURITY.md +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/SUPPORT.md +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/docs/_static/logo.png +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/docs/index.md +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/docs/requirements.txt +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/docs/users/changelog.md +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/docs/users/configuration_file.md +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/docs/users/installation_and_usage.md +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/src/README.md +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/src/coauthor/main.py +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/src/coauthor/modules/__init__.py +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/src/coauthor/modules/ai.py +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/src/coauthor/modules/file_processor.py +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/src/coauthor/modules/file_scanner.py +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/src/coauthor/modules/file_watcher.py +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/src/coauthor/modules/workflow.py +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/src/coauthor/modules/workflow_tasks.py +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/src/coauthor/utils/config.py +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/src/coauthor/utils/git.py +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/src/coauthor/utils/jinja.py +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/src/coauthor/utils/jinja_filters.py +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/src/coauthor/utils/logger.py +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/src/coauthor/utils/match_utils.py +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/src/coauthor/utils/workflow_utils.py +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/tests/conftest.py +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/tests/data/coauthor-markdown-no-regex.yml +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/tests/data/coauthor-markdown.yml +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/tests/data/coauthor-markdown2.yml +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/tests/data/coauthor-regex-replace.yml +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/tests/data/coauthor-workflows.yml +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/tests/data/coauthor.yml +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/tests/data/coauthor_task_pong.yml +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/tests/data/coauthor_test_match_utils.yml +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/tests/data/coauthor_translation.yml +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/tests/data/coauthor_translation2.yml +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/tests/data/whatever.md +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/tests/data/whatever_without_instruction.md +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/tests/modules/test_file_scanner.py +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/tests/modules/test_workflow.py +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/tests/requirements.txt +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/tests/test_ai.py +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/tests/test_ai_live.py +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/tests/test_ai_translation.py +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/tests/test_config_utils.py +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/tests/test_file_processor.py +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/tests/test_git.py +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/tests/test_jinja.py +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/tests/test_jinja_filters.py +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/tests/test_logger_utils.py +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/tests/test_main.py +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/tests/test_match_utils.py +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/tests/test_watch_utils.py +0 -0
- {coauthor-0.0.5 → coauthor-0.0.9}/tests/test_workflow_utils.py +0 -0
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
---
|
|
2
|
+
stages:
|
|
3
|
+
# - lint
|
|
4
|
+
- test
|
|
5
|
+
- build
|
|
6
|
+
- release
|
|
7
|
+
|
|
8
|
+
variables:
|
|
9
|
+
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
|
|
10
|
+
CI_PYTHON_VERSION: "3.11"
|
|
11
|
+
|
|
12
|
+
default:
|
|
13
|
+
image: python:$CI_PYTHON_VERSION
|
|
14
|
+
|
|
15
|
+
before_script:
|
|
16
|
+
- python --version
|
|
17
|
+
- pip install --upgrade pip
|
|
18
|
+
|
|
19
|
+
# .linters:
|
|
20
|
+
# stage: lint
|
|
21
|
+
# script:
|
|
22
|
+
# - pip install . pre-commit mypy==1.13.0 -r tests/requirements.txt
|
|
23
|
+
# - mypy src/ tests/
|
|
24
|
+
|
|
25
|
+
# .lint:
|
|
26
|
+
# extends: .linters
|
|
27
|
+
# tags:
|
|
28
|
+
# - docker
|
|
29
|
+
# only:
|
|
30
|
+
# - master
|
|
31
|
+
|
|
32
|
+
prepare:
|
|
33
|
+
stage: build
|
|
34
|
+
script:
|
|
35
|
+
- |
|
|
36
|
+
C2_VERSION=$(grep 'version =' pyproject.toml | awk -F '"' '{print $2}')
|
|
37
|
+
- 'echo "C2_VERSION: $C2_VERSION"'
|
|
38
|
+
- |
|
|
39
|
+
echo "C2_VERSION=$C2_VERSION" >> variables.env
|
|
40
|
+
artifacts:
|
|
41
|
+
reports:
|
|
42
|
+
dotenv: variables.env
|
|
43
|
+
|
|
44
|
+
build:
|
|
45
|
+
stage: build
|
|
46
|
+
script:
|
|
47
|
+
- python3 -m pip install flit
|
|
48
|
+
- flit build
|
|
49
|
+
artifacts:
|
|
50
|
+
paths:
|
|
51
|
+
- dist/
|
|
52
|
+
|
|
53
|
+
pypi-publish:
|
|
54
|
+
stage: release
|
|
55
|
+
script:
|
|
56
|
+
- python3 -m pip install flit
|
|
57
|
+
- flit build
|
|
58
|
+
- flit publish
|
|
59
|
+
# environment: # require approval
|
|
60
|
+
# name: release
|
|
61
|
+
# url: https://pypi.org/project/coauthor
|
|
62
|
+
# variables:
|
|
63
|
+
# # FLIT_INDEX_URL: https://test.pypi.org/legacy/
|
|
64
|
+
# FLIT_USERNAME: __token__
|
|
65
|
+
only:
|
|
66
|
+
- tags
|
|
67
|
+
|
|
68
|
+
test:
|
|
69
|
+
stage: test
|
|
70
|
+
parallel:
|
|
71
|
+
matrix:
|
|
72
|
+
- PY: ["3.10", "3.11"]
|
|
73
|
+
# DEPS_VERSION: ["min_deps_version", "latest_deps_version"]
|
|
74
|
+
image: "python:$PY"
|
|
75
|
+
# services:
|
|
76
|
+
# - docker:dind
|
|
77
|
+
script:
|
|
78
|
+
- git config --global user.email "you@example.com"
|
|
79
|
+
- git config --global user.name "Your Name"
|
|
80
|
+
- pip install . -r tests/requirements.txt
|
|
81
|
+
- pytest --cov
|
|
82
|
+
coverage: '/TOTAL\s+\d+\s+\d+\s+\d+\s+\d+\s+(\d+(?:\.\d+)?)\%$/'
|
|
83
|
+
allow_failure: true
|
|
84
|
+
|
|
85
|
+
artifacts:
|
|
86
|
+
paths:
|
|
87
|
+
- coverage.xml
|
|
88
|
+
only:
|
|
89
|
+
- master
|
|
90
|
+
- tags
|
|
91
|
+
|
|
92
|
+
gitlab-release:
|
|
93
|
+
stage: release
|
|
94
|
+
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
|
95
|
+
needs: [prepare]
|
|
96
|
+
before_script: []
|
|
97
|
+
script:
|
|
98
|
+
- echo "Create Coauthor release $C2_VERSION"
|
|
99
|
+
release:
|
|
100
|
+
name: Coauthor $C2_VERSION
|
|
101
|
+
description: "./CHANGELOG.md"
|
|
102
|
+
tag_name: $C2_VERSION
|
|
103
|
+
ref: $CI_COMMIT_SHA
|
|
104
|
+
when: manual
|
|
105
|
+
only:
|
|
106
|
+
- master
|
|
107
|
+
# assets:
|
|
108
|
+
# links:
|
|
109
|
+
# - name: coauthor
|
|
110
|
+
# url: https://galaxy.ansible.com/$C2_NAMESPACE/$C2_NAME
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
2
|
Name: coauthor
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.9
|
|
4
4
|
Summary: Coauthor Python Project
|
|
5
5
|
Author-email: Onno van der Straaten <onknows@c2platform.org>
|
|
6
6
|
Requires-Python: >=3.8.1
|
|
@@ -9,8 +9,6 @@ Classifier: Development Status :: 3 - Alpha
|
|
|
9
9
|
Classifier: Intended Audience :: Developers
|
|
10
10
|
Classifier: License :: OSI Approved :: MIT License
|
|
11
11
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
14
12
|
Classifier: Programming Language :: Python :: 3.10
|
|
15
13
|
Classifier: Programming Language :: Python :: 3.11
|
|
16
14
|
Requires-Dist: inotify_simple==1.3.5
|
|
@@ -35,9 +33,9 @@ Requires-Dist: pytest-runner ; extra == "test"
|
|
|
35
33
|
Requires-Dist: pytest==7.3.1 ; extra == "test"
|
|
36
34
|
Requires-Dist: pytest-github-actions-annotate-failures ; extra == "test"
|
|
37
35
|
Requires-Dist: shellcheck-py==0.9.0.2 ; extra == "test"
|
|
38
|
-
Project-URL: Documentation, https://
|
|
39
|
-
Project-URL: Source, https://
|
|
40
|
-
Project-URL: Tracker, https://
|
|
36
|
+
Project-URL: Documentation, https://coauthor.readthedocs.io
|
|
37
|
+
Project-URL: Source, https://gitlab.com/c2platform/c2/coauthor/
|
|
38
|
+
Project-URL: Tracker, https://gitlab.com/c2platform/c2/coauthor/-/issues
|
|
41
39
|
Provides-Extra: spark
|
|
42
40
|
Provides-Extra: test
|
|
43
41
|
|
|
@@ -46,7 +44,8 @@ Provides-Extra: test
|
|
|
46
44
|
[](https://coauthor.readthedocs.io/en/latest/?badge=latest)
|
|
47
45
|
[](https://gitlab.com/c2platform/c2/coauthor/-/commits/master)
|
|
48
46
|
[](https://gitlab.com/c2platform/c2/coauthor/-/commits/master)
|
|
49
|
-
[](https://pypi.org/project/coauthor)
|
|
48
|
+
[](https://pypi.org/project/coauthor/)
|
|
50
49
|
[](https://github.com/psf/black)
|
|
51
50
|
|
|
52
51
|
<!-- start mini-description -->
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
[](https://coauthor.readthedocs.io/en/latest/?badge=latest)
|
|
4
4
|
[](https://gitlab.com/c2platform/c2/coauthor/-/commits/master)
|
|
5
5
|
[](https://gitlab.com/c2platform/c2/coauthor/-/commits/master)
|
|
6
|
-
[](https://pypi.org/project/coauthor)
|
|
7
|
+
[](https://pypi.org/project/coauthor/)
|
|
7
8
|
[](https://github.com/psf/black)
|
|
8
9
|
|
|
9
10
|
<!-- start mini-description -->
|
|
@@ -23,7 +23,7 @@ copyright = '2024, Onno van der Straaten' # noqa: A001
|
|
|
23
23
|
author = 'Onno van der Straaten'
|
|
24
24
|
|
|
25
25
|
# The full version, including alpha/beta/rc tags
|
|
26
|
-
release = '0.0.
|
|
26
|
+
release = '0.0.9' # DO NOT EDIT THIS LINE MANUALLY. LET bump2version UTILITY DO IT
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
# -- General configuration ---------------------------------------------------
|
|
@@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "coauthor"
|
|
7
|
-
version = "0.0.
|
|
7
|
+
version = "0.0.9"
|
|
8
8
|
authors = [{ name = "Onno van der Straaten", email = "onknows@c2platform.org" }]
|
|
9
9
|
description = "Coauthor Python Project"
|
|
10
10
|
readme = "README.md"
|
|
@@ -13,8 +13,6 @@ classifiers = [
|
|
|
13
13
|
"Intended Audience :: Developers",
|
|
14
14
|
"License :: OSI Approved :: MIT License",
|
|
15
15
|
"Programming Language :: Python :: 3 :: Only",
|
|
16
|
-
"Programming Language :: Python :: 3.8",
|
|
17
|
-
"Programming Language :: Python :: 3.9",
|
|
18
16
|
"Programming Language :: Python :: 3.10",
|
|
19
17
|
"Programming Language :: Python :: 3.11",
|
|
20
18
|
]
|
|
@@ -52,9 +50,9 @@ test = [
|
|
|
52
50
|
coauthor = "coauthor.main:main"
|
|
53
51
|
|
|
54
52
|
[project.urls]
|
|
55
|
-
Documentation = "https://
|
|
56
|
-
Source = "https://
|
|
57
|
-
Tracker = "https://
|
|
53
|
+
Documentation = "https://coauthor.readthedocs.io"
|
|
54
|
+
Source = "https://gitlab.com/c2platform/c2/coauthor/"
|
|
55
|
+
Tracker = "https://gitlab.com/c2platform/c2/coauthor/-/issues"
|
|
58
56
|
|
|
59
57
|
[tool.flit.module]
|
|
60
58
|
name = "coauthor"
|
coauthor-0.0.5/.gitlab-ci.yml
DELETED
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
stages:
|
|
3
|
-
# - lint
|
|
4
|
-
- test
|
|
5
|
-
- build
|
|
6
|
-
- release
|
|
7
|
-
- deploy
|
|
8
|
-
- publish
|
|
9
|
-
|
|
10
|
-
variables:
|
|
11
|
-
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
|
|
12
|
-
CI_PYTHON_VERSION: "3.11"
|
|
13
|
-
|
|
14
|
-
default:
|
|
15
|
-
image: python:$CI_PYTHON_VERSION
|
|
16
|
-
|
|
17
|
-
before_script:
|
|
18
|
-
- python --version
|
|
19
|
-
- pip install --upgrade pip
|
|
20
|
-
|
|
21
|
-
# .linters:
|
|
22
|
-
# stage: lint
|
|
23
|
-
# script:
|
|
24
|
-
# - pip install . pre-commit mypy==1.13.0 -r tests/requirements.txt
|
|
25
|
-
# - mypy src/ tests/
|
|
26
|
-
|
|
27
|
-
# .lint:
|
|
28
|
-
# extends: .linters
|
|
29
|
-
# tags:
|
|
30
|
-
# - docker
|
|
31
|
-
# only:
|
|
32
|
-
# - master
|
|
33
|
-
|
|
34
|
-
.release-base:
|
|
35
|
-
# Abstract base job for "release" jobs.
|
|
36
|
-
# Extending jobs must define the following variables:
|
|
37
|
-
# - PYPI_OIDC_AUD: Audience for the ID token that GitLab
|
|
38
|
-
# issues to the pipeline job
|
|
39
|
-
# - PYPI_OIDC_URL: PyPI endpoint for retrieving a publish
|
|
40
|
-
# token with GitLab’s ID token
|
|
41
|
-
# - UV_PUBLISH_URL: PyPI endpoint for the actual upload
|
|
42
|
-
stage: deploy
|
|
43
|
-
# id_tokens:
|
|
44
|
-
# PYPI_ID_TOKEN:
|
|
45
|
-
# aud: "$PYPI_OIDC_AUD"
|
|
46
|
-
# script:
|
|
47
|
-
# # Use the GitLab ID token to retrieve an API token from PyPI
|
|
48
|
-
# - >-
|
|
49
|
-
# resp="$(curl -X POST "${PYPI_OIDC_URL}" -d "{\"token\":\"${PYPI_ID_TOKEN}\"}")"
|
|
50
|
-
# # Parse the response and extract the token
|
|
51
|
-
# - echo $resp > pypi_oidc_response.json
|
|
52
|
-
# # - >-
|
|
53
|
-
# # publish_token="$(python -c "import json; print(json.load('${resp}')['token'])")"
|
|
54
|
-
# # # Upload the files from "dist/"
|
|
55
|
-
# # - export FLIT_PASSWORD=$publish_token
|
|
56
|
-
# # - 'echo "FLIT_USERNAME: $FLIT_USERNAME, FLIT_PASSWORD: $FLIT_PASSWORD"'
|
|
57
|
-
# # - flit publish
|
|
58
|
-
# # Print the link to PyPI so we can quickly go there to verify the result:
|
|
59
|
-
# # - 'version="$(uv run --with hatch-vcs hatchling version)"'
|
|
60
|
-
# # - 'echo -e "\033[34;1mPackage on PyPI:\033[0m ${CI_ENVIRONMENT_URL}${version}/"'
|
|
61
|
-
variables:
|
|
62
|
-
FLIT_USERNAME: onknows
|
|
63
|
-
# artifacts:
|
|
64
|
-
# paths:
|
|
65
|
-
# - pypi_oidc_response.json
|
|
66
|
-
|
|
67
|
-
prepare:
|
|
68
|
-
stage: build
|
|
69
|
-
script:
|
|
70
|
-
- |
|
|
71
|
-
C2_VERSION=$(grep 'version =' pyproject.toml | awk -F '"' '{print $2}')
|
|
72
|
-
- 'echo "C2_VERSION: $C2_VERSION"'
|
|
73
|
-
- |
|
|
74
|
-
echo "C2_VERSION=$C2_VERSION" >> variables.env
|
|
75
|
-
artifacts:
|
|
76
|
-
reports:
|
|
77
|
-
dotenv: variables.env
|
|
78
|
-
|
|
79
|
-
build:
|
|
80
|
-
stage: build
|
|
81
|
-
script:
|
|
82
|
-
- python3 -m pip install flit
|
|
83
|
-
- flit build
|
|
84
|
-
artifacts:
|
|
85
|
-
paths:
|
|
86
|
-
- dist/
|
|
87
|
-
|
|
88
|
-
release-test:
|
|
89
|
-
extends: ".release-base"
|
|
90
|
-
rules:
|
|
91
|
-
# Only run if it's a pipeline for the default branch or a tag:
|
|
92
|
-
- if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_TAG"
|
|
93
|
-
script:
|
|
94
|
-
- python3 -m pip install flit
|
|
95
|
-
- flit build
|
|
96
|
-
- flit publish
|
|
97
|
-
environment:
|
|
98
|
-
name: release-test
|
|
99
|
-
url: https://test.pypi.org/project/coauthor/
|
|
100
|
-
variables:
|
|
101
|
-
PYPI_OIDC_AUD: testpypi
|
|
102
|
-
PYPI_OIDC_URL: https://test.pypi.org/_/oidc/mint-token
|
|
103
|
-
FLIT_INDEX_URL: https://test.pypi.org/legacy/
|
|
104
|
-
FLIT_USERNAME: __token__
|
|
105
|
-
|
|
106
|
-
test:
|
|
107
|
-
stage: test
|
|
108
|
-
services:
|
|
109
|
-
- docker:dind
|
|
110
|
-
script:
|
|
111
|
-
- git config --global user.email "you@example.com"
|
|
112
|
-
- git config --global user.name "Your Name"
|
|
113
|
-
- pip install . -r tests/requirements.txt
|
|
114
|
-
- pytest --cov
|
|
115
|
-
coverage: '/TOTAL\s+\d+\s+\d+\s+\d+\s+\d+\s+(\d+(?:\.\d+)?)\%$/'
|
|
116
|
-
# matrix:
|
|
117
|
-
# # - PYTHON_VERSION: 3.9 OS: "ubuntu"
|
|
118
|
-
# - PYTHON_VERSION: "3.10 OS: 'ubuntu'"
|
|
119
|
-
# # - PYTHON_VERSION: 3.11 OS: "ubuntu"
|
|
120
|
-
# # - PYTHON_VERSION: 3.12 OS: "ubuntu"
|
|
121
|
-
# # - PYTHON_VERSION: 3.13 OS: "ubuntu"
|
|
122
|
-
# # - PYTHON_VERSION: 3.14-dev OS: "ubuntu"
|
|
123
|
-
# parallel: 6
|
|
124
|
-
allow_failure: true
|
|
125
|
-
artifacts:
|
|
126
|
-
paths:
|
|
127
|
-
- coverage.xml
|
|
128
|
-
only:
|
|
129
|
-
- master
|
|
130
|
-
- tags
|
|
131
|
-
# coverage_report:
|
|
132
|
-
# stage: test
|
|
133
|
-
# script:
|
|
134
|
-
# - if [ "$CI_COMMIT_BRANCH" == "master" ] && [ "$PYTHON_VERSION" == "3.11" ] && [ "$OS" == "ubuntu" ]; then
|
|
135
|
-
# curl -s https://codecov.io/bash | bash;
|
|
136
|
-
# fi
|
|
137
|
-
|
|
138
|
-
# all-good:
|
|
139
|
-
# stage: deploy
|
|
140
|
-
# script:
|
|
141
|
-
# - echo "Great success!"
|
|
142
|
-
# when: on_success
|
|
143
|
-
|
|
144
|
-
# # publish:
|
|
145
|
-
# # stage: publish
|
|
146
|
-
# # # variables:
|
|
147
|
-
# # # TWINE_USERNAME: "__token__"
|
|
148
|
-
# # # TWINE_PASSWORD: "$PYPI_TOKEN"
|
|
149
|
-
# # script:
|
|
150
|
-
# # - python3 -m pip install flit
|
|
151
|
-
# # # - pip install .
|
|
152
|
-
# # - flit build
|
|
153
|
-
# # - flit publish
|
|
154
|
-
# # # only: # TODO enable
|
|
155
|
-
# # # - tags
|
|
156
|
-
|
|
157
|
-
gitlab-release:
|
|
158
|
-
stage: release
|
|
159
|
-
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
|
160
|
-
needs: [prepare]
|
|
161
|
-
before_script: []
|
|
162
|
-
script:
|
|
163
|
-
- echo "Create Coauthor release $C2_VERSION"
|
|
164
|
-
release:
|
|
165
|
-
name: Coauthor $C2_VERSION
|
|
166
|
-
description: "./CHANGELOG.md"
|
|
167
|
-
tag_name: $C2_VERSION
|
|
168
|
-
ref: $CI_COMMIT_SHA
|
|
169
|
-
when: manual
|
|
170
|
-
only:
|
|
171
|
-
- master
|
|
172
|
-
# assets:
|
|
173
|
-
# links:
|
|
174
|
-
# - name: coauthor
|
|
175
|
-
# url: https://galaxy.ansible.com/$C2_NAMESPACE/$C2_NAME
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|