-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This updates things to use more modern python practices. This includes: * Adding a pyproject.toml file * Add type hints **BREAKING CHANGE** `Webpusher.encode` will now return a `NoData` exception if no data is present to encode. Chances are you probably won't be impacted by this change since most push messages contain data, but one never knows. This alters the prior behavior where it would return `None`. Includes fixes from #152 by https://github.com/TobeTek (Thanks!)
- Loading branch information
Showing
10 changed files
with
616 additions
and
303 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[build-system] | ||
requires = ["setuptools", "wheel"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
dependencies = [ | ||
"wheel", | ||
"aiohttp", | ||
"cryptography>=2.6.1", | ||
"http-ece>=1.1.0", | ||
"requests>=2.21.0", | ||
"six>=1.15.0", | ||
"py-vapid>=1.7.0", | ||
] | ||
name = "pywebpush" | ||
authors = [{ name = "JR Conlin", email = "[email protected]" }] | ||
description = "WebPush publication library" | ||
readme = "README.md" | ||
license = { file = "LICENSE" } | ||
keywords = ["webpush", "vapid", "notification"] | ||
classifiers = [ | ||
"Topic :: Internet :: WWW/HTTP", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
] | ||
version = "2.0.0" | ||
[project.urls] | ||
Homepage = "https://github.com/web-push-libs/pywebpush" | ||
|
||
[project.optional-dependencies] | ||
dev = ["black", "mock", "pytest"] | ||
|
||
[project.scripts] | ||
pywebpush = "pywebpush.__main__:main" |
Oops, something went wrong.