Improves dependence pinning on release with a specific flag
4 unresolved threads
4 unresolved threads
This MR closes #4 (closed) by implementing what is described on its comments: user just needs to pass the -p
flag to activate pinning. The --profile
is loaded as for other applications in this package, and any default
profile is respected.
Edited by André Anjos
Merge request reports
Activity
assigned to @andre.anjos
128 154 129 155 gl = get_gitlab_instance() 130 156 131 if profile is None: 132 logger.warning( 133 "No dev-profile given. There will be no dependencies version pinning. " 134 "To enable pinning, set the --profile option." 135 ) 136 else: 137 profile = validate_profile(None, None, profile) 138 logger.info( 139 "Loading profile '%s' for dependencies version pinning.", profile 140 ) 141 loaded_profile = Profile(profile) 157 # 1. loads profile data changed this line in version 2 of the diff
128 154 129 155 gl = get_gitlab_instance() 130 156 131 if profile is None: 132 logger.warning( 133 "No dev-profile given. There will be no dependencies version pinning. " 134 "To enable pinning, set the --profile option." 135 ) 136 else: 137 profile = validate_profile(None, None, profile) 138 logger.info( 85 110 pipeline versions 86 111 * Re-commits and pushes the whole with the option ``[ci skip]``. 87 112 88 When a dev-profile is given (with ``--profile``), the versions of the dependencies 89 in ``pyproject.toml`` will be pinned to those of the ``constraints.txt`` file. 113 N.B.: When the option ``pin-dependencies`` is set, the versions of the 114 dependencies in ``pyproject.toml`` will be pinned to those of the Python 115 ``constraints.txt`` file available in the select development profile. changed this line in version 2 of the diff
223 240 tag_name=vtag, 224 241 tag_comments=description_text, 225 242 dry_run=dry_run, 226 profile=loaded_profile, 243 profile=the_profile if pin_dependencies else None, changed this line in version 2 of the diff
added 1 commit
- ae4f0c77 - [scripts.gitlab.release] Resolve review points
requested review from @samuel.gaist
added 2 commits
mentioned in commit d4cbe4cb
Please register or sign in to reply