-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows Support #76
Comments
On some platforms In short, we can fix this particular exception by catching the NotImplementedError on Windows. --- a/aiosmtpd/main.py
+++ b/aiosmtpd/main.py
@@ -134,7 +134,11 @@ def main(args=None):
server = loop.run_until_complete(
loop.create_server(factory, host=args.host, port=args.port))
- loop.add_signal_handler(signal.SIGINT, loop.stop)
+ try:
+ loop.add_signal_handler(signal.SIGINT, loop.stop)
+ except NotImplementedError:
+ if sys.platform != 'win32':
+ raise
log.info('Starting asyncio loop')
try: |
I definitely want to support Windows officially. I would love it if we could include Windows in the CI, perhaps with AppVeyor. Do you have any experience integrating that with GitHub CI? If we don't do automated testing on Windows, then it's highly likely we'll break compatibility again in the future. |
I'm affiliated with a C++ project on GitHub that uses AppVeyor but I haven't tried setting it up myself for a project, so I don't have any experience. I agree that this is important to set up. |
I'm working on this. Hopefully I'll have a PR for you soon with an Appveyor config. |
Crashes on Windows
The text was updated successfully, but these errors were encountered: