Skip to content

Commit

Permalink
{pypi,build}-workaround: missed a commit, s/get_distribution(...).ver…
Browse files Browse the repository at this point in the history
…sion/dist_version(...)
  • Loading branch information
kba committed Jan 30, 2024
1 parent 51b18f1 commit 80ef57d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,4 @@ sanders*
ws1
*.doctrees
.vscode
*.BAK
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ build-workaround: pyclean
cp src/ocrd/cli/__init__.py src/ocrd/cli/__init__.py.BAK
for dist in $(BUILD_ORDER);do \
cat pyproject.toml.BAK | sed "s,^name =.*,name = \"$$dist\"," > pyproject.toml; \
cat src/ocrd_utils/constants.py.BAK | sed "s,get_distribution('ocrd'),get_distribution('$$dist')," > src/ocrd_utils/constants.py; \
cat src/ocrd_utils/constants.py.BAK | sed "s,dist_version('ocrd'),dist_version('$$dist')," > src/ocrd_utils/constants.py; \
cat src/ocrd/cli/__init__.py.BAK | sed "s,package_name='ocrd',package_name='$$dist'," > src/ocrd/cli/__init__.py; \
$(MAKE) build; \
done
Expand Down
2 changes: 1 addition & 1 deletion src/ocrd/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def get_help(self, ctx):


@click.group(epilog=_epilog)
@click.version_option()
@click.version_option(package_name='ocrd')
@ocrd_loglevel
def cli(**kwargs): # pylint: disable=unused-argument
"""
Expand Down

0 comments on commit 80ef57d

Please sign in to comment.