Skip to content

Commit

Permalink
fix macOS auto-reloading, bump to v0.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
raylu committed Aug 9, 2024
1 parent 2883f1a commit a1ce123
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pigwig/pigwig.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,9 @@ def main(self, host: str='0.0.0.0', port: int | None=None) -> None:
elif sys.platform == 'darwin':
try:
from . import reloader_osx as reloader
except ImportError as e:
except ImportError:
have_reloader = False
print('install', e.name, 'for auto-reloading')
print('install MacFSEvents for auto-reloading')
else:
have_reloader = False
print('no reloader available for', sys.platform)
Expand Down
2 changes: 2 additions & 0 deletions pigwig/reloader_osx.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import os
import sys
import typing
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = 'pigwig'
version = '0.8.0'
version = '0.8.1'
authors = [{name='raylu'}]
description = 'a python 3.6+ WSGI framework'
requires-python = '>=3.6'
Expand Down

0 comments on commit a1ce123

Please sign in to comment.