Skip to content

Commit 710113f

Browse files
authored
Fix handling of twine repository url (#403)
1 parent c808d07 commit 710113f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

jupyter_releaser/cli.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -682,9 +682,9 @@ def extract_release(
682682
default="https://registry.npmjs.org/",
683683
)
684684
@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",
688688
default="https://pypi.org/simple/",
689689
)
690690
@add_options(dry_run_options)
@@ -697,7 +697,7 @@ def publish_assets(
697697
npm_cmd,
698698
twine_cmd,
699699
npm_registry,
700-
twine_registry,
700+
twine_repository_url,
701701
dry_run,
702702
release_url,
703703
python_packages,
@@ -710,7 +710,7 @@ def publish_assets(
710710
npm_cmd,
711711
twine_cmd,
712712
npm_registry,
713-
twine_registry,
713+
twine_repository_url,
714714
dry_run,
715715
release_url,
716716
python_package,

jupyter_releaser/lib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,14 +458,14 @@ def publish_assets(
458458
npm_cmd,
459459
twine_cmd,
460460
npm_registry,
461-
twine_registry,
461+
twine_repository_url,
462462
dry_run,
463463
release_url,
464464
python_package,
465465
):
466466
"""Publish release asset(s)"""
467467
os.environ["NPM_REGISTRY"] = npm_registry
468-
os.environ["TWINE_REGISTRY"] = twine_registry
468+
os.environ["TWINE_REPOSITORY_URL"] = twine_repository_url
469469
twine_token = ""
470470

471471
if len(glob(f"{dist_dir}/*.tgz")):

jupyter_releaser/tests/test_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def test_list_envvars(runner):
171171
tag-format: RH_TAG_FORMAT
172172
tag-message: RH_TAG_MESSAGE
173173
twine-cmd: TWINE_COMMAND
174-
twine-registry: TWINE_REGISTRY
174+
twine-repository-url: TWINE_REPOSITORY_URL
175175
username: GITHUB_ACTOR
176176
version-cmd: RH_VERSION_COMMAND
177177
version-spec: RH_VERSION_SPEC

0 commit comments

Comments
 (0)