Skip to content

Commit ecb5239

Browse files
committed
Bump dependency versions
Remove unused/old test files.
1 parent 350b909 commit ecb5239

11 files changed

+76
-38
lines changed

autogit/actions/_3_detect_tokens_and_api_versions.py

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
"""
2+
Action:
3+
- Parse domain names from provided list of repositories.
4+
- Detect known Access Tokens from environment variables.
5+
- Detect for each domain if it is Github or Gitlab and API version.
6+
- Detect which Access Token works with which domain.
7+
8+
9+
Returns:
10+
domains = {
11+
"<domain_name>": {
12+
"token": "<token>",
13+
"api_version": "<version>",
14+
"type": "Gitlab|Github",
15+
}
16+
}
17+
"""
18+
19+
from autogit.data_types import RepoState
20+
21+
22+
def get_tokens_and_api_versions(repos: dict[str, RepoState]) -> None:
23+
"""
24+
:return: domains = {
25+
"<domain_name>": {
26+
"token": "<token>",
27+
"api_version": "<version>",
28+
"type": "Gitlab|Github",
29+
}
30+
}
31+
"""
32+
# TODO: implement this part.
33+
34+
## TODO: add support for such API keys in environment:
35+
# 'GITLAB_ACCESS_TOKEN': '<GITLAB_ACCESS_TOKEN>',
36+
# 'GITLAB_OAUTH_TOKEN': '<GITLAB_ACCESS_TOKEN>',
37+
# 'GITLAB_TOKEN': '<GITLAB_ACCESS_TOKEN>',
38+
#
39+
# 'GITHUB_OAUTH_TOKEN': '<GITHUB_OAUTH_TOKEN>',
40+
# 'GITHUB_TOKEN': '<GITHUB_OAUTH_TOKEN>',
41+
# 'GITHUB_ACCESS_TOKEN': '<GITHUB_OAUTH_TOKEN>',
42+
#
43+
# 'GIT_TOKEN': '<GIT_TOKEN>',
44+
# 'GIT_ACCESS_TOKEN': '<GIT_TOKEN>',
45+
# 'GIT_OAUTH_TOKEN': '<GIT_TOKEN>',
46+
pass
47+
48+
49+
# curl --header "PRIVATE-TOKEN: personal-access-token" your-gitlab-url/api/v4/version
50+
51+
52+
53+
54+
55+

manual_tests/Makefile

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
1-
run: venv312
2-
venv312/bin/autogit --target-branch=target --clone-to=tmp -r repos.txt hello.py
3-
# venv312/bin/autogit --source-branch=source --target-branch=target --clone-to=tmp -r repos.txt hello.py
4-
# venv312/bin/autogit --clone-to=tmp -r repos.txt hello.py
5-
# venv312/bin/autogit -r repos.txt hello.py
1+
1: venv312
2+
autogit -r repos.txt add_hello_to_readme.py
3+
4+
2: venv312
5+
autogit -r repos.txt -m "Bump Python version 2" bump_python_version.py
66

7-
update:
8-
venv312/bin/pip uninstall autogit
9-
venv312/bin/pip install autogit
107

118
venv312:
129
python3.12 -m venv venv312
1310
venv312/bin/pip install autogit>=0.0.26
14-
15-
clean:
16-
rm -fr venv312

manual_tests/hello.py

Lines changed: 0 additions & 5 deletions
This file was deleted.

requirements-dev.txt

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ boolean-py==5.0
66
# via license-expression
77
cachecontrol==0.14.3
88
# via pip-audit
9-
certifi==2025.8.3
9+
certifi==2025.10.5
1010
# via
1111
# httpcore
1212
# httpx
@@ -31,7 +31,7 @@ defusedxml==0.7.1
3131
# via py-serializable
3232
distlib==0.4.0
3333
# via virtualenv
34-
filelock==3.19.1
34+
filelock==3.20.0
3535
# via
3636
# cachecontrol
3737
# virtualenv
@@ -83,7 +83,7 @@ more-itertools==10.8.0
8383
# via
8484
# jaraco-classes
8585
# jaraco-functools
86-
msgpack==1.1.1
86+
msgpack==1.1.2
8787
# via cachecontrol
8888
mypy==1.18.2
8989
# via autogit (pyproject.toml)
@@ -112,7 +112,7 @@ pip-audit==2.9.0
112112
# via autogit (pyproject.toml)
113113
pip-requirements-parser==32.0.1
114114
# via pip-audit
115-
platformdirs==4.4.0
115+
platformdirs==4.5.0
116116
# via
117117
# hatch
118118
# pip-audit
@@ -137,18 +137,21 @@ pyparsing==3.2.5
137137
pytest==8.4.2
138138
# via
139139
# autogit (pyproject.toml)
140+
# pytest-asyncio
140141
# pytest-cov
142+
pytest-asyncio==1.2.0
143+
# via autogit (pyproject.toml)
141144
pytest-cov==7.0.0
142145
# via autogit (pyproject.toml)
143146
requests==2.32.5
144147
# via
145148
# cachecontrol
146149
# pip-audit
147-
rich==14.1.0
150+
rich==14.2.0
148151
# via
149152
# hatch
150153
# pip-audit
151-
ruff==0.13.2
154+
ruff==0.14.0
152155
# via autogit (pyproject.toml)
153156
secretstorage==3.4.0
154157
# via keyring
@@ -162,7 +165,7 @@ sortedcontainers==2.4.0
162165
# via cyclonedx-python-lib
163166
toml==0.10.2
164167
# via pip-audit
165-
tomli==2.2.1
168+
tomli==2.3.0
166169
# via deadcode
167170
tomli-w==1.2.0
168171
# via hatch
@@ -174,13 +177,14 @@ typing-extensions==4.15.0
174177
# via
175178
# anyio
176179
# mypy
180+
# pytest-asyncio
177181
urllib3==2.5.0
178182
# via requests
179183
userpath==1.9.2
180184
# via hatch
181-
uv==0.8.22
185+
uv==0.9.2
182186
# via hatch
183-
virtualenv==20.34.0
187+
virtualenv==20.35.3
184188
# via hatch
185189
zstandard==0.25.0
186190
# via hatch

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# uv pip compile pyproject.toml -o requirements.txt
33
anyio==4.11.0
44
# via httpx
5-
certifi==2025.8.3
5+
certifi==2025.10.5
66
# via
77
# httpcore
88
# httpx

tests/actions/test_commit_and_push_changes.py

Whitespace-only changes.

tests/actions/test_create_branch.py

Whitespace-only changes.

tests/actions/test_create_pull_request.py

Whitespace-only changes.

tests/actions/test_run_command.py

Whitespace-only changes.

0 commit comments

Comments
 (0)