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.
Files changed (69) hide show
  1. cgitize-6.0.5/.pylintrc +10 -0
  2. {cgitize-6.0.4 → cgitize-6.0.5}/PKG-INFO +2 -3
  3. cgitize-6.0.5/cgitize/header.py +18 -0
  4. {cgitize-6.0.4 → cgitize-6.0.5}/cgitize/main.py +2 -15
  5. {cgitize-6.0.4 → cgitize-6.0.5}/cgitize.egg-info/PKG-INFO +2 -3
  6. {cgitize-6.0.4 → cgitize-6.0.5}/cgitize.egg-info/SOURCES.txt +1 -0
  7. {cgitize-6.0.4 → cgitize-6.0.5}/docker/Dockerfile +1 -1
  8. {cgitize-6.0.4 → cgitize-6.0.5}/pyproject.toml +5 -3
  9. cgitize-6.0.4/.pylintrc +0 -3
  10. {cgitize-6.0.4 → cgitize-6.0.5}/.dockerignore +0 -0
  11. {cgitize-6.0.4 → cgitize-6.0.5}/.gitattributes +0 -0
  12. {cgitize-6.0.4 → cgitize-6.0.5}/.github/dependabot.yml +0 -0
  13. {cgitize-6.0.4 → cgitize-6.0.5}/.github/workflows/ci.yml +0 -0
  14. {cgitize-6.0.4 → cgitize-6.0.5}/.github/workflows/maintenance.yml +0 -0
  15. {cgitize-6.0.4 → cgitize-6.0.5}/.gitignore +0 -0
  16. {cgitize-6.0.4 → cgitize-6.0.5}/.python-version +0 -0
  17. {cgitize-6.0.4 → cgitize-6.0.5}/DEVELOPMENT.md +0 -0
  18. {cgitize-6.0.4 → cgitize-6.0.5}/LICENSE.txt +0 -0
  19. {cgitize-6.0.4 → cgitize-6.0.5}/Makefile +0 -0
  20. {cgitize-6.0.4 → cgitize-6.0.5}/README.md +0 -0
  21. {cgitize-6.0.4 → cgitize-6.0.5}/cgitize/__init__.py +0 -0
  22. {cgitize-6.0.4 → cgitize-6.0.5}/cgitize/bitbucket.py +0 -0
  23. {cgitize-6.0.4 → cgitize-6.0.5}/cgitize/cgit.py +0 -0
  24. {cgitize-6.0.4 → cgitize-6.0.5}/cgitize/config.py +0 -0
  25. {cgitize-6.0.4 → cgitize-6.0.5}/cgitize/git.py +0 -0
  26. {cgitize-6.0.4 → cgitize-6.0.5}/cgitize/github.py +0 -0
  27. {cgitize-6.0.4 → cgitize-6.0.5}/cgitize/gitlab.py +0 -0
  28. {cgitize-6.0.4 → cgitize-6.0.5}/cgitize/repo.py +0 -0
  29. {cgitize-6.0.4 → cgitize-6.0.5}/cgitize/utils.py +0 -0
  30. {cgitize-6.0.4 → cgitize-6.0.5}/cgitize/version.py +0 -0
  31. {cgitize-6.0.4 → cgitize-6.0.5}/cgitize.egg-info/dependency_links.txt +0 -0
  32. {cgitize-6.0.4 → cgitize-6.0.5}/cgitize.egg-info/entry_points.txt +0 -0
  33. {cgitize-6.0.4 → cgitize-6.0.5}/cgitize.egg-info/requires.txt +0 -0
  34. {cgitize-6.0.4 → cgitize-6.0.5}/cgitize.egg-info/top_level.txt +0 -0
  35. {cgitize-6.0.4 → cgitize-6.0.5}/docker/README.md +0 -0
  36. {cgitize-6.0.4 → cgitize-6.0.5}/docker/cgitize.sh +0 -0
  37. {cgitize-6.0.4 → cgitize-6.0.5}/docker/frontend/Dockerfile +0 -0
  38. {cgitize-6.0.4 → cgitize-6.0.5}/docker/frontend/cmd.sh +0 -0
  39. {cgitize-6.0.4 → cgitize-6.0.5}/docker/frontend/etc/cgit/common +0 -0
  40. {cgitize-6.0.4 → cgitize-6.0.5}/docker/frontend/etc/cgitrc +0 -0
  41. {cgitize-6.0.4 → cgitize-6.0.5}/docker/frontend/etc/nginx/conf.d/default.conf +0 -0
  42. {cgitize-6.0.4 → cgitize-6.0.5}/docker/frontend/usr/lib/cgit/filters/about-formatting.sh +0 -0
  43. {cgitize-6.0.4 → cgitize-6.0.5}/docker/frontend/usr/lib/cgit/filters/html-converters/.gitattributes +0 -0
  44. {cgitize-6.0.4 → cgitize-6.0.5}/docker/frontend/usr/lib/cgit/filters/html-converters/md2html +0 -0
  45. {cgitize-6.0.4 → cgitize-6.0.5}/docker/get_output_dir.py +0 -0
  46. {cgitize-6.0.4 → cgitize-6.0.5}/docker/in_cron.sh +0 -0
  47. {cgitize-6.0.4 → cgitize-6.0.5}/docker-compose.yml +0 -0
  48. {cgitize-6.0.4 → cgitize-6.0.5}/docs/api.md +0 -0
  49. {cgitize-6.0.4 → cgitize-6.0.5}/docs/auth.md +0 -0
  50. {cgitize-6.0.4 → cgitize-6.0.5}/examples/cgitize.toml +0 -0
  51. {cgitize-6.0.4 → cgitize-6.0.5}/examples/docker/cgitize.toml +0 -0
  52. {cgitize-6.0.4 → cgitize-6.0.5}/prelude.mk +0 -0
  53. {cgitize-6.0.4 → cgitize-6.0.5}/requirements.txt +0 -0
  54. {cgitize-6.0.4 → cgitize-6.0.5}/setup.cfg +0 -0
  55. {cgitize-6.0.4 → cgitize-6.0.5}/test/__init__.py +0 -0
  56. {cgitize-6.0.4 → cgitize-6.0.5}/test/integration/docker/.dockerignore +0 -0
  57. {cgitize-6.0.4 → cgitize-6.0.5}/test/integration/docker/cgitize/.gitignore +0 -0
  58. {cgitize-6.0.4 → cgitize-6.0.5}/test/integration/docker/cgitize/etc/cgitize.toml +0 -0
  59. {cgitize-6.0.4 → cgitize-6.0.5}/test/integration/docker/docker-compose.yml +0 -0
  60. {cgitize-6.0.4 → cgitize-6.0.5}/test/integration/docker/git_server/Dockerfile +0 -0
  61. {cgitize-6.0.4 → cgitize-6.0.5}/test/integration/docker/git_server/setup_repo.sh +0 -0
  62. {cgitize-6.0.4 → cgitize-6.0.5}/test/integration/docker/test.sh +0 -0
  63. {cgitize-6.0.4 → cgitize-6.0.5}/test/integration/example/test.sh +0 -0
  64. {cgitize-6.0.4 → cgitize-6.0.5}/test/integration/local/test.sh +0 -0
  65. {cgitize-6.0.4 → cgitize-6.0.5}/test/set_credentials.sh +0 -0
  66. {cgitize-6.0.4 → cgitize-6.0.5}/test/unit/__init__.py +0 -0
  67. {cgitize-6.0.4 → cgitize-6.0.5}/test/unit/test_bitbucket.py +0 -0
  68. {cgitize-6.0.4 → cgitize-6.0.5}/test/unit/test_github.py +0 -0
  69. {cgitize-6.0.4 → cgitize-6.0.5}/test/unit/test_gitlab.py +0 -0
@@ -0,0 +1,10 @@
1
+ [MAIN]
2
+ # Enable Pylint to be run in the venv:
3
+ init-hook=
4
+ try: import pylint_venv
5
+ except ImportError: pass
6
+ else: pylint_venv.inithook()
7
+
8
+ [MESSAGES CONTROL]
9
+
10
+ disable=invalid-name,missing-docstring,too-few-public-methods,too-many-arguments
@@ -1,13 +1,12 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cgitize
3
- Version: 6.0.4
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
- setup_error_header_file(config.main.error_header_path, success, error)
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.4
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
@@ -21,6 +21,7 @@ cgitize/config.py
21
21
  cgitize/git.py
22
22
  cgitize/github.py
23
23
  cgitize/gitlab.py
24
+ cgitize/header.py
24
25
  cgitize/main.py
25
26
  cgitize/repo.py
26
27
  cgitize/utils.py
@@ -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 "$ssh_sock_path"
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
- requires = ["setuptools>=61.0", "setuptools-scm"]
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 = {text = "MIT"}
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
@@ -1,3 +0,0 @@
1
- [MESSAGES CONTROL]
2
-
3
- disable=invalid-name,missing-docstring,too-few-public-methods,too-many-arguments
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