git-repokit 0.10.4__tar.gz → 0.10.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.
- {git_repokit-0.10.4/git_repokit.egg-info → git_repokit-0.10.5}/PKG-INFO +1 -1
- {git_repokit-0.10.4 → git_repokit-0.10.5/git_repokit.egg-info}/PKG-INFO +1 -1
- {git_repokit-0.10.4 → git_repokit-0.10.5}/git_repokit.egg-info/SOURCES.txt +1 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/pyproject.toml +1 -1
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/__version__.py +1 -1
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/cli.py +97 -13
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/config.py +12 -1
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/github_create.py +3 -1
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/github_setup.py +16 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/licenses/__init__.py +14 -12
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/remote_integration.py +10 -2
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/repo_manager.py +3 -2
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_license_cli.py +6 -2
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_licenses.py +8 -6
- git_repokit-0.10.5/tests/test_publish_metadata.py +251 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/LICENSE +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/MANIFEST.in +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/README.md +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/git_repokit.egg-info/dependency_links.txt +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/git_repokit.egg-info/entry_points.txt +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/git_repokit.egg-info/requires.txt +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/git_repokit.egg-info/top_level.txt +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/__init__.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/__main__.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/_vendor/__init__.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/_vendor/ailib/__init__.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/_vendor/ailib/analyzer.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/_vendor/ailib/backend.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/_vendor/ailib/cache.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/_vendor/ailib/parsers.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/_vendor/ailib/transports/__init__.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/_vendor/ailib/transports/cli.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/_vendor/ailib/transports/openai_compat.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/_vendor/ailib/transports/prompt_file.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/_vendor/ailib/types.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/auth_integration.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/badges.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/branch_utils.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/common_kit.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/defaults.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/directory_analyzer.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/directory_profiles.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/git_config.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/guardrails.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/history_cleaner.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/history_protection.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/hooks/pre-commit-guardrails +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/hooks/pre-commit-template +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/layers.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/licenses/0bsd.txt +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/licenses/LICENSES.md +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/licenses/agpl-3.0.txt +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/licenses/all-rights-reserved.txt +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/licenses/apache-2.0.txt +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/licenses/bsd-2-clause.txt +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/licenses/bsd-3-clause.txt +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/licenses/bsl-1.0.txt +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/licenses/cc-by-4.0.txt +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/licenses/cc-by-sa-4.0.txt +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/licenses/cc0-1.0.txt +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/licenses/epl-2.0.txt +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/licenses/gpl-2.0.txt +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/licenses/gpl-3.0.txt +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/licenses/isc.txt +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/licenses/lgpl-2.1.txt +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/licenses/lgpl-3.0.txt +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/licenses/mit.txt +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/licenses/mpl-2.0.txt +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/licenses/proprietary-evaluation.txt +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/licenses/unlicense.txt +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/readme_blocks.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/template_engine.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/ai/claude/CLAUDE-nested.md.template +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/ai/claude/CLAUDE.md.template +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/ai/claude/instructions/step1_context_rebuilder.md +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/ai/claude/instructions/step2_dev_workflow_process.md +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/ai/claude/instructions/step3_context_bridge.md +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/common/CHANGELOG.md.template +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/common/CONTRIBUTING.md.template +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/common/README.md.template +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/common/gitattributes.template +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/common/gitignore.template +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/extras/FUNDING.yml.template +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/extras/ROADMAP.md.template +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/extras/dependabot.yml.template +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/extras/one-offs-README.md.template +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/extras/platform-support.md.template +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/extras/pull_request_template.md.template +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/extras/release-template.md.template +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/extras/settings.json.template +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/extras/stale.yml.template +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/github/CODEOWNERS.template +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/github/ISSUE_TEMPLATE/bug-report.md.template +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/github/ISSUE_TEMPLATE/feature-request.md.template +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/github/issues/notes.md.template +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/github/issues/roadmap.md.template +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/hooks/pre-commit.template +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/any/claude-plugin/.claude-plugin/marketplace.json +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/any/claude-plugin/plugin/.claude-plugin/plugin.json +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/any/claude-plugin/plugin/README.md +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/c-cpp/cmake-app/.github/workflows/ci-c-cpp.yml +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/c-cpp/cmake-app/.repokit-common.toml.rkappend +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/c-cpp/cmake-app/.vscode/launch.json +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/c-cpp/cmake-app/.vscode/tasks.json +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/c-cpp/cmake-app/CMakeLists.txt +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/c-cpp/cmake-app/CMakePresets.json +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/c-cpp/cmake-app/cmake/GenerateStamp.cmake +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/c-cpp/cmake-app/src/main.cpp +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/c-cpp/cmake-app/tests/test_version.cpp +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/c-cpp/cmake-app/vcpkg.json +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/c-cpp/minimal/.vscode/launch.json +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/c-cpp/minimal/Makefile +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/c-cpp/minimal/build.bat +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/c-cpp/minimal/src/__RK_SNAKE__.c +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/c-cpp/msbuild/.vscode/launch.json +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/c-cpp/msbuild/.vscode/tasks.json +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/c-cpp/msbuild/__RK_PROJECT__.sln +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/c-cpp/msbuild/__RK_PROJECT__.vcxproj +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/c-cpp/msbuild/src/main.cpp +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/js-ts/claude-plugin/.repokit-common.toml +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/js-ts/claude-plugin/.vscode/launch.json +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/js-ts/claude-plugin/plugin/hooks/hooks.json +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/js-ts/claude-plugin/plugin/hooks/scripts/session-start.mjs +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/js-ts/claude-plugin/plugin/tests/manifest.test.js +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/js-ts/node/.repokit-common.toml.rkappend +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/js-ts/node/package.json +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/js-ts/node-package/.github/workflows/release.yml +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/js-ts/node-package/package.json +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/js-ts/node-package/src/index.ts +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/js-ts/node-package/tests/index.test.ts +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/js-ts/script/.vscode/launch.json +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/js-ts/script/__RK_PROJECT__.js +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/js-ts/script/tests/version.test.js +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/js-ts/ts/package.json +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/js-ts/ts/tsconfig.json +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/paradox/ck3/.repokit-common.toml +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/paradox/ck3/mod/descriptor.mod +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/paradox/clausewitz/mod/localisation/english/__RK_SNAKE___l_english.yml +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/paradox/descriptor-mod/mod/descriptor.mod +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/paradox/descriptor-mod/mod/thumbnail.png +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/paradox/jomini/mod/localization/english/__RK_SNAKE___l_english.yml +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/python/claude-plugin/.github/workflows/ci-python.yml +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/python/claude-plugin/.repokit-common.toml +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/python/claude-plugin/.vscode/launch.json +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/python/claude-plugin/VERSION +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/python/claude-plugin/plugin/hooks/hooks.json +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/python/claude-plugin/plugin/hooks/scripts/run-hook.mjs +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/python/claude-plugin/plugin/hooks/scripts/session_start.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/python/claude-plugin/plugin/tests/test_manifest.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/python/pypi/.github/workflows/release.yml +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/python/pypi/.vscode/launch.json +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/python/pypi/__RK_SNAKE__/__init__.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/python/pypi/__RK_SNAKE__/__main__.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/python/pypi/__RK_SNAKE__/_version.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/python/pypi/__RK_SNAKE__/cli.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/python/pypi/pyproject.toml +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/python/pypi/tests/conftest.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/python/pypi/tests/test_version.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/python/script/.github/workflows/ci-python.yml +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/python/script/.repokit-common.toml +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/python/script/.vscode/launch.json +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/python/script/VERSION +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/python/script/__RK_PROJECT__.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/python/script/tests/test_version.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/python/setuppy/requirements.txt +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/archetypes/python/setuppy/setup.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/languages/c-cpp/.gitignore.rkappend +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/languages/c-cpp/.repokit-common.toml +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/languages/c-cpp/include/__RK_SNAKE__/version.h +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/languages/c-cpp/src/app.rc +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/languages/js-ts/.editorconfig +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/languages/js-ts/.github/workflows/ci-js-ts.yml +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/languages/js-ts/.gitignore.rkappend +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/languages/js-ts/.repokit-common.toml +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/languages/js-ts/.vscode/launch.json +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/languages/js-ts/VERSION +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/languages/paradox/.gitattributes.rkappend +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/languages/paradox/.repokit-common.toml +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/languages/paradox/VERSION +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/languages/paradox/docs/modding.md +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/languages/python/.github/workflows/ci-python.yml +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/languages/python/.gitignore.rkappend +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/languages/python/.vscode/launch.json +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/layers/manifest.toml +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/vault/CLAUDE.md +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/vault/claude/_maps/MOC-project.md +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/vault/claude/_oracle/backlinks.md +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/vault/claude/_oracle/concepts.md +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/vault/claude/_oracle/manifest.md +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/vault/claude/_todo/ACTIVE-WORK.md +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/templates/vault/claude/_todo/OPEN-LOOPS.md +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/utils.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/repokit/vault.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/setup.cfg +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/setup.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_badges.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_branch_strategies.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_cli_examples.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_cli_integration.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_common_guard.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_core_functionality.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_deployment_scenarios.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_directory_profiles.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_docs_links.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_extras_cli.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_github_create.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_github_integration.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_github_owner.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_github_setup.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_github_setup_publish.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_guardrails.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_hermetic.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_hook_encoding.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_hook_patterns.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_languages_setting.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_layer_action_pins.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_layers.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_layers_c_cpp.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_layers_claude_plugin.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_layers_cli.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_layers_compositions.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_layers_js_ts.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_layers_vscode.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_legacy_smoke.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_license_adopt.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_list_templates.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_new_default.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_packaging.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_paradox.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_private_branch_create.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_private_modes.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_readme_blocks.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_run_tests_driver.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_template_parity.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_utils.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_vault_bootstrap.py +0 -0
- {git_repokit-0.10.4 → git_repokit-0.10.5}/tests/test_vendored_ailib.py +0 -0
|
@@ -226,6 +226,7 @@ tests/test_packaging.py
|
|
|
226
226
|
tests/test_paradox.py
|
|
227
227
|
tests/test_private_branch_create.py
|
|
228
228
|
tests/test_private_modes.py
|
|
229
|
+
tests/test_publish_metadata.py
|
|
229
230
|
tests/test_readme_blocks.py
|
|
230
231
|
tests/test_run_tests_driver.py
|
|
231
232
|
tests/test_template_parity.py
|
|
@@ -8,7 +8,7 @@ build-backend = "setuptools.build_meta"
|
|
|
8
8
|
# PyPI's trusted publisher is registered for this name (DazzleTools/git-repokit,
|
|
9
9
|
# publish.yml, environment pypi); the command stays `repokit`
|
|
10
10
|
name = "git-repokit"
|
|
11
|
-
version = "0.10.
|
|
11
|
+
version = "0.10.5"
|
|
12
12
|
description = "Create standardized Git repositories: language presets, licenses, GitHub setup, and a private notes vault"
|
|
13
13
|
readme = "README.md"
|
|
14
14
|
license = "MIT"
|
|
@@ -5,5 +5,5 @@ off for this project); tests/test_packaging.py fails when the two differ, as
|
|
|
5
5
|
they did at 0.10.0 and 0.10.1, whose `repokit --version` printed 0.9.12.
|
|
6
6
|
"""
|
|
7
7
|
|
|
8
|
-
__version__ = "0.10.
|
|
8
|
+
__version__ = "0.10.5"
|
|
9
9
|
__version_info__ = tuple(int(part) for part in __version__.split("."))
|
|
@@ -980,7 +980,14 @@ Examples:
|
|
|
980
980
|
|
|
981
981
|
publish_parser.add_argument(
|
|
982
982
|
"--repo-name",
|
|
983
|
-
help="Name for the remote repository (default:
|
|
983
|
+
help="Name for the remote repository (default: the project_name in the project's "
|
|
984
|
+
".repokit.json, else the directory name)"
|
|
985
|
+
)
|
|
986
|
+
|
|
987
|
+
publish_parser.add_argument(
|
|
988
|
+
"--description", "-d",
|
|
989
|
+
help="The repository's description on GitHub (default: the one in the project's "
|
|
990
|
+
".repokit.json). On a repository already on GitHub, sets it."
|
|
984
991
|
)
|
|
985
992
|
|
|
986
993
|
publish_parser.add_argument(
|
|
@@ -1636,24 +1643,88 @@ def _add_github_setup_args(parser) -> None:
|
|
|
1636
1643
|
"global config's `github_setup` list; none when it names none."
|
|
1637
1644
|
)
|
|
1638
1645
|
parser.add_argument("--topics", metavar="TOPIC[,TOPIC...]", help="Repository topics for --github-setup topics")
|
|
1646
|
+
parser.add_argument(
|
|
1647
|
+
"--homepage", metavar="URL",
|
|
1648
|
+
help="The repository's homepage on GitHub. Default: the PyPI page for a preset that "
|
|
1649
|
+
"publishes to PyPI (python/pypi), else none."
|
|
1650
|
+
)
|
|
1639
1651
|
parser.add_argument(
|
|
1640
1652
|
"--no-github-setup", action="store_true",
|
|
1641
1653
|
help="Set nothing up on GitHub, whatever the config's `github_setup` says"
|
|
1642
1654
|
)
|
|
1643
1655
|
|
|
1644
1656
|
|
|
1657
|
+
def _project_metadata(args, repo_root: str) -> Dict[str, Any]:
|
|
1658
|
+
"""What a publish says about the published project (0.10.5): its own
|
|
1659
|
+
.repokit.json, never the current directory's. description: --description,
|
|
1660
|
+
else the record's (a placeholder counts as none); project_name: the
|
|
1661
|
+
record's; topics: --topics, else the record's; archetype and extras: the
|
|
1662
|
+
record's; homepage: --homepage, else "" (the PyPI default is decided at
|
|
1663
|
+
creation). A key the record lacks is empty, never the cwd's value."""
|
|
1664
|
+
from .config import read_project_record, real_description
|
|
1665
|
+
from .layers import parse_languages as _split
|
|
1666
|
+
record = read_project_record(repo_root)
|
|
1667
|
+
topics = _split(args.topics) if getattr(args, "topics", None) else list(record.get("topics") or [])
|
|
1668
|
+
return {
|
|
1669
|
+
"description": real_description(getattr(args, "description", None) or record.get("description")),
|
|
1670
|
+
"project_name": record.get("project_name") or "",
|
|
1671
|
+
"topics": topics,
|
|
1672
|
+
"archetype": record.get("archetype"),
|
|
1673
|
+
"extras": list(record.get("extras") or []),
|
|
1674
|
+
"homepage": getattr(args, "homepage", None) or "",
|
|
1675
|
+
}
|
|
1676
|
+
|
|
1677
|
+
|
|
1678
|
+
def _edit_existing_repository(repo_root: str, config: Dict[str, Any], url: str,
|
|
1679
|
+
description: Optional[str], homepage: Optional[str]) -> Optional[str]:
|
|
1680
|
+
"""`gh repo edit` the description and/or homepage of a repository already
|
|
1681
|
+
on GitHub (publish's update path, only when named). None, or what failed."""
|
|
1682
|
+
from .github_create import _run, gh_ready, github_repo_of
|
|
1683
|
+
if not description and not homepage:
|
|
1684
|
+
# e.g. --description "A new project repository": the placeholder is never sent
|
|
1685
|
+
return "nothing updated: the description named is the placeholder"
|
|
1686
|
+
repo = github_repo_of(url)
|
|
1687
|
+
if not repo:
|
|
1688
|
+
return f"not a GitHub repository: {url}"
|
|
1689
|
+
gh, _login, problem = gh_ready(repo_root, config, organization=repo.split("/")[0])
|
|
1690
|
+
if problem:
|
|
1691
|
+
return f"description/homepage not updated: {problem}"
|
|
1692
|
+
cmd = gh + ["repo", "edit", repo]
|
|
1693
|
+
if description: # never "" (a placeholder emptied by real_description): that would clear GitHub's
|
|
1694
|
+
cmd += ["--description", description]
|
|
1695
|
+
if homepage:
|
|
1696
|
+
cmd += ["--homepage", homepage]
|
|
1697
|
+
rc, out = _run(cmd, repo_root)
|
|
1698
|
+
return None if rc == 0 else f"description/homepage not updated: {out}"
|
|
1699
|
+
|
|
1700
|
+
|
|
1701
|
+
def _apply_project_metadata(config: Dict[str, Any], meta: Dict[str, Any]) -> None:
|
|
1702
|
+
"""Put the published project's metadata into the config the creation
|
|
1703
|
+
reads, replacing whatever the current directory's config supplied."""
|
|
1704
|
+
config["description"] = meta["description"]
|
|
1705
|
+
config["homepage"] = meta["homepage"]
|
|
1706
|
+
config["topics"] = meta["topics"]
|
|
1707
|
+
config["archetype"] = meta["archetype"]
|
|
1708
|
+
config["extras"] = meta["extras"]
|
|
1709
|
+
if meta["project_name"]:
|
|
1710
|
+
config["project_name"] = meta["project_name"]
|
|
1711
|
+
else:
|
|
1712
|
+
config.pop("project_name", None)
|
|
1713
|
+
|
|
1714
|
+
|
|
1645
1715
|
def _publish_setup(args, config: Dict[str, Any], repo_root: str, service: str,
|
|
1646
1716
|
report: List[str]) -> Tuple[Dict[str, Any], Optional[str]]:
|
|
1647
1717
|
"""The GitHub setup for a --publish-to run: the hooks to hand
|
|
1648
1718
|
setup_remote_repository, or what is wrong. Steps come from --github-setup,
|
|
1649
1719
|
else the config's `github_setup`; --no-github-setup empties them. The
|
|
1650
|
-
project's
|
|
1720
|
+
project's metadata is already in the config: publish and adopt apply the
|
|
1721
|
+
published project's own record (_apply_project_metadata), create's config
|
|
1722
|
+
is the project's own."""
|
|
1651
1723
|
if service != "github":
|
|
1652
1724
|
if getattr(args, "github_setup", None):
|
|
1653
1725
|
return {}, "--github-setup works with --publish-to github only"
|
|
1654
1726
|
return {}, None
|
|
1655
1727
|
from . import github_setup
|
|
1656
|
-
from .config import read_project_record
|
|
1657
1728
|
from .github_create import publish_hooks
|
|
1658
1729
|
try:
|
|
1659
1730
|
steps = github_setup.setup_names(config.get("github_setup"))
|
|
@@ -1661,14 +1732,7 @@ def _publish_setup(args, config: Dict[str, Any], repo_root: str, service: str,
|
|
|
1661
1732
|
return {}, str(e)
|
|
1662
1733
|
if not steps:
|
|
1663
1734
|
return {}, None
|
|
1664
|
-
|
|
1665
|
-
setup_config = dict(config)
|
|
1666
|
-
for key in ("project_name", "extras", "archetype"):
|
|
1667
|
-
if facts.get(key):
|
|
1668
|
-
setup_config[key] = facts[key]
|
|
1669
|
-
if not setup_config.get("topics") and facts.get("topics"):
|
|
1670
|
-
setup_config["topics"] = facts["topics"]
|
|
1671
|
-
after_create, after_push = publish_hooks(repo_root, setup_config, steps, report)
|
|
1735
|
+
after_create, after_push = publish_hooks(repo_root, dict(config), steps, report)
|
|
1672
1736
|
return {"after_create": after_create, "after_push": after_push}, None
|
|
1673
1737
|
|
|
1674
1738
|
|
|
@@ -1729,6 +1793,8 @@ def args_to_config(args: argparse.Namespace) -> Dict[str, Any]:
|
|
|
1729
1793
|
if getattr(args, "github_setup", None):
|
|
1730
1794
|
from .layers import parse_languages as _split_steps
|
|
1731
1795
|
cli_config["github_setup"] = _split_steps(args.github_setup)
|
|
1796
|
+
if getattr(args, "homepage", None):
|
|
1797
|
+
cli_config["homepage"] = args.homepage
|
|
1732
1798
|
if getattr(args, "no_github_setup", False):
|
|
1733
1799
|
cli_config["github_setup"] = []
|
|
1734
1800
|
if getattr(args, "topics", None):
|
|
@@ -2847,6 +2913,12 @@ def main() -> int:
|
|
|
2847
2913
|
if hasattr(args, 'token') and args.token and not token_cmd:
|
|
2848
2914
|
token_cmd = f"echo {args.token}"
|
|
2849
2915
|
|
|
2916
|
+
# The adopted project's own description, topics and homepage (0.10.5)
|
|
2917
|
+
meta = _project_metadata(args, dir_path)
|
|
2918
|
+
_apply_project_metadata(adopt_config, meta)
|
|
2919
|
+
if repo_manager.config is not adopt_config:
|
|
2920
|
+
_apply_project_metadata(repo_manager.config, meta)
|
|
2921
|
+
|
|
2850
2922
|
publish_success = _publish_with_setup(
|
|
2851
2923
|
args, adopt_config, dir_path, publish_to, remote_integration,
|
|
2852
2924
|
remote_name=getattr(args, 'remote_name', None) or adopt_config.get('remote_name', 'origin'),
|
|
@@ -3021,8 +3093,12 @@ def main() -> int:
|
|
|
3021
3093
|
logger.error(f"Repository not found at {repo_path}")
|
|
3022
3094
|
return 1
|
|
3023
3095
|
|
|
3024
|
-
#
|
|
3025
|
-
|
|
3096
|
+
# What the published project says about itself (0.10.5): its own
|
|
3097
|
+
# .repokit.json, never the current directory's -- description,
|
|
3098
|
+
# name, topics, archetype; --repo-name and the flags win.
|
|
3099
|
+
meta = _project_metadata(args, repo_path)
|
|
3100
|
+
_apply_project_metadata(config, meta)
|
|
3101
|
+
repo_name = args.repo_name or meta["project_name"] or os.path.basename(repo_path)
|
|
3026
3102
|
config["name"] = repo_name
|
|
3027
3103
|
|
|
3028
3104
|
# Initialize RepoManager with the repository path
|
|
@@ -3066,6 +3142,14 @@ def main() -> int:
|
|
|
3066
3142
|
logger.error(f"Failed to publish repository to {args.publish_to}")
|
|
3067
3143
|
return 1
|
|
3068
3144
|
|
|
3145
|
+
# Already on GitHub: its description and homepage change only when named.
|
|
3146
|
+
if remote_integration.updated_existing_url and (getattr(args, "description", None)
|
|
3147
|
+
or getattr(args, "homepage", None)):
|
|
3148
|
+
problem = _edit_existing_repository(repo_path, config, remote_integration.updated_existing_url,
|
|
3149
|
+
(meta["description"] or None) if args.description else None,
|
|
3150
|
+
meta["homepage"] or None)
|
|
3151
|
+
print(f"GitHub: {problem}" if problem else "GitHub: description/homepage updated")
|
|
3152
|
+
|
|
3069
3153
|
logger.info(f"Successfully published repository to {args.publish_to}")
|
|
3070
3154
|
return 0
|
|
3071
3155
|
except Exception as e:
|
|
@@ -16,6 +16,17 @@ from typing import Dict, Any, Optional, List, Union
|
|
|
16
16
|
from .directory_profiles import DirectoryProfileManager
|
|
17
17
|
|
|
18
18
|
|
|
19
|
+
# The placeholder descriptions a create writes when none was given (the
|
|
20
|
+
# config default, and an older one). Never sent to GitHub as a description.
|
|
21
|
+
DEFAULT_DESCRIPTIONS = ("A new project repository", "A new project")
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def real_description(text: Optional[str]) -> str:
|
|
25
|
+
"""The description, or "" when it is empty or one of the placeholders."""
|
|
26
|
+
text = (text or "").strip()
|
|
27
|
+
return "" if text in DEFAULT_DESCRIPTIONS else text
|
|
28
|
+
|
|
29
|
+
|
|
19
30
|
def read_project_record(repo_root: str) -> Dict[str, Any]:
|
|
20
31
|
"""A project's own .repokit.json, read from its root (not the current
|
|
21
32
|
directory, which is what ConfigManager reads), or {} when absent or
|
|
@@ -65,7 +76,7 @@ class ConfigManager:
|
|
|
65
76
|
# Default configuration
|
|
66
77
|
self.default_config = {
|
|
67
78
|
"name": "my-project",
|
|
68
|
-
"description":
|
|
79
|
+
"description": DEFAULT_DESCRIPTIONS[0],
|
|
69
80
|
"language": "generic",
|
|
70
81
|
"default_branch": "main",
|
|
71
82
|
# Base defaults match the default strategy; apply_branch_strategy
|
|
@@ -156,9 +156,11 @@ def create_on_github(repo_root: str, name: str, config: dict, private_branch: Op
|
|
|
156
156
|
create = gh + ["repo", "create", f"{owner}/{name}",
|
|
157
157
|
"--public" if public else "--private",
|
|
158
158
|
"--source", repo_root, "--remote", "origin"]
|
|
159
|
-
description =
|
|
159
|
+
description, homepage = github_setup.repository_about(config, name)
|
|
160
160
|
if description:
|
|
161
161
|
create += ["--description", description]
|
|
162
|
+
if homepage:
|
|
163
|
+
create += ["--homepage", homepage]
|
|
162
164
|
rc, out = _run(create, repo_root)
|
|
163
165
|
if rc != 0:
|
|
164
166
|
return f"gh repo create failed: {out}"
|
|
@@ -120,6 +120,22 @@ ISSUES = [ # title, labels, template
|
|
|
120
120
|
TEMPLATES = Path(__file__).resolve().parent / "templates" / "github" / "issues"
|
|
121
121
|
PUBLISHES_TO_PYPI = ("python/pypi",)
|
|
122
122
|
|
|
123
|
+
|
|
124
|
+
def default_homepage(archetype: Optional[str], name: Optional[str]) -> str:
|
|
125
|
+
"""The repository's homepage when none was named: the PyPI page for a
|
|
126
|
+
preset that publishes there, else none (0.10.5; measured: no house
|
|
127
|
+
repository uses a Pages /stats homepage, the Python ones use PyPI)."""
|
|
128
|
+
return f"https://pypi.org/project/{name}/" if archetype in PUBLISHES_TO_PYPI and name else ""
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
def repository_about(config: dict, name: str) -> Tuple[str, str]:
|
|
132
|
+
"""(description, homepage) a new repository is created with: never the
|
|
133
|
+
placeholder description; the named homepage, else default_homepage. One
|
|
134
|
+
rule for the gh route and the REST route (0.10.5)."""
|
|
135
|
+
from .config import real_description
|
|
136
|
+
return (real_description(config.get("description")),
|
|
137
|
+
config.get("homepage") or default_homepage(config.get("archetype"), name))
|
|
138
|
+
|
|
123
139
|
Runner = Callable[[List[str]], Tuple[int, str]]
|
|
124
140
|
|
|
125
141
|
|
|
@@ -11,8 +11,9 @@ catalogue named -- there is no silent default (djdarcy, 2026-10-22: "perhaps
|
|
|
11
11
|
just making it a requirement that the person provides it is best").
|
|
12
12
|
|
|
13
13
|
The "or-later" variants are not files: the license text is identical and only
|
|
14
|
-
the project's notice says "or later"
|
|
15
|
-
notice
|
|
14
|
+
the project's notice says "or later". Since 0.10.5 their LICENSE is the base
|
|
15
|
+
text verbatim (a notice in front made GitHub's detection read NOASSERTION); the
|
|
16
|
+
notice is the README's License section and the SPDX `-or-later` id. Design: 2026-10-22__22-06-57__dev-workflow-process__0-9-x-parity-
|
|
16
17
|
with-the-old-route.md (U1, U2); the survey behind the catalogue's size:
|
|
17
18
|
tests/one-offs/thinking/p4-measure-licenses/results.md.
|
|
18
19
|
"""
|
|
@@ -27,11 +28,11 @@ RECORD = DIR / "LICENSES.md"
|
|
|
27
28
|
HOLDER = "__RK_HOLDER__"
|
|
28
29
|
YEAR = "__RK_YEAR__"
|
|
29
30
|
|
|
30
|
-
# id -> (base id, SPDX id
|
|
31
|
-
VARIANTS: Dict[str, Tuple[str, str
|
|
32
|
-
"gpl-3.0-or-later": ("gpl-3.0", "GPL-3.0-or-later"
|
|
33
|
-
"lgpl-3.0-or-later": ("lgpl-3.0", "LGPL-3.0-or-later"
|
|
34
|
-
"agpl-3.0-or-later": ("agpl-3.0", "AGPL-3.0-or-later"
|
|
31
|
+
# id -> (base id, SPDX id)
|
|
32
|
+
VARIANTS: Dict[str, Tuple[str, str]] = {
|
|
33
|
+
"gpl-3.0-or-later": ("gpl-3.0", "GPL-3.0-or-later"),
|
|
34
|
+
"lgpl-3.0-or-later": ("lgpl-3.0", "LGPL-3.0-or-later"),
|
|
35
|
+
"agpl-3.0-or-later": ("agpl-3.0", "AGPL-3.0-or-later"),
|
|
35
36
|
}
|
|
36
37
|
|
|
37
38
|
|
|
@@ -96,11 +97,12 @@ def render(spec: str, holder: str, year: Optional[int] = None,
|
|
|
96
97
|
lid = normalise(spec)
|
|
97
98
|
year = year or datetime.date.today().year
|
|
98
99
|
if lid in VARIANTS:
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
100
|
+
# The license text verbatim, nothing before it: GitHub's license
|
|
101
|
+
# detection reads a prefixed file as NOASSERTION (measured on a
|
|
102
|
+
# published gpl-3.0-or-later project, 2026-11-18). The "or later"
|
|
103
|
+
# and the copyright line live in the README's License section and
|
|
104
|
+
# the pyproject `license` field instead.
|
|
105
|
+
return body(VARIANTS[lid][0])
|
|
104
106
|
return (body(lid).replace(HOLDER, holder).replace(YEAR, str(year))
|
|
105
107
|
.replace(PROJECT, project or "This software")
|
|
106
108
|
.replace(EMAIL, email or "(contact the copyright holder)"))
|
|
@@ -35,6 +35,8 @@ class RemoteIntegration:
|
|
|
35
35
|
self.repo_manager = repo_manager
|
|
36
36
|
self.verbose = verbose
|
|
37
37
|
self.logger = logging.getLogger("repokit.remote")
|
|
38
|
+
# Set when setup_remote_repository took the update path (0.10.5)
|
|
39
|
+
self.updated_existing_url: Optional[str] = None
|
|
38
40
|
|
|
39
41
|
# Initialize authentication handler
|
|
40
42
|
self.auth_handler = AuthenticationHandler(verbose=verbose)
|
|
@@ -50,6 +52,7 @@ class RemoteIntegration:
|
|
|
50
52
|
private: bool = False,
|
|
51
53
|
organization: Optional[str] = None,
|
|
52
54
|
token_command: Optional[str] = None,
|
|
55
|
+
homepage: str = "",
|
|
53
56
|
) -> Tuple[bool, str]:
|
|
54
57
|
"""
|
|
55
58
|
Create a new repository on GitHub.
|
|
@@ -90,6 +93,7 @@ class RemoteIntegration:
|
|
|
90
93
|
"description": description,
|
|
91
94
|
"private": private,
|
|
92
95
|
"auto_init": False, # Don't initialize with README
|
|
96
|
+
**({"homepage": homepage} if homepage else {}),
|
|
93
97
|
"default_branch": default_branch,
|
|
94
98
|
}
|
|
95
99
|
|
|
@@ -557,15 +561,19 @@ class RemoteIntegration:
|
|
|
557
561
|
existing_url = (self.repo_manager.run_git(["remote", "get-url", remote_name], check=False) or "").strip()
|
|
558
562
|
if github_repo_of(existing_url):
|
|
559
563
|
self.logger.info(f"{existing_url} already exists: pushing and updating, nothing created")
|
|
564
|
+
self.updated_existing_url = existing_url
|
|
560
565
|
return self._finish(existing_url, remote_name, push_branches, include_branches,
|
|
561
566
|
exclude_branches, after_create, after_push)
|
|
562
567
|
repo_name = self.repo_manager.project_name
|
|
563
|
-
description
|
|
568
|
+
# never the placeholder description; the homepage named, else the
|
|
569
|
+
# PyPI page for a preset that publishes there (0.10.5)
|
|
570
|
+
from .github_setup import repository_about
|
|
571
|
+
description, homepage = repository_about(self.repo_manager.config, repo_name)
|
|
564
572
|
|
|
565
573
|
# Create the remote repository
|
|
566
574
|
if service.lower() == "github":
|
|
567
575
|
success, result = self.create_github_repository(
|
|
568
|
-
repo_name, description, private, organization, token_command
|
|
576
|
+
repo_name, description, private, organization, token_command, homepage
|
|
569
577
|
)
|
|
570
578
|
elif service.lower() == "gitlab":
|
|
571
579
|
success, result = self.create_gitlab_repository(
|
|
@@ -2829,8 +2829,9 @@ exit 0
|
|
|
2829
2829
|
# read back by a later publish's GitHub setup (the topics step)
|
|
2830
2830
|
repokit_config["topics"] = list(self.config["topics"])
|
|
2831
2831
|
|
|
2832
|
-
# Add additional config if available
|
|
2833
|
-
|
|
2832
|
+
# Add additional config if available; never the placeholder (0.10.5)
|
|
2833
|
+
from .config import real_description
|
|
2834
|
+
if real_description(self.config.get("description")):
|
|
2834
2835
|
repokit_config["description"] = self.config["description"]
|
|
2835
2836
|
|
|
2836
2837
|
# The config's user, else the git identity the LICENSE and the
|
|
@@ -46,10 +46,14 @@ class TestLicenseFlag(RepoKitTestCase):
|
|
|
46
46
|
self.assertIn("All rights reserved", (project / "README.md").read_text(encoding="utf-8"))
|
|
47
47
|
|
|
48
48
|
def test_an_or_later_variant_carries_its_notice(self):
|
|
49
|
+
"""0.10.5: the LICENSE is the GPL text verbatim (first line the
|
|
50
|
+
license's own title), and the README carries the "or later"."""
|
|
49
51
|
self.assert_repokit_success(["create", "demo", "--language", "generic", "--license", "gpl-3.0-or-later", "--no-push"])
|
|
50
52
|
text = (Path(self.test_dir, "demo") / "LICENSE").read_text(encoding="utf-8")
|
|
51
|
-
self.
|
|
52
|
-
self.
|
|
53
|
+
self.assertTrue(text.lstrip().startswith("GNU GENERAL PUBLIC LICENSE"), text[:120])
|
|
54
|
+
self.assertNotIn("SPDX-License-Identifier", text)
|
|
55
|
+
readme = (Path(self.test_dir, "demo") / "README.md").read_text(encoding="utf-8")
|
|
56
|
+
self.assertIn("GNU General Public License v3.0 or later (GPL-3.0-or-later)", readme)
|
|
53
57
|
|
|
54
58
|
def test_file_form_copies_the_bytes(self):
|
|
55
59
|
src = Path(self.test_dir, "custom.txt")
|
|
@@ -37,12 +37,14 @@ def test_every_id_renders_with_holder_and_year_and_no_token_left():
|
|
|
37
37
|
assert "Copyright (c) 2031 Ada Example" in mit
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
def
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
def test_the_or_later_variants_are_the_base_text_verbatim():
|
|
41
|
+
"""0.10.5: nothing in front of the license text, so GitHub's detection
|
|
42
|
+
names it (a notice line made it NOASSERTION); the "or later" lives in
|
|
43
|
+
the README and the SPDX id."""
|
|
44
|
+
for later, base in (("gpl-3.0-or-later", "gpl-3.0"), ("lgpl-3.0-or-later", "lgpl-3.0"),
|
|
45
|
+
("agpl-3.0-or-later", "agpl-3.0")):
|
|
46
|
+
assert licenses.render(later, "A", 2031) == licenses.render(base, "A", 2031)
|
|
47
|
+
assert licenses.spdx("gpl-3.0-or-later") == "GPL-3.0-or-later"
|
|
46
48
|
|
|
47
49
|
|
|
48
50
|
def test_the_catalogue_is_the_github_and_gitlab_set():
|