Skip to content

setup.py src/: auto-generate pymupdf.pymupdf_version and add git info.#4645

Merged
julian-smith-artifex-com merged 1 commit into
mainfrom
jules
Aug 8, 2025
Merged

setup.py src/: auto-generate pymupdf.pymupdf_version and add git info.#4645
julian-smith-artifex-com merged 1 commit into
mainfrom
jules

Conversation

@julian-smith-artifex-com
Copy link
Copy Markdown
Collaborator

setup.py:build(): add extra information to the generated _build.py file (which used to contain just mupdf_location):

  • PyMuPDF package version.
  • Information about git sha, branch and diff (if any).

src/init.py: make _build.py's contents available as:

  • mupdf_location
  • pymupdf_git_branch
  • pymupdf_git_diff
  • pymupdf_git_sha
  • pymupdf_version

…it info.

setup.py:build(): add extra information to the generated _build.py file (which
used to contain just mupdf_location):
* PyMuPDF package version.
* Information about git sha, branch and diff (if any).

src/__init__.py: make _build.py's contents available as:
* mupdf_location
* pymupdf_git_branch
* pymupdf_git_diff
* pymupdf_git_sha
* pymupdf_version
@julian-smith-artifex-com julian-smith-artifex-com merged commit e439a0f into main Aug 8, 2025
3 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants