Skip to content

Commit

Permalink
0.0.2
Browse files Browse the repository at this point in the history
optimize setup.cfg
fix a small compatibility issue
  • Loading branch information
Mo-Dabao committed May 5, 2022
1 parent 224d9f5 commit d338706
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
[metadata]
name = winsdk_toast
version = attr: winsdk_toast.__version__
description = A simple package for displaying Windows Toast Notification based on winsdk
description = A simple package for displaying Windows Toast Notification based on winsdk.
author = modabao
author_email = [email protected]
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/Mo-Dabao/winsdk_toast
license = MIT
license_files = LICENSE
classifiers =
Operating System :: Microsoft :: Windows :: Windows 10
License :: OSI Approved :: MIT License

[options]
package_dir =
= src
packages = find:
install_requires = winsdk
include_package_data = True
python_requires = >=3.5

[options.packages.find]
where = src

[options.package_data]
* = LICENSE
2 changes: 1 addition & 1 deletion src/winsdk_toast/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
from winsdk_toast.notifier import Notifier

__all__ = ['Toast', 'Notifier']
__version__ = '0.0.1'
__version__ = '0.0.2'
2 changes: 1 addition & 1 deletion src/winsdk_toast/toast.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def set_attributes(element, attributes: dict):


class Toast(object):
def __init__(self, xml: [str | None] = None):
def __init__(self, xml=None):
self.xml_document = XmlDocument()
if xml is not None:
self.xml_document.load_xml(xml)
Expand Down

0 comments on commit d338706

Please sign in to comment.