cgitize 6.0.4__tar.gz → 6.0.5__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.
- cgitize-6.0.5/.pylintrc +10 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/PKG-INFO +2 -3
- cgitize-6.0.5/cgitize/header.py +18 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/cgitize/main.py +2 -15
- {cgitize-6.0.4 → cgitize-6.0.5}/cgitize.egg-info/PKG-INFO +2 -3
- {cgitize-6.0.4 → cgitize-6.0.5}/cgitize.egg-info/SOURCES.txt +1 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/docker/Dockerfile +1 -1
- {cgitize-6.0.4 → cgitize-6.0.5}/pyproject.toml +5 -3
- cgitize-6.0.4/.pylintrc +0 -3
- {cgitize-6.0.4 → cgitize-6.0.5}/.dockerignore +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/.gitattributes +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/.github/dependabot.yml +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/.github/workflows/ci.yml +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/.github/workflows/maintenance.yml +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/.gitignore +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/.python-version +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/DEVELOPMENT.md +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/LICENSE.txt +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/Makefile +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/README.md +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/cgitize/__init__.py +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/cgitize/bitbucket.py +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/cgitize/cgit.py +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/cgitize/config.py +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/cgitize/git.py +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/cgitize/github.py +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/cgitize/gitlab.py +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/cgitize/repo.py +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/cgitize/utils.py +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/cgitize/version.py +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/cgitize.egg-info/dependency_links.txt +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/cgitize.egg-info/entry_points.txt +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/cgitize.egg-info/requires.txt +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/cgitize.egg-info/top_level.txt +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/docker/README.md +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/docker/cgitize.sh +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/docker/frontend/Dockerfile +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/docker/frontend/cmd.sh +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/docker/frontend/etc/cgit/common +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/docker/frontend/etc/cgitrc +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/docker/frontend/etc/nginx/conf.d/default.conf +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/docker/frontend/usr/lib/cgit/filters/about-formatting.sh +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/docker/frontend/usr/lib/cgit/filters/html-converters/.gitattributes +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/docker/frontend/usr/lib/cgit/filters/html-converters/md2html +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/docker/get_output_dir.py +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/docker/in_cron.sh +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/docker-compose.yml +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/docs/api.md +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/docs/auth.md +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/examples/cgitize.toml +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/examples/docker/cgitize.toml +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/prelude.mk +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/requirements.txt +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/setup.cfg +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/test/__init__.py +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/test/integration/docker/.dockerignore +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/test/integration/docker/cgitize/.gitignore +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/test/integration/docker/cgitize/etc/cgitize.toml +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/test/integration/docker/docker-compose.yml +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/test/integration/docker/git_server/Dockerfile +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/test/integration/docker/git_server/setup_repo.sh +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/test/integration/docker/test.sh +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/test/integration/example/test.sh +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/test/integration/local/test.sh +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/test/set_credentials.sh +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/test/unit/__init__.py +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/test/unit/test_bitbucket.py +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/test/unit/test_github.py +0 -0
- {cgitize-6.0.4 → cgitize-6.0.5}/test/unit/test_gitlab.py +0 -0
cgitize-6.0.5/.pylintrc
ADDED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cgitize
|
|
3
|
-
Version: 6.0.
|
|
3
|
+
Version: 6.0.5
|
|
4
4
|
Summary: Self-host your repositories using cgit
|
|
5
5
|
Author-email: Egor Tensin <egor@tensin.name>
|
|
6
|
-
License: MIT
|
|
6
|
+
License-Expression: MIT
|
|
7
7
|
Project-URL: Homepage, https://github.com/egor-tensin/cgitize
|
|
8
8
|
Project-URL: Bug Tracker, https://github.com/egor-tensin/cgitize/issues
|
|
9
9
|
Classifier: Development Status :: 5 - Production/Stable
|
|
10
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
11
10
|
Classifier: Programming Language :: Python :: 3
|
|
12
11
|
Classifier: Topic :: Software Development :: Version Control :: Git
|
|
13
12
|
Requires-Python: >=3.9
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Copyright (c) 2026 Egor Tensin <egor@tensin.name>
|
|
2
|
+
# This file is part of the "cgitize" project.
|
|
3
|
+
# For details, see https://github.com/egor-tensin/cgitize.
|
|
4
|
+
# Distributed under the MIT License.
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
def update(path, success, error=None):
|
|
8
|
+
with open(path, 'w') as file:
|
|
9
|
+
contents = ''
|
|
10
|
+
if not success:
|
|
11
|
+
contents = (
|
|
12
|
+
'''<p style="text-align: center; color: red; font-weight: bold;">'''
|
|
13
|
+
)
|
|
14
|
+
contents += '''Some repositories couldn't be updated, please check application logs for details.'''
|
|
15
|
+
if error is not None:
|
|
16
|
+
contents += f'''<br>{type(error).__name__}: {error}'''
|
|
17
|
+
contents += '''</p>\n'''
|
|
18
|
+
file.write(contents)
|
|
@@ -9,6 +9,7 @@ import sys
|
|
|
9
9
|
|
|
10
10
|
from cgitize.cgit import CGitRepositories, CGitServer
|
|
11
11
|
from cgitize.config import Config
|
|
12
|
+
from cgitize.header import update as update_header
|
|
12
13
|
from cgitize.utils import setup_logging
|
|
13
14
|
from cgitize.version import __version__
|
|
14
15
|
|
|
@@ -39,20 +40,6 @@ def parse_args(argv=None):
|
|
|
39
40
|
return parser.parse_args(argv)
|
|
40
41
|
|
|
41
42
|
|
|
42
|
-
def setup_error_header_file(error_header_path, success, error=None):
|
|
43
|
-
with open(error_header_path, 'w') as file:
|
|
44
|
-
contents = ''
|
|
45
|
-
if not success:
|
|
46
|
-
contents = (
|
|
47
|
-
'''<p style="text-align: center; color: red; font-weight: bold;">'''
|
|
48
|
-
)
|
|
49
|
-
contents += '''Some repositories couldn't be updated, please check application logs for details.'''
|
|
50
|
-
if error is not None:
|
|
51
|
-
contents += f'''<br>{type(error).__name__}: {error}'''
|
|
52
|
-
contents += '''</p>\n'''
|
|
53
|
-
file.write(contents)
|
|
54
|
-
|
|
55
|
-
|
|
56
43
|
def main(argv=None):
|
|
57
44
|
args = parse_args(argv)
|
|
58
45
|
with setup_logging(args.verbose):
|
|
@@ -79,7 +66,7 @@ def main(argv=None):
|
|
|
79
66
|
if error is not None:
|
|
80
67
|
logging.warning('Error: %s', error)
|
|
81
68
|
|
|
82
|
-
|
|
69
|
+
update_header(config.main.error_header_path, success, error)
|
|
83
70
|
return int(not success)
|
|
84
71
|
|
|
85
72
|
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cgitize
|
|
3
|
-
Version: 6.0.
|
|
3
|
+
Version: 6.0.5
|
|
4
4
|
Summary: Self-host your repositories using cgit
|
|
5
5
|
Author-email: Egor Tensin <egor@tensin.name>
|
|
6
|
-
License: MIT
|
|
6
|
+
License-Expression: MIT
|
|
7
7
|
Project-URL: Homepage, https://github.com/egor-tensin/cgitize
|
|
8
8
|
Project-URL: Bug Tracker, https://github.com/egor-tensin/cgitize/issues
|
|
9
9
|
Classifier: Development Status :: 5 - Production/Stable
|
|
10
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
11
10
|
Classifier: Programming Language :: Python :: 3
|
|
12
11
|
Classifier: Topic :: Software Development :: Version Control :: Git
|
|
13
12
|
Requires-Python: >=3.9
|
|
@@ -37,7 +37,7 @@ ENV PYTHONPATH="/deps:/usr/src"
|
|
|
37
37
|
|
|
38
38
|
ARG ssh_sock_dir=/
|
|
39
39
|
ARG ssh_sock_path="$ssh_sock_dir/ssh-agent.sock"
|
|
40
|
-
ENV SSH_AUTH_SOCK
|
|
40
|
+
ENV SSH_AUTH_SOCK="$ssh_sock_path"
|
|
41
41
|
|
|
42
42
|
COPY ["docker/cgitize.sh", "/"]
|
|
43
43
|
COPY ["docker/get_output_dir.py", "/"]
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
[build-system]
|
|
2
|
-
|
|
2
|
+
# The SPDX license identifiers are available from 77.0.3:
|
|
3
|
+
# https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license-and-license-files
|
|
4
|
+
requires = ["setuptools >= 77.0.3", "setuptools-scm"]
|
|
3
5
|
build-backend = "setuptools.build_meta"
|
|
4
6
|
|
|
5
7
|
[project]
|
|
6
8
|
name = "cgitize"
|
|
7
9
|
description = "Self-host your repositories using cgit"
|
|
8
|
-
license =
|
|
10
|
+
license = "MIT"
|
|
11
|
+
license-files = ["LICENSE.txt"]
|
|
9
12
|
dynamic = ["version"]
|
|
10
13
|
authors = [{name = "Egor Tensin", email = "egor@tensin.name"}]
|
|
11
14
|
readme = "README.md"
|
|
@@ -21,7 +24,6 @@ dependencies = [
|
|
|
21
24
|
|
|
22
25
|
classifiers = [
|
|
23
26
|
"Development Status :: 5 - Production/Stable",
|
|
24
|
-
"License :: OSI Approved :: MIT License",
|
|
25
27
|
"Programming Language :: Python :: 3",
|
|
26
28
|
"Topic :: Software Development :: Version Control :: Git",
|
|
27
29
|
]
|
cgitize-6.0.4/.pylintrc
DELETED
|
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
|
{cgitize-6.0.4 → cgitize-6.0.5}/docker/frontend/usr/lib/cgit/filters/html-converters/.gitattributes
RENAMED
|
File without changes
|
{cgitize-6.0.4 → cgitize-6.0.5}/docker/frontend/usr/lib/cgit/filters/html-converters/md2html
RENAMED
|
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
|