Skip to content

Commit

Permalink
Fix release pipeline for latest Python & GHA image
Browse files Browse the repository at this point in the history
  • Loading branch information
scarletcafe committed Nov 1, 2023
1 parent 6004466 commit 328565b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ jobs:
- name: Install dependencies
shell: bash
run: |
sudo apt-get update && sudo apt-get install -y hub
python -m pip install --upgrade pip setuptools wheel
export tag_name="${GITHUB_REF##*/}"
pip install -U ".[publish]"
Expand Down
4 changes: 2 additions & 2 deletions create_dist_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
"""

import hashlib
import importlib.metadata
import os
import pathlib
import subprocess
import typing

import pkg_resources
from jinja2 import Environment
from jinja2.environment import Template
from jinja2.loaders import BaseLoader
Expand Down Expand Up @@ -91,7 +91,7 @@ class File(typing.NamedTuple):
with open('dist/DIST_SUMMARY.md', 'w', encoding='utf-8') as fp:
output = template.render(
env=os.getenv,
package=pkg_resources.get_distribution('jishaku'),
package=importlib.metadata.distribution('jishaku'),
files=FILES,
last_version=last_version,
commit_hash=commit_hash,
Expand Down

0 comments on commit 328565b

Please sign in to comment.