Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
plietar committed Aug 20, 2024
1 parent fe9610b commit c6f66f8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ hatch run pip install /path/to/outpack_server
- Increment the version number using [the `hatch version` command](https://hatch.pypa.io/latest/version/#updating).
- Commit the changes and create a PR.
- Get the PR approved and merged to main.
- Create a [GitHub release](https://github.com/mrc-ide/outpack-py/releases/new):
- Create a [GitHub release](https://github.com/mrc-ide/pyorderly/releases/new):
- Set the tag name as `vX.Y.Z`, matching the version reported by hatch.
- Write some release notes (possibly using the `Generate release notes` button).
- Publish the release!
- Sit back and relax while the release gets built and published.
- Check that the new version is available on [PyPI](https://pypi.org/project/outpack/#history).
- Check that the new version is available on [PyPI](https://pypi.org/project/pyorderly/#history).

## License

Expand Down
5 changes: 5 additions & 0 deletions src/pyorderly/outpack/filestore.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ def onerror(func, path, _exc_info):
if not os.access(path, os.W_OK):
os.chmod(path, stat.S_IWUSR)
func(path)
else:
# This is always called by rmtree from within a try-catch
# block, but the linter doesn't see that and complains about
# the argument-less `raise` statement.
raise # noqa: PLE0704

shutil.rmtree(self._path, onerror=onerror)

Expand Down

0 comments on commit c6f66f8

Please sign in to comment.