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.
- {cgitize-8.0.0 → cgitize-8.0.1}/.github/dependabot.yml +1 -4
- {cgitize-8.0.0 → cgitize-8.0.1}/.github/workflows/ci.yml +7 -6
- {cgitize-8.0.0 → cgitize-8.0.1}/.github/workflows/maintenance.yml +3 -2
- {cgitize-8.0.0 → cgitize-8.0.1}/PKG-INFO +1 -1
- {cgitize-8.0.0 → cgitize-8.0.1}/cgitize/utils.py +13 -3
- {cgitize-8.0.0 → cgitize-8.0.1}/cgitize.egg-info/PKG-INFO +1 -1
- {cgitize-8.0.0 → cgitize-8.0.1}/cgitize.egg-info/SOURCES.txt +2 -0
- cgitize-8.0.1/cgitize.egg-info/scm_file_list.json +64 -0
- cgitize-8.0.1/cgitize.egg-info/scm_version.json +8 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/requirements.txt +2 -2
- {cgitize-8.0.0 → cgitize-8.0.1}/test/integration/docker/git_server/Dockerfile +1 -1
- {cgitize-8.0.0 → cgitize-8.0.1}/.dockerignore +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/.gitattributes +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/.gitignore +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/.pylintrc +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/.python-version +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/DEVELOPMENT.md +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/LICENSE.txt +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/Makefile +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/README.md +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/cgitize/__init__.py +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/cgitize/bitbucket.py +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/cgitize/cgit.py +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/cgitize/config.py +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/cgitize/git.py +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/cgitize/github.py +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/cgitize/gitlab.py +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/cgitize/header.py +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/cgitize/main.py +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/cgitize/repo.py +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/cgitize/version.py +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/cgitize.egg-info/dependency_links.txt +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/cgitize.egg-info/entry_points.txt +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/cgitize.egg-info/requires.txt +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/cgitize.egg-info/top_level.txt +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/docker/Dockerfile +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/docker/README.md +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/docker/cgitize.sh +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/docker/frontend/Dockerfile +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/docker/frontend/cmd.sh +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/docker/frontend/etc/cgit/common +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/docker/frontend/etc/cgitrc +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/docker/frontend/etc/nginx/conf.d/default.conf +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/docker/frontend/usr/lib/cgit/filters/about-formatting.sh +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/docker/frontend/usr/lib/cgit/filters/html-converters/.gitattributes +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/docker/frontend/usr/lib/cgit/filters/html-converters/md2html +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/docker/get_output_dir.py +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/docker/in_cron.sh +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/docker-compose.yml +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/docs/api.md +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/docs/auth.md +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/examples/cgitize.toml +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/examples/docker/cgitize.toml +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/prelude.mk +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/pyproject.toml +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/setup.cfg +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/test/__init__.py +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/test/integration/docker/.dockerignore +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/test/integration/docker/cgitize/.gitignore +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/test/integration/docker/cgitize/etc/cgitize.toml +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/test/integration/docker/docker-compose.yml +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/test/integration/docker/git_server/setup_repo.sh +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/test/integration/docker/test.sh +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/test/integration/example/test.sh +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/test/integration/local/test.sh +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/test/set_credentials.sh +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/test/unit/__init__.py +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/test/unit/test_bitbucket.py +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/test/unit/test_github.py +0 -0
- {cgitize-8.0.0 → cgitize-8.0.1}/test/unit/test_gitlab.py +0 -0
|
@@ -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@
|
|
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@
|
|
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@
|
|
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@
|
|
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@
|
|
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@
|
|
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@
|
|
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:
|
|
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
|
|
@@ -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)
|
|
31
|
+
format='%(asctime)s | %(levelname)4s | %(message)s',
|
|
22
32
|
# Log to stdout, because that's where subprocess's output goes (so that
|
|
23
|
-
#
|
|
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
|
-
|
|
40
|
+
sys.exit(1)
|
|
31
41
|
|
|
32
42
|
|
|
33
43
|
def run(*args, capture_output=False, **kwargs):
|
|
@@ -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
|
+
}
|
|
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-8.0.0 → cgitize-8.0.1}/docker/frontend/usr/lib/cgit/filters/html-converters/.gitattributes
RENAMED
|
File without changes
|
{cgitize-8.0.0 → cgitize-8.0.1}/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
|