Skip to content

Commit

Permalink
Minor fixes to PyPI release process
Browse files Browse the repository at this point in the history
  • Loading branch information
njroussel committed Aug 29, 2023
1 parent 7a40bab commit 076db94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: Wandalen/wretry.action@v1.0.36
- uses: Wandalen/wretry.action@v1.2.0
with:
action: actions/checkout@v3
with: |
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@

this_directory = os.path.abspath(os.path.dirname(__file__))

with open(os.path.join("include/mitsuba/mitsuba.h")) as f:
with open(os.path.join(this_directory, "include/mitsuba/mitsuba.h")) as f:
mi_version_regex = re.compile(
r"^\s*#\s*define\s+MI_VERSION_([A-Z]+)\s+(.*)$", re.MULTILINE)
matches = dict(mi_version_regex.findall(f.read()))
mitsuba_version = "{MAJOR}.{MINOR}.{PATCH}".format(**matches)

with open(os.path.join("ext/drjit/include/drjit/fwd.h")) as f:
with open(os.path.join(this_directory, "ext/drjit/include/drjit/fwd.h")) as f:
drjit_version_regex = re.compile(
r"^\s*#\s*define\s+DRJIT_VERSION_([A-Z]+)\s+(.*)$", re.MULTILINE)
matches = dict(drjit_version_regex.findall(f.read()))
Expand Down

0 comments on commit 076db94

Please sign in to comment.