cgitize 8.0.0__tar.gz → 8.0.1__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.
Files changed (70) hide show
  1. {cgitize-8.0.0 → cgitize-8.0.1}/.github/dependabot.yml +1 -4
  2. {cgitize-8.0.0 → cgitize-8.0.1}/.github/workflows/ci.yml +7 -6
  3. {cgitize-8.0.0 → cgitize-8.0.1}/.github/workflows/maintenance.yml +3 -2
  4. {cgitize-8.0.0 → cgitize-8.0.1}/PKG-INFO +1 -1
  5. {cgitize-8.0.0 → cgitize-8.0.1}/cgitize/utils.py +13 -3
  6. {cgitize-8.0.0 → cgitize-8.0.1}/cgitize.egg-info/PKG-INFO +1 -1
  7. {cgitize-8.0.0 → cgitize-8.0.1}/cgitize.egg-info/SOURCES.txt +2 -0
  8. cgitize-8.0.1/cgitize.egg-info/scm_file_list.json +64 -0
  9. cgitize-8.0.1/cgitize.egg-info/scm_version.json +8 -0
  10. {cgitize-8.0.0 → cgitize-8.0.1}/requirements.txt +2 -2
  11. {cgitize-8.0.0 → cgitize-8.0.1}/test/integration/docker/git_server/Dockerfile +1 -1
  12. {cgitize-8.0.0 → cgitize-8.0.1}/.dockerignore +0 -0
  13. {cgitize-8.0.0 → cgitize-8.0.1}/.gitattributes +0 -0
  14. {cgitize-8.0.0 → cgitize-8.0.1}/.gitignore +0 -0
  15. {cgitize-8.0.0 → cgitize-8.0.1}/.pylintrc +0 -0
  16. {cgitize-8.0.0 → cgitize-8.0.1}/.python-version +0 -0
  17. {cgitize-8.0.0 → cgitize-8.0.1}/DEVELOPMENT.md +0 -0
  18. {cgitize-8.0.0 → cgitize-8.0.1}/LICENSE.txt +0 -0
  19. {cgitize-8.0.0 → cgitize-8.0.1}/Makefile +0 -0
  20. {cgitize-8.0.0 → cgitize-8.0.1}/README.md +0 -0
  21. {cgitize-8.0.0 → cgitize-8.0.1}/cgitize/__init__.py +0 -0
  22. {cgitize-8.0.0 → cgitize-8.0.1}/cgitize/bitbucket.py +0 -0
  23. {cgitize-8.0.0 → cgitize-8.0.1}/cgitize/cgit.py +0 -0
  24. {cgitize-8.0.0 → cgitize-8.0.1}/cgitize/config.py +0 -0
  25. {cgitize-8.0.0 → cgitize-8.0.1}/cgitize/git.py +0 -0
  26. {cgitize-8.0.0 → cgitize-8.0.1}/cgitize/github.py +0 -0
  27. {cgitize-8.0.0 → cgitize-8.0.1}/cgitize/gitlab.py +0 -0
  28. {cgitize-8.0.0 → cgitize-8.0.1}/cgitize/header.py +0 -0
  29. {cgitize-8.0.0 → cgitize-8.0.1}/cgitize/main.py +0 -0
  30. {cgitize-8.0.0 → cgitize-8.0.1}/cgitize/repo.py +0 -0
  31. {cgitize-8.0.0 → cgitize-8.0.1}/cgitize/version.py +0 -0
  32. {cgitize-8.0.0 → cgitize-8.0.1}/cgitize.egg-info/dependency_links.txt +0 -0
  33. {cgitize-8.0.0 → cgitize-8.0.1}/cgitize.egg-info/entry_points.txt +0 -0
  34. {cgitize-8.0.0 → cgitize-8.0.1}/cgitize.egg-info/requires.txt +0 -0
  35. {cgitize-8.0.0 → cgitize-8.0.1}/cgitize.egg-info/top_level.txt +0 -0
  36. {cgitize-8.0.0 → cgitize-8.0.1}/docker/Dockerfile +0 -0
  37. {cgitize-8.0.0 → cgitize-8.0.1}/docker/README.md +0 -0
  38. {cgitize-8.0.0 → cgitize-8.0.1}/docker/cgitize.sh +0 -0
  39. {cgitize-8.0.0 → cgitize-8.0.1}/docker/frontend/Dockerfile +0 -0
  40. {cgitize-8.0.0 → cgitize-8.0.1}/docker/frontend/cmd.sh +0 -0
  41. {cgitize-8.0.0 → cgitize-8.0.1}/docker/frontend/etc/cgit/common +0 -0
  42. {cgitize-8.0.0 → cgitize-8.0.1}/docker/frontend/etc/cgitrc +0 -0
  43. {cgitize-8.0.0 → cgitize-8.0.1}/docker/frontend/etc/nginx/conf.d/default.conf +0 -0
  44. {cgitize-8.0.0 → cgitize-8.0.1}/docker/frontend/usr/lib/cgit/filters/about-formatting.sh +0 -0
  45. {cgitize-8.0.0 → cgitize-8.0.1}/docker/frontend/usr/lib/cgit/filters/html-converters/.gitattributes +0 -0
  46. {cgitize-8.0.0 → cgitize-8.0.1}/docker/frontend/usr/lib/cgit/filters/html-converters/md2html +0 -0
  47. {cgitize-8.0.0 → cgitize-8.0.1}/docker/get_output_dir.py +0 -0
  48. {cgitize-8.0.0 → cgitize-8.0.1}/docker/in_cron.sh +0 -0
  49. {cgitize-8.0.0 → cgitize-8.0.1}/docker-compose.yml +0 -0
  50. {cgitize-8.0.0 → cgitize-8.0.1}/docs/api.md +0 -0
  51. {cgitize-8.0.0 → cgitize-8.0.1}/docs/auth.md +0 -0
  52. {cgitize-8.0.0 → cgitize-8.0.1}/examples/cgitize.toml +0 -0
  53. {cgitize-8.0.0 → cgitize-8.0.1}/examples/docker/cgitize.toml +0 -0
  54. {cgitize-8.0.0 → cgitize-8.0.1}/prelude.mk +0 -0
  55. {cgitize-8.0.0 → cgitize-8.0.1}/pyproject.toml +0 -0
  56. {cgitize-8.0.0 → cgitize-8.0.1}/setup.cfg +0 -0
  57. {cgitize-8.0.0 → cgitize-8.0.1}/test/__init__.py +0 -0
  58. {cgitize-8.0.0 → cgitize-8.0.1}/test/integration/docker/.dockerignore +0 -0
  59. {cgitize-8.0.0 → cgitize-8.0.1}/test/integration/docker/cgitize/.gitignore +0 -0
  60. {cgitize-8.0.0 → cgitize-8.0.1}/test/integration/docker/cgitize/etc/cgitize.toml +0 -0
  61. {cgitize-8.0.0 → cgitize-8.0.1}/test/integration/docker/docker-compose.yml +0 -0
  62. {cgitize-8.0.0 → cgitize-8.0.1}/test/integration/docker/git_server/setup_repo.sh +0 -0
  63. {cgitize-8.0.0 → cgitize-8.0.1}/test/integration/docker/test.sh +0 -0
  64. {cgitize-8.0.0 → cgitize-8.0.1}/test/integration/example/test.sh +0 -0
  65. {cgitize-8.0.0 → cgitize-8.0.1}/test/integration/local/test.sh +0 -0
  66. {cgitize-8.0.0 → cgitize-8.0.1}/test/set_credentials.sh +0 -0
  67. {cgitize-8.0.0 → cgitize-8.0.1}/test/unit/__init__.py +0 -0
  68. {cgitize-8.0.0 → cgitize-8.0.1}/test/unit/test_bitbucket.py +0 -0
  69. {cgitize-8.0.0 → cgitize-8.0.1}/test/unit/test_github.py +0 -0
  70. {cgitize-8.0.0 → cgitize-8.0.1}/test/unit/test_gitlab.py +0 -0
