File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -682,9 +682,9 @@ def extract_release(
682
682
default = "https://registry.npmjs.org/" ,
683
683
)
684
684
@click .option (
685
- "--twine-registry " ,
686
- help = "The pypi register to target for publishing" ,
687
- envvar = "TWINE_REGISTRY " ,
685
+ "--twine-repository-url " ,
686
+ help = "The pypi registry to target for publishing" ,
687
+ envvar = "TWINE_REPOSITORY_URL " ,
688
688
default = "https://pypi.org/simple/" ,
689
689
)
690
690
@add_options (dry_run_options )
@@ -697,7 +697,7 @@ def publish_assets(
697
697
npm_cmd ,
698
698
twine_cmd ,
699
699
npm_registry ,
700
- twine_registry ,
700
+ twine_repository_url ,
701
701
dry_run ,
702
702
release_url ,
703
703
python_packages ,
@@ -710,7 +710,7 @@ def publish_assets(
710
710
npm_cmd ,
711
711
twine_cmd ,
712
712
npm_registry ,
713
- twine_registry ,
713
+ twine_repository_url ,
714
714
dry_run ,
715
715
release_url ,
716
716
python_package ,
Original file line number Diff line number Diff line change @@ -458,14 +458,14 @@ def publish_assets(
458
458
npm_cmd ,
459
459
twine_cmd ,
460
460
npm_registry ,
461
- twine_registry ,
461
+ twine_repository_url ,
462
462
dry_run ,
463
463
release_url ,
464
464
python_package ,
465
465
):
466
466
"""Publish release asset(s)"""
467
467
os .environ ["NPM_REGISTRY" ] = npm_registry
468
- os .environ ["TWINE_REGISTRY " ] = twine_registry
468
+ os .environ ["TWINE_REPOSITORY_URL " ] = twine_repository_url
469
469
twine_token = ""
470
470
471
471
if len (glob (f"{ dist_dir } /*.tgz" )):
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ def test_list_envvars(runner):
171
171
tag-format: RH_TAG_FORMAT
172
172
tag-message: RH_TAG_MESSAGE
173
173
twine-cmd: TWINE_COMMAND
174
- twine-registry: TWINE_REGISTRY
174
+ twine-repository-url: TWINE_REPOSITORY_URL
175
175
username: GITHUB_ACTOR
176
176
version-cmd: RH_VERSION_COMMAND
177
177
version-spec: RH_VERSION_SPEC
You can’t perform that action at this time.
0 commit comments