Skip to content

Commit 1d9d22c

Browse files
author
Steven Silvester
authored
Merge pull request #71 from blink1073/more-cleanup-stuff
Even more cleanup
2 parents 685c968 + a020e84 commit 1d9d22c

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

.github/workflows/check-release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
branches: ["*"]
55
pull_request:
66
branches: ["*"]
7+
schedule:
8+
- cron: "0 0 * * *"
79

810
jobs:
911
check_release:

jupyter_releaser/actions/draft_release.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@
3434
Path(changelog_location).write_text(changelog_text)
3535

3636
run("jupyter-releaser check-changelog")
37-
run("jupyter-releaser check-links")
3837
# Make sure npm comes before python in case it produces
3938
# files for the python package
4039
run("jupyter-releaser build-npm")
4140
run("jupyter-releaser check-npm")
4241
run("jupyter-releaser build-python")
4342
run("jupyter-releaser check-python")
4443
run("jupyter-releaser check-manifest")
44+
run("jupyter-releaser check-links")
4545
run("jupyter-releaser tag-release")
4646
run("jupyter-releaser draft-release")

jupyter_releaser/lib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def check_links(ignore_glob, ignore_links, cache_file, links_expire):
6565
for spec in ignore_links:
6666
cmd += f' --check-links-ignore "{spec}"'
6767

68-
cmd += " --ignore node_modules"
68+
cmd += " --ignore-glob node_modules"
6969

7070
# Gather all of the markdown, RST, and ipynb files
7171
files = []
@@ -369,7 +369,7 @@ def publish_assets(dist_dir, npm_token, npm_cmd, twine_cmd, dry_run, use_checkou
369369
npm.handle_npm_config(npm_token, dist_dir)
370370

371371
found = False
372-
for path in glob(f"{dist_dir}/*.*"):
372+
for path in sorted(glob(f"{dist_dir}/*.*")):
373373
name = Path(path).name
374374
suffix = Path(path).suffix
375375
if suffix in [".gz", ".whl"]:

jupyter_releaser/util.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ def create_release_commit(version, dist_dir="dist"):
145145
path = normalize_path(path)
146146
sha256 = compute_sha256(path)
147147
shas[path] = sha256
148-
cmd += f' -m "{path}: {sha256}"'
148+
name = osp.basename(path)
149+
cmd += f' -m "{name}: {sha256}"'
149150

150151
run(cmd)
151152

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ install_requires =
3737
pytest-check-links>=0.5
3838
requests
3939
requests_cache
40-
setuptools
40+
setuptools~=57.0
4141
tomlkit==0.7.0
4242
tbump==6.3.2
4343
toml==0.10.2

0 commit comments

Comments
 (0)