@@ -14,7 +14,4 @@ updates:
14
14
  directory: /
15
15
  schedule:
16
16
  interval: weekly
17
- - package-ecosystem: pip
18
- directory: /
19
- schedule:
20
- interval: weekly
17
+ # No pip, because it's automated in the maintenance workflow anyway.
@@ -10,9 +10,10 @@ jobs:
10
10
  lint:
11
11
  runs-on: ubuntu-latest
12
12
  name: Linting
13
+ continue-on-error: "${{ github.ref != 'refs/heads/master' }}"
13
14
  steps:
14
15
  - name: Checkout
15
- uses: actions/checkout@v6
16
+ uses: actions/checkout@v7
16
17
  - name: Set up Python
17
18
  uses: actions/setup-python@v6
18
19
  with:
@@ -35,7 +36,7 @@ jobs:
35
36
  CGITIZE_GITLAB_TOKEN: '${{ secrets.CGITIZE_GITLAB_TOKEN }}'
36
37
  steps:
37
38
  - name: Checkout
38
- uses: actions/checkout@v6
39
+ uses: actions/checkout@v7
39
40
  with:
40
41
  fetch-depth: 0
41
42
  - name: Set up Python
@@ -55,7 +56,7 @@ jobs:
55
56
  name: 'Test / Docker'
