watch-diff 1.2.0__tar.gz → 1.3.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,5 @@
1
+ SMTP_HOST=mail.privateemail.com
2
+ SMTP_PORT=587
3
+ SMTP_USER=no-reply@francisbergin.net
4
+ SMTP_PASS=dciX6YIZ2iF3N-n0MNCnCFTkaJzxKWfQ
5
+ # SSLKEYLOGFILE=/Users/francis/code/smtps-proxy/sslkeys.log
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2018-2019 Francis Bergin
3
+ Copyright (c) 2018-2026 Francis Bergin
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: watch-diff
3
- Version: 1.2.0
3
+ Version: 1.3.1
4
4
  Summary: Watch command output and get notified on changes
5
5
  Project-URL: Homepage, https://github.com/francisbergin/watch-diff
6
- Author-email: Francis Bergin <me@francisbergin.ca>
7
- Maintainer-email: Francis Bergin <me@francisbergin.ca>
6
+ Author-email: Francis Bergin <contact@francisbergin.net>
7
+ Maintainer-email: Francis Bergin <contact@francisbergin.net>
8
8
  License-Expression: MIT
9
9
  License-File: LICENSE
10
10
  Requires-Python: >=3.10
@@ -1,13 +1,13 @@
1
1
  [project]
2
2
  name = "watch-diff"
3
- version = "1.2.0"
3
+ version = "1.3.1"
4
4
  description = "Watch command output and get notified on changes"
5
5
  readme = "README.md"
6
6
  authors = [
7
- {name = "Francis Bergin", email = "me@francisbergin.ca"},
7
+ {name = "Francis Bergin", email = "contact@francisbergin.net"},
8
8
  ]
9
9
  maintainers = [
10
- {name = "Francis Bergin", email = "me@francisbergin.ca"},
10
+ {name = "Francis Bergin", email = "contact@francisbergin.net"},
11
11
  ]
12
12
  license = "MIT"
13
13
  requires-python = ">=3.10"
@@ -30,7 +30,7 @@ wheels = [
30
30
 
31
31
  [[package]]
32
32
  name = "watch-diff"
33
- version = "1.2.0"
33
+ version = "1.3.1"
34
34
  source = { editable = "." }
35
35
 
36
36
  [package.dev-dependencies]
@@ -2,6 +2,7 @@ import functools
2
2
  import logging
3
3
  import smtplib
4
4
  import socket
5
+ import ssl
5
6
  import time
6
7
  from email.mime.multipart import MIMEMultipart
7
8
  from email.mime.text import MIMEText
@@ -71,7 +72,8 @@ class Email:
71
72
 
72
73
  s = self._smtp_connect(self._smtp_host, self._smtp_port)
73
74
  s.ehlo()
74
- s.starttls()
75
+ context = ssl.create_default_context()
76
+ s.starttls(context=context)
75
77
  s.ehlo()
76
78
  self._smtp_login(s, self._smtp_user, self._smtp_pass)
77
79
  s.sendmail(self._smtp_user, self._recipient, msg.as_string())
File without changes
File without changes
File without changes