Commit 0e5b08ab authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

Merge branch 'fix/exclude-shared-projects' into 'main'

fix: exclude shared projects

See merge request to-be-continuous/tools/gitlab-cp!93
parents 8d39b7ab 4715851e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -877,7 +877,7 @@ class Synchronizer:
        self.sync_avatar(src_group, dest_group)

        # 3: sync sub-projects
        subprojects = src_group.projects.list(all=True)
        subprojects = src_group.projects.list(all=True, with_shared=False)
        print(f"- sync {len(subprojects)} sub projects...")
        for src_project in subprojects:
            if not self.is_included(src_project.path_with_namespace):
+6 −6
Original line number Diff line number Diff line
@@ -618,23 +618,23 @@ files = [

[[package]]
name = "urllib3"
version = "2.5.0"
version = "2.6.3"
description = "HTTP library with thread-safe connection pooling, file post, and more."
optional = false
python-versions = ">=3.9"
groups = ["main"]
files = [
    {file = "urllib3-2.5.0-py3-none-any.whl", hash = "sha256:e6b01673c0fa6a13e374b50871808eb3bf7046c4b125b216f6bf1cc604cff0dc"},
    {file = "urllib3-2.5.0.tar.gz", hash = "sha256:3fc47733c7e419d4bc3f6b3dc2b4f890bb743906a30d56ba4a5bfa4bbff92760"},
    {file = "urllib3-2.6.3-py3-none-any.whl", hash = "sha256:bf272323e553dfb2e87d9bfd225ca7b0f467b919d7bbd355436d3fd37cb0acd4"},
    {file = "urllib3-2.6.3.tar.gz", hash = "sha256:1b62b6884944a57dbe321509ab94fd4d3b307075e0c2eae991ac71ee15ad38ed"},
]

[package.extras]
brotli = ["brotli (>=1.0.9) ; platform_python_implementation == \"CPython\"", "brotlicffi (>=0.8.0) ; platform_python_implementation != \"CPython\""]
brotli = ["brotli (>=1.2.0) ; platform_python_implementation == \"CPython\"", "brotlicffi (>=1.2.0.0) ; platform_python_implementation != \"CPython\""]
h2 = ["h2 (>=4,<5)"]
socks = ["pysocks (>=1.5.6,!=1.5.7,<2.0)"]
zstd = ["zstandard (>=0.18.0)"]
zstd = ["backports-zstd (>=1.0.0) ; python_version < \"3.14\""]

[metadata]
lock-version = "2.1"
python-versions = ">=3.12"
content-hash = "becae22a6ab52c54be590829ae1ab9071c024151793f74b5f2d98a28462ee5b7"
content-hash = "7375db48b1c91888c0a082ca855dd6ef59bc620e2a6665cfd15138ffee4f89c5"
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ authors = [{ name = "Pierre Smeyers", email = "pierre.smeyers@gmail.com" }]
license = "LGPL"
readme = "README.md"
requires-python = ">=3.12"
dependencies = ["python-gitlab (>=7.0.0,<7.1.0)", "gitpython (>=3.1.43,<4.0.0)"]
dependencies = ["python-gitlab (>=7.0.0,<7.1.0)", "gitpython (>=3.1.43,<4.0.0)", "urllib3 (>=2.6.3,<3.0.0)"]

[project.scripts]
gitlab-cp = "gitlab_cp.sync:run"