56
57
  steps:
57
58
  - name: Checkout
58
- uses: actions/checkout@v6
59
+ uses: actions/checkout@v7
59
60
  - name: Integration test (Docker)
60
61
  run: sudo make test/docker
61
62
 
@@ -72,7 +73,7 @@ jobs:
72
73
  CGITIZE_GITLAB_TOKEN: '${{ secrets.CGITIZE_GITLAB_TOKEN }}'
73
74
  steps:
74
75
  - name: Checkout
75
- uses: actions/checkout@v6
76
+ uses: actions/checkout@v7
76
77
  - name: Set up Python
77
78
  uses: actions/setup-python@v6
78
79
  with:
@@ -98,7 +99,7 @@ jobs:
98
99
  name: 'Publish / Docker Hub / ${{ matrix.service }}'
99
100
  steps:
100
101
  - name: Checkout
101
- uses: actions/checkout@v6
102
+ uses: actions/checkout@v7
102
103
  # https://github.com/docker/metadata-action#semver
103
104
  - id: meta
104
105
  name: Docker Hub metadata
@@ -153,7 +154,7 @@ jobs:
153
154
  name: 'Publish / PyPI'
154
155
  steps:
155
156
  - name: Checkout
156
- uses: actions/checkout@v6
157
+ uses: actions/checkout@v7
157
158
  with:
158
159
  fetch-depth: 0
159
160
  - name: Set up Python
@@ -12,10 +12,11 @@ jobs:
12
12
  name: Maintenance
13
13
  steps:
14
14
  - name: Checkout
15
- uses: actions/checkout@v6
15
+ uses: actions/checkout@v7
16
16
  with:
17
17
  # I think that by default, pushes don't trigger other workflows, and
18
- # you need a separate token for that: https://github.com/orgs/community/discussions/37103
18
+ # you need a separate token for that:
19
+ # https://docs.github.com/en/actions/how-tos/write-workflows/choose-when-workflows-run/trigger-a-workflow#triggering-a-workflow-from-a-workflow
19
20
  token: '${{ secrets.GH_TOKEN }}'
20
21
  - name: Set up ssh-agent
21
22
  uses: webfactory/ssh-agent@v0.10.0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cgitize
3
- Version: 8.0.0
3
+ Version: 8.0.1
4
4
  Summary: Self-host your repositories using cgit
5
5
  Author-email: Egor Tensin <egor@tensin.name>
6
6
  License-Expression: MIT
@@ -14,20 +14,30 @@ from urllib.parse import quote, urlsplit, urlunsplit
14
14
 
15
15
  @contextmanager
16
16
  def setup_logging(verbose=False):
17
+ level_names = {
18
+ logging.DEBUG: 'DBG',
19
+ logging.INFO: 'INFO',
20
+ logging.WARNING: 'WARN',
21
+ logging.ERROR: 'ERR',
22
+ logging.CRITICAL: 'CRIT',
23
+ }
24
+ for lvl, name in level_names.items():
25
+ logging.addLevelName(lvl, name)
26
+
17
27
  level = logging.DEBUG if verbose else logging.INFO
18
28
  logging.basicConfig(
19
29
  level=level,
20
30
  datefmt='%Y-%m-%d %H:%M:%S%z',
21
- format='%(asctime)s | %(levelname)s | %(message)s',
31
+ format='%(asctime)s | %(levelname)4s | %(message)s',
22
32
  # Log to stdout, because that's where subprocess's output goes (so that
23
- # the don't get interleaved).
33
+ # they don't get interleaved).
24
34
  stream=sys.stdout,
25
35
  )
26
36
  try:
27
37
  yield
28
38
  except Exception as e:
29
39
  logging.exception(e)
30
- raise
40
+ sys.exit(1)
31
41
 
32
42
 
33
43
  def run(*args, capture_output=False, **kwargs):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cgitize
3
- Version: 8.0.0
3
+ Version: 8.0.1
4
4
  Summary: Self-host your repositories using cgit
