wexample-wex-addon-dev-php 12.24.0__tar.gz → 12.25.0__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.
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/PKG-INFO +4 -4
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/README.md +1 -1
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/pyproject.toml +3 -3
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/file/php_composer_json_file.py +68 -45
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/resources/design_rules/php_code.md +4 -3
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/composer/commands/service/install_local.py +8 -5
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/composer/commands/service/refresh_lock.py +12 -3
- wexample_wex_addon_dev_php-12.25.0/tests/file/test_php_composer_json_lock_off_registry.py +47 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/tests/file/test_php_composer_json_registry_versions.py +6 -1
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/__init__.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/common/__init__.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/common/packagist_registry_gateway.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/config_value/__init__.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/config_value/php_package_readme_config_value.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/const/__init__.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/const/tags.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/deployment/__init__.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/deployment/step/__init__.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/deployment/step/symfony_env_local_deployment_step.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/file/__init__.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/formatter/__init__.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/formatter/php_code_formatter.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/php_addon_manager.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/py.typed +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/resources/.wex.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/resources/docker/Dockerfile.roave +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/resources/package_gitlab_ci.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/resources/writing_rules/php_code.md +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/__init__.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/composer/__init__.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/composer/commands/__init__.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/composer/commands/service/__init__.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/composer/docker/.wex.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/composer/docker/docker-compose.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/composer/service.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/frankenphp/__init__.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/frankenphp/docker/.wex.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/frankenphp/docker/docker-compose.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/frankenphp/samples/.wex.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/frankenphp/samples/caddy/.wex.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/frankenphp/samples/caddy/Caddyfile +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/frankenphp/samples/docker/.wex.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/frankenphp/samples/docker/docker-compose.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/frankenphp/samples/env/dev/docker/.wex.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/frankenphp/samples/env/dev/docker/docker-compose.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/frankenphp/samples/env/local/docker/.wex.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/frankenphp/samples/env/local/docker/docker-compose.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/frankenphp/samples/env/prod/docker/.wex.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/frankenphp/samples/env/prod/docker/docker-compose.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/frankenphp/samples/php/.wex.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/frankenphp/samples/php/web.ini +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/frankenphp/service.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/laravel/__init__.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/laravel/app_service.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/laravel/commands/__init__.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/laravel/commands/db/__init__.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/laravel/commands/db/migrate.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/laravel/commands/maintenance/__init__.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/laravel/commands/maintenance/disable.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/laravel/commands/maintenance/enable.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/laravel/commands/service/__init__.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/laravel/commands/service/install_local.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/laravel/commands/service/refresh_lock.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/laravel/docker/.wex.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/laravel/docker/docker-compose.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/laravel/samples/.wex.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/laravel/samples/docker/docker-compose.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/laravel/samples/env/dev/docker/docker-compose.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/laravel/samples/env/prod/docker/docker-compose.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/laravel/service.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/php/__init__.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/php/ai/__init__.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/php/ai/shared/__init__.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/php/ai/shared/context.j2 +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/php/ai/shared/php.j2 +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/php/docker/.wex.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/php/docker/docker-compose.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/php/samples/.wex.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/php/samples/caddy/.wex.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/php/samples/caddy/Caddyfile +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/php/samples/docker/.wex.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/php/samples/docker/docker-compose.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/php/samples/env/dev/docker/.wex.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/php/samples/env/dev/docker/docker-compose.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/php/samples/env/local/docker/.wex.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/php/samples/env/local/docker/docker-compose.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/php/samples/env/prod/docker/.wex.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/php/samples/env/prod/docker/docker-compose.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/php/samples/php/.wex.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/php/samples/php/web.ini +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/php/service.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/phpmyadmin/__init__.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/phpmyadmin/commands/__init__.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/phpmyadmin/commands/runtime/__init__.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/phpmyadmin/docker/.wex.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/phpmyadmin/docker/docker-compose.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/phpmyadmin/env/.wex.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/phpmyadmin/env/local/docker/docker-compose.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/phpmyadmin/service.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/__init__.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/ai/__init__.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/ai/agents/__init__.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/ai/agents/editor/__init__.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/ai/agents/editor/agent.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/ai/agents/editor/context.j2 +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/ai/shared/__init__.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/ai/shared/context.j2 +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/app_service.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/commands/__init__.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/commands/service/__init__.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/commands/service/deploy.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/commands/service/install_local.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/commands/service/watch.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/commands/translations/__init__.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/commands/translations/translate.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/docker/.wex.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/docker/docker-compose.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/knowledge/__init__.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/knowledge/entity.md +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/knowledge/skeleton.md +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/samples/.wex.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/samples/docker/.wex.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/samples/docker/docker-compose.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/samples/docker/env.build +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/samples/docker/images/.wex.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/samples/docker/images/Dockerfile.dev +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/samples/docker/images/Dockerfile.release +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/samples/env/dev/docker/.wex.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/samples/env/dev/docker/docker-compose.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/samples/env/local/config.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/samples/env/local/docker/.wex.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/samples/env/local/docker/docker-compose.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/samples/env/prod/docker/.wex.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/samples/env/prod/docker/docker-compose.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/service.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/skeleton/.editorconfig +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/skeleton/.env +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/skeleton/.gitignore +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/skeleton/.wex.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/skeleton/assets/app.js +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/skeleton/assets/styles/app.css +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/skeleton/bin/console +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/skeleton/composer.json +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/skeleton/config/bundles.php +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/skeleton/config/packages/cache.yaml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/skeleton/config/packages/csrf.yaml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/skeleton/config/packages/doctrine.yaml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/skeleton/config/packages/framework.yaml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/skeleton/config/packages/property_info.yaml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/skeleton/config/packages/routing.yaml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/skeleton/config/packages/security.yaml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/skeleton/config/packages/translation.yaml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/skeleton/config/packages/twig.yaml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/skeleton/config/packages/validator.yaml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/skeleton/config/packages/webpack_encore.yaml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/skeleton/config/preload.php +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/skeleton/config/reference.php +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/skeleton/config/routes/framework.yaml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/skeleton/config/routes/security.yaml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/skeleton/config/routes.yaml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/skeleton/config/services.yaml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/skeleton/package.json +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/skeleton/public/index.php +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/skeleton/src/Controller/.gitignore +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/skeleton/src/Entity/.gitignore +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/skeleton/src/Kernel.php +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/skeleton/src/Repository/.gitignore +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/skeleton/symfony.lock +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/skeleton/templates/base.html.twig +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/skeleton/translations/.gitignore +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/skeleton/webpack.config.js +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/wordpress/__init__.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/wordpress/commands/__init__.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/wordpress/commands/service/__init__.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/wordpress/commands/url/__init__.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/wordpress/commands/url/replace.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/wordpress/docker/.wex.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/wordpress/docker/docker-compose.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/wordpress/samples/.wex.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/wordpress/samples/docker/docker-compose-cli.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/wordpress/samples/docker/docker-compose.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/wordpress/samples/env/dev/docker/docker-compose.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/wordpress/samples/env/local/wp-cli/.gitkeep +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/wordpress/samples/env/prod/docker/docker-compose.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/wordpress/service.yml +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/workdir/__init__.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/workdir/php_package_workdir.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/workdir/php_packages_suite_workdir.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/workdir/php_symfony_workdir.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/workdir/php_workdir.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/tests/.gitkeep +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/tests/file/__init__.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/tests/workdir/__init__.py +0 -0
- {wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/tests/workdir/test_php_package_workdir.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: wexample-wex-addon-dev-php
|
|
3
|
-
Version: 12.
|
|
3
|
+
Version: 12.25.0
|
|
4
4
|
Summary: Extends wex with PHP-specific development commands for Composer, Laravel, Symfony, and WordPress services running in Docker containers
|
|
5
5
|
Author-Email: weeger <contact@wexample.com>
|
|
6
6
|
License: MIT
|
|
@@ -14,8 +14,8 @@ Requires-Dist: cattrs>=23.1.0
|
|
|
14
14
|
Requires-Dist: wexample-filestate-php>=6.7.0
|
|
15
15
|
Requires-Dist: wexample-filestate-symfony>=2.5.0
|
|
16
16
|
Requires-Dist: wexample-wex-addon-ai>=19.1.0
|
|
17
|
-
Requires-Dist: wexample-wex-addon-app>=35.
|
|
18
|
-
Requires-Dist: wexample-wex-addon-dev-javascript>=8.
|
|
17
|
+
Requires-Dist: wexample-wex-addon-app>=35.6.0
|
|
18
|
+
Requires-Dist: wexample-wex-addon-dev-javascript>=8.14.0
|
|
19
19
|
Provides-Extra: dev
|
|
20
20
|
Requires-Dist: pytest; extra == "dev"
|
|
21
21
|
Requires-Dist: pytest-cov; extra == "dev"
|
|
@@ -23,7 +23,7 @@ Description-Content-Type: text/markdown
|
|
|
23
23
|
|
|
24
24
|
# wex_addon_dev_php
|
|
25
25
|
|
|
26
|
-
Version: 12.
|
|
26
|
+
Version: 12.25.0
|
|
27
27
|
|
|
28
28
|
Extends wex with PHP-specific development commands for Composer, Laravel, Symfony, and WordPress services running in Docker containers
|
|
29
29
|
|
|
@@ -6,7 +6,7 @@ build-backend = "pdm.backend"
|
|
|
6
6
|
|
|
7
7
|
[project]
|
|
8
8
|
name = "wexample-wex-addon-dev-php"
|
|
9
|
-
version = "12.
|
|
9
|
+
version = "12.25.0"
|
|
10
10
|
description = "Extends wex with PHP-specific development commands for Composer, Laravel, Symfony, and WordPress services running in Docker containers"
|
|
11
11
|
authors = [
|
|
12
12
|
{ name = "weeger", email = "contact@wexample.com" },
|
|
@@ -23,8 +23,8 @@ dependencies = [
|
|
|
23
23
|
"wexample-filestate-php>=6.7.0",
|
|
24
24
|
"wexample-filestate-symfony>=2.5.0",
|
|
25
25
|
"wexample-wex-addon-ai>=19.1.0",
|
|
26
|
-
"wexample-wex-addon-app>=35.
|
|
27
|
-
"wexample-wex-addon-dev-javascript>=8.
|
|
26
|
+
"wexample-wex-addon-app>=35.6.0",
|
|
27
|
+
"wexample-wex-addon-dev-javascript>=8.14.0",
|
|
28
28
|
]
|
|
29
29
|
|
|
30
30
|
[project.readme]
|
|
@@ -149,27 +149,66 @@ class PhpComposerJsonFile(AppDependenciesConfigFileMixin, JsonFile):
|
|
|
149
149
|
|
|
150
150
|
return require_dev.to_dict_or_none() or {}
|
|
151
151
|
|
|
152
|
-
def
|
|
153
|
-
|
|
154
|
-
|
|
152
|
+
def get_lock_entries_off_registry(self, package_names: list[str]) -> list[str]:
|
|
153
|
+
import json
|
|
154
|
+
from urllib.parse import urlparse
|
|
155
|
+
|
|
156
|
+
lock = self.get_path().parent / "composer.lock"
|
|
157
|
+
hosts = {urlparse(registry).netloc for registry in self._get_registries()}
|
|
158
|
+
if not hosts or not lock.is_file():
|
|
159
|
+
return []
|
|
160
|
+
wanted = set(package_names)
|
|
161
|
+
locked = json.loads(lock.read_text())
|
|
162
|
+
return sorted(
|
|
163
|
+
package["name"]
|
|
164
|
+
for package in locked.get("packages", []) + locked.get("packages-dev", [])
|
|
165
|
+
if package["name"] in wanted
|
|
166
|
+
and (package.get("dist") or {}).get("type") != "path"
|
|
167
|
+
and urlparse((package.get("dist") or {}).get("url", "")).netloc
|
|
168
|
+
not in hosts
|
|
169
|
+
)
|
|
170
|
+
|
|
171
|
+
def get_registry_version(self, package_name: str) -> str | None:
|
|
172
|
+
"""The latest stable version of a package our GitLab registries serve,
|
|
173
|
+
read from the file composer itself downloads; None when none does."""
|
|
155
174
|
import json
|
|
156
175
|
import urllib.error
|
|
157
176
|
import urllib.request
|
|
158
177
|
|
|
159
178
|
from packaging.version import InvalidVersion, Version
|
|
179
|
+
|
|
180
|
+
for registry in self._get_registries():
|
|
181
|
+
try:
|
|
182
|
+
with urllib.request.urlopen(
|
|
183
|
+
urllib.request.Request(
|
|
184
|
+
f"{registry}/p2/{package_name}.json",
|
|
185
|
+
headers=self._forge_headers(registry),
|
|
186
|
+
),
|
|
187
|
+
timeout=15,
|
|
188
|
+
) as answer:
|
|
189
|
+
served = json.load(answer).get("packages", {}).get(package_name) or {}
|
|
190
|
+
except urllib.error.HTTPError as error:
|
|
191
|
+
if error.code == 404:
|
|
192
|
+
continue
|
|
193
|
+
raise
|
|
194
|
+
stable = []
|
|
195
|
+
for version in served:
|
|
196
|
+
try:
|
|
197
|
+
parsed = Version(version)
|
|
198
|
+
except InvalidVersion:
|
|
199
|
+
continue
|
|
200
|
+
if not parsed.is_prerelease and not parsed.is_devrelease:
|
|
201
|
+
stable.append(parsed)
|
|
202
|
+
if stable:
|
|
203
|
+
return str(max(stable))
|
|
204
|
+
return None
|
|
205
|
+
|
|
206
|
+
def get_registry_versions(self) -> dict[str, str] | None:
|
|
207
|
+
"""The latest stable version of each required package our GitLab
|
|
208
|
+
registries serve."""
|
|
160
209
|
from wexample_helpers.helper.parallel import parallel_map
|
|
161
210
|
|
|
162
|
-
|
|
163
|
-
if isinstance(repositories, dict):
|
|
164
|
-
repositories = list(repositories.values())
|
|
165
|
-
registries = [
|
|
166
|
-
entry["url"].removesuffix("/packages.json")
|
|
167
|
-
for entry in repositories
|
|
168
|
-
if isinstance(entry, dict)
|
|
169
|
-
and entry.get("type") == "composer"
|
|
170
|
-
and "/packages/composer" in entry.get("url", "")
|
|
171
|
-
]
|
|
172
|
-
if not registries:
|
|
211
|
+
if not self._get_registries():
|
|
173
212
|
return None
|
|
174
213
|
|
|
175
214
|
names = [
|
|
@@ -180,39 +219,10 @@ class PhpComposerJsonFile(AppDependenciesConfigFileMixin, JsonFile):
|
|
|
180
219
|
}
|
|
181
220
|
if "/" in name
|
|
182
221
|
]
|
|
183
|
-
|
|
184
|
-
def latest(name: str) -> str | None:
|
|
185
|
-
for registry in registries:
|
|
186
|
-
try:
|
|
187
|
-
with urllib.request.urlopen(
|
|
188
|
-
urllib.request.Request(
|
|
189
|
-
f"{registry}/p2/{name}.json",
|
|
190
|
-
headers=self._forge_headers(registry),
|
|
191
|
-
),
|
|
192
|
-
timeout=15,
|
|
193
|
-
) as answer:
|
|
194
|
-
served = json.load(answer).get("packages", {}).get(name) or {}
|
|
195
|
-
except urllib.error.HTTPError as error:
|
|
196
|
-
if error.code == 404:
|
|
197
|
-
continue
|
|
198
|
-
raise
|
|
199
|
-
stable = []
|
|
200
|
-
for version in served:
|
|
201
|
-
try:
|
|
202
|
-
parsed = Version(version)
|
|
203
|
-
except InvalidVersion:
|
|
204
|
-
continue
|
|
205
|
-
if not parsed.is_prerelease and not parsed.is_devrelease:
|
|
206
|
-
stable.append(parsed)
|
|
207
|
-
if stable:
|
|
208
|
-
return str(max(stable))
|
|
209
|
-
return None
|
|
210
|
-
|
|
211
222
|
# One request per package and registry, most of them a 404 for a
|
|
212
223
|
# package served elsewhere: side by side.
|
|
213
|
-
found = parallel_map(names,
|
|
214
|
-
|
|
215
|
-
return versions
|
|
224
|
+
found = parallel_map(names, self.get_registry_version, max_workers=16)
|
|
225
|
+
return {name: version for name, version in zip(names, found) if version}
|
|
216
226
|
|
|
217
227
|
def set_private_registry_packages(self, package_names: list[str]) -> bool:
|
|
218
228
|
"""Bound every custom composer registry to the private packages.
|
|
@@ -275,3 +285,16 @@ class PhpComposerJsonFile(AppDependenciesConfigFileMixin, JsonFile):
|
|
|
275
285
|
if token and match and urlparse(url).hostname == match.group(1):
|
|
276
286
|
return {"PRIVATE-TOKEN": token}
|
|
277
287
|
return {}
|
|
288
|
+
|
|
289
|
+
def _get_registries(self) -> list[str]:
|
|
290
|
+
"""The composer registries of ours (GitLab) this manifest declares."""
|
|
291
|
+
repositories = self.read_parsed().get("repositories") or []
|
|
292
|
+
if isinstance(repositories, dict):
|
|
293
|
+
repositories = list(repositories.values())
|
|
294
|
+
return [
|
|
295
|
+
entry["url"].removesuffix("/packages.json")
|
|
296
|
+
for entry in repositories
|
|
297
|
+
if isinstance(entry, dict)
|
|
298
|
+
and entry.get("type") == "composer"
|
|
299
|
+
and "/packages/composer" in entry.get("url", "")
|
|
300
|
+
]
|
|
@@ -23,9 +23,10 @@ is already a decision made.
|
|
|
23
23
|
renamed without moving a url and a page can be turned into an endpoint without
|
|
24
24
|
touching every `path()` call. Symfony's own `_profiler` and `_wdt` carry it on both
|
|
25
25
|
and are left alone.
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
Api routes follow the same line. What the application's pages read on the session — a
|
|
27
|
+
table's list, a screen's action — is reached by a program and lives under `/_api/`. `/api/`
|
|
28
|
+
holds the application's own api, called by programs with credentials of their own, and at
|
|
29
|
+
`/api/` the page documenting it (symfony-api, `usage/route-prefixes`).
|
|
29
30
|
- Helper classes are `final`-shaped by use: only `public static` methods, no state, no
|
|
30
31
|
instantiation. A helper that needs a constructor has stopped being a helper and belongs
|
|
31
32
|
in `Class/`.
|
|
@@ -80,13 +80,16 @@ elif [ "$status" -ne 0 ]; then
|
|
|
80
80
|
fi
|
|
81
81
|
for vendor in {vendors}; do
|
|
82
82
|
[ -d "{VENDOR_DEV_DIR}/$vendor" ] || continue
|
|
83
|
-
mkdir -p "vendor/$vendor"
|
|
84
83
|
for src in {VENDOR_DEV_DIR}/$vendor/*/; do
|
|
85
|
-
pkg=$(basename "$src")
|
|
86
84
|
[ -f "$src/composer.json" ] || continue
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
echo "
|
|
85
|
+
# By the package's composer name, not its directory: a checkout is named
|
|
86
|
+
# after its repository (syrtis-php-client), the package syrtis/php-client.
|
|
87
|
+
name=$(php -r 'echo json_decode(file_get_contents($argv[1]), true)["name"] ?? "";' "$src/composer.json")
|
|
88
|
+
[ -n "$name" ] || continue
|
|
89
|
+
mkdir -p "vendor/$(dirname "$name")"
|
|
90
|
+
rm -rf "vendor/$name"
|
|
91
|
+
ln -s "${{src%/}}" "vendor/$name"
|
|
92
|
+
echo " symlinked $name"
|
|
90
93
|
done
|
|
91
94
|
done
|
|
92
95
|
{composer_bin} dump-autoload
|
|
@@ -80,7 +80,13 @@ def composer__service__refresh_lock(
|
|
|
80
80
|
# a path matching nothing: an empty directory matches it, and
|
|
81
81
|
# holding no composer.json it adds no package. composer.json
|
|
82
82
|
# itself stays untouched, its hash in the lock with it.
|
|
83
|
-
|
|
83
|
+
# package.json kept as it was: Symfony Flex, a plugin --no-scripts
|
|
84
|
+
# does not stop, syncs it from vendor/ on an update — in the app's
|
|
85
|
+
# running container, the one with a vendor/ — turning the `link:`
|
|
86
|
+
# the apps declare into `file:` copies. A lock refresh writes the
|
|
87
|
+
# lock.
|
|
88
|
+
f"cd {APP_DIR} && {{ cp package.json /tmp/package.json.kept 2> /dev/null || true; }}"
|
|
89
|
+
" && php -r '"
|
|
84
90
|
'$c = json_decode(file_get_contents("composer.json"), true);'
|
|
85
91
|
' foreach ($c["repositories"] ?? [] as $r) {'
|
|
86
92
|
' $u = $r["url"] ?? "";'
|
|
@@ -94,8 +100,11 @@ def composer__service__refresh_lock(
|
|
|
94
100
|
# along (symfony/security-core 7.4 → 8.1) the app was never run on.
|
|
95
101
|
" --minimal-changes"
|
|
96
102
|
f" --with-all-dependencies {composer_packages}"
|
|
97
|
-
|
|
98
|
-
"
|
|
103
|
+
"; status=$?"
|
|
104
|
+
"; [ -f /tmp/package.json.kept ] && cp /tmp/package.json.kept package.json"
|
|
105
|
+
"; [ $status -eq 0 ] || exit $status"
|
|
106
|
+
f"; [ -d vendor ] || {composer_bin} install --no-interaction"
|
|
107
|
+
" --no-progress --no-scripts --no-autoloader --ignore-platform-req='ext-*'",
|
|
99
108
|
],
|
|
100
109
|
image=COMPOSER_LOCK_IMAGE,
|
|
101
110
|
mount=APP_DIR,
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import json
|
|
4
|
+
from types import SimpleNamespace
|
|
5
|
+
|
|
6
|
+
from wexample_wex_addon_dev_php.file.php_composer_json_file import (
|
|
7
|
+
PhpComposerJsonFile,
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
REGISTRY = "https://gitlab.example.com/api/v4/group/1/-/packages/composer"
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def test_a_package_of_ours_locked_from_packagist_is_off_registry(tmp_path) -> None:
|
|
14
|
+
manifest = _manifest(tmp_path, [{"type": "composer", "url": f"{REGISTRY}/packages.json"}])
|
|
15
|
+
assert PhpComposerJsonFile.get_lock_entries_off_registry(
|
|
16
|
+
manifest, ["acme/date", "acme/helpers", "acme/local"]
|
|
17
|
+
) == ["acme/helpers"]
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def test_nothing_is_off_registry_without_a_registry_of_ours(tmp_path) -> None:
|
|
21
|
+
manifest = _manifest(tmp_path, [])
|
|
22
|
+
assert PhpComposerJsonFile.get_lock_entries_off_registry(manifest, ["acme/helpers"]) == []
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def _manifest(tmp_path, repositories: list) -> SimpleNamespace:
|
|
26
|
+
(tmp_path / "composer.lock").write_text(
|
|
27
|
+
json.dumps(
|
|
28
|
+
{
|
|
29
|
+
"packages": [
|
|
30
|
+
# Resolved from our registry: in place.
|
|
31
|
+
{"name": "acme/date", "dist": {"type": "zip", "url": "https://gitlab.example.com/api/v4/projects/3/packages/composer/archives/acme/date.zip"}},
|
|
32
|
+
# Locked before the registry existed.
|
|
33
|
+
{"name": "acme/helpers", "dist": {"type": "zip", "url": "https://api.github.com/repos/acme/helpers/zipball/abc"}},
|
|
34
|
+
# A local checkout: nowhere to resolve from.
|
|
35
|
+
{"name": "acme/local", "dist": {"type": "path", "url": "../local"}},
|
|
36
|
+
# Not ours: never asked about.
|
|
37
|
+
{"name": "symfony/console", "dist": {"type": "zip", "url": "https://api.github.com/repos/symfony/console/zipball/def"}},
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
)
|
|
41
|
+
)
|
|
42
|
+
manifest = SimpleNamespace(
|
|
43
|
+
get_path=lambda: tmp_path / "composer.json",
|
|
44
|
+
read_parsed=lambda: {"repositories": repositories},
|
|
45
|
+
)
|
|
46
|
+
manifest._get_registries = lambda: PhpComposerJsonFile._get_registries(manifest)
|
|
47
|
+
return manifest
|
|
@@ -46,13 +46,18 @@ def _manifest(repositories: list | None) -> SimpleNamespace:
|
|
|
46
46
|
}
|
|
47
47
|
if repositories is not None:
|
|
48
48
|
content["repositories"] = repositories
|
|
49
|
-
|
|
49
|
+
manifest = SimpleNamespace(
|
|
50
50
|
read_parsed=lambda: content,
|
|
51
51
|
get_dependencies_versions=lambda: content["require"],
|
|
52
52
|
get_dev_dependencies_versions=lambda: {"acme/helpers": "1.0.0"},
|
|
53
53
|
# A public registry: no token to send.
|
|
54
54
|
_forge_headers=lambda url: {},
|
|
55
55
|
)
|
|
56
|
+
manifest._get_registries = lambda: PhpComposerJsonFile._get_registries(manifest)
|
|
57
|
+
manifest.get_registry_version = lambda name: PhpComposerJsonFile.get_registry_version(
|
|
58
|
+
manifest, name
|
|
59
|
+
)
|
|
60
|
+
return manifest
|
|
56
61
|
|
|
57
62
|
|
|
58
63
|
@pytest.fixture(autouse=True)
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
{wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/tests/file/__init__.py
RENAMED
|
File without changes
|
{wexample_wex_addon_dev_php-12.24.0 → wexample_wex_addon_dev_php-12.25.0}/tests/workdir/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|