5
5
  Author-email: Egor Tensin <egor@tensin.name>
6
6
  License-Expression: MIT
@@ -31,6 +31,8 @@ cgitize.egg-info/SOURCES.txt
31
31
  cgitize.egg-info/dependency_links.txt
32
32
  cgitize.egg-info/entry_points.txt
33
33
  cgitize.egg-info/requires.txt
34
+ cgitize.egg-info/scm_file_list.json
35
+ cgitize.egg-info/scm_version.json
34
36
  cgitize.egg-info/top_level.txt
35
37
  docker/Dockerfile
36
38
  docker/README.md
@@ -0,0 +1,64 @@
1
+ {
2
+ "files": [
3
+ "README.md",
4
+ "Makefile",
5
+ ".python-version",
6
+ "LICENSE.txt",
7
+ "prelude.mk",
8
+ "pyproject.toml",
9
+ "requirements.txt",
10
+ ".dockerignore",
11
+ ".gitattributes",
12
+ ".pylintrc",
13
+ ".gitignore",
14
+ "docker-compose.yml",
15
+ "DEVELOPMENT.md",
16
+ "docs/auth.md",
17
+ "docs/api.md",
18
+ "cgitize/bitbucket.py",
19
+ "cgitize/gitlab.py",
20
+ "cgitize/__init__.py",
21
+ "cgitize/git.py",
22
+ "cgitize/version.py",
23
+ "cgitize/config.py",
24
+ "cgitize/utils.py",
25
+ "cgitize/header.py",
26
+ "cgitize/repo.py",
27
+ "cgitize/cgit.py",
28
+ "cgitize/main.py",
29
+ "cgitize/github.py",
30
+ "test/__init__.py",
31
+ "test/set_credentials.sh",
32
+ "test/integration/example/test.sh",
33
+ "test/integration/docker/.dockerignore",
34
+ "test/integration/docker/test.sh",
35
+ "test/integration/docker/docker-compose.yml",
36
+ "test/integration/docker/cgitize/.gitignore",
37
+ "test/integration/docker/cgitize/etc/cgitize.toml",
38
+ "test/integration/docker/git_server/Dockerfile",
39
+ "test/integration/docker/git_server/setup_repo.sh",
40
+ "test/integration/local/test.sh",
41
+ "test/unit/__init__.py",
42
+ "test/unit/test_gitlab.py",
43
+ "test/unit/test_bitbucket.py",
44
+ "test/unit/test_github.py",
45
+ "docker/README.md",
46
+ "docker/get_output_dir.py",
47
+ "docker/Dockerfile",
48
+ "docker/cgitize.sh",
49
+ "docker/in_cron.sh",
50
+ "docker/frontend/Dockerfile",
51
+ "docker/frontend/cmd.sh",
52
+ "docker/frontend/usr/lib/cgit/filters/about-formatting.sh",
53
+ "docker/frontend/usr/lib/cgit/filters/html-converters/md2html",
54
+ "docker/frontend/usr/lib/cgit/filters/html-converters/.gitattributes",
55
+ "docker/frontend/etc/cgitrc",
56
+ "docker/frontend/etc/nginx/conf.d/default.conf",
57
+ "docker/frontend/etc/cgit/common",
58
+ "examples/cgitize.toml",
59
+ "examples/docker/cgitize.toml",
60
+ ".github/dependabot.yml",
61
+ ".github/workflows/maintenance.yml",
62
+ ".github/workflows/ci.yml"
63
+ ]
64
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "tag": "8.0.1",
3
+ "distance": 0,
4
+ "node": "g05044361ec94a24dc370196e5234b0292cfefe96",
5
+ "dirty": false,
6
+ "branch": "HEAD",
7
+ "node_date": "2026-06-23"
8
+ }
@@ -1,9 +1,9 @@
1
1
  atlassian-python-api==4.0.7
2
2
  beautifulsoup4==4.15.0
3
- certifi==2026.5.20
3
+ certifi==2026.6.17
4
4
  cffi==2.0.0
5
5
  charset-normalizer==3.4.7
6
- cryptography==48.0.0
6
+ cryptography==49.0.0
7
7
  Deprecated==1.3.1
8
8
  idna==3.18
9
9
  jmespath==1.1.0
@@ -1,4 +1,4 @@
1
- FROM alpine:3.23
1
+ FROM alpine:3.24
2
2
 
3
3
  RUN apk add -q --no-cache bash git openssh-server tini && \
4
4
  echo 'root:root' | chpasswd && \
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