-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #195 from duo-labs/feat/remove-pydantic-dependency
feat/remove-pydantic-dependency
- Loading branch information
Showing
53 changed files
with
1,332 additions
and
607 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# "Run Black over everything" | ||
b134c58a394353e02c4f40808bf104f51578e7df | ||
# "Run Black on setup.py" | ||
64a0579be773f2ac783f8b50f1046fccc09389a8 |
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 |
---|---|---|
@@ -1,5 +1,17 @@ | ||
{ | ||
"black-formatter.args": [ | ||
"--line-length", "99" | ||
], | ||
"mypy-type-checker.path": ["venv/bin/mypy"], | ||
"[python]": { | ||
"editor.defaultFormatter": "ms-python.black-formatter" | ||
} | ||
"editor.defaultFormatter": "ms-python.black-formatter", | ||
"editor.formatOnPaste": false, | ||
"editor.formatOnSaveMode": "file", | ||
"editor.formatOnSave": true, | ||
}, | ||
"python.analysis.typeCheckingMode": "basic", | ||
"gitlens.advanced.blame.customArguments": [ | ||
"--ignore-revs-file", | ||
".git-blame-ignore-revs" | ||
] | ||
} |
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 |
---|---|---|
@@ -1,23 +1,20 @@ | ||
annotated-types==0.5.0 | ||
asn1crypto==1.4.0 | ||
black==21.9b0 | ||
cbor2==5.4.6 | ||
cbor2==5.5.0 | ||
cffi==1.15.0 | ||
click==8.0.3 | ||
cryptography==41.0.4 | ||
cryptography==41.0.7 | ||
mccabe==0.6.1 | ||
mypy==1.4.1 | ||
mypy-extensions==1.0.0 | ||
pathspec==0.9.0 | ||
platformdirs==2.4.0 | ||
pycodestyle==2.8.0 | ||
pycparser==2.20 | ||
pydantic==2.4.2 | ||
pydantic_core==2.10.1 | ||
pyflakes==2.4.0 | ||
pyOpenSSL==23.2.0 | ||
pyOpenSSL==23.3.0 | ||
regex==2021.10.8 | ||
six==1.16.0 | ||
toml==0.10.2 | ||
tomli==1.2.1 | ||
typing_extensions==4.7.1 | ||
typing_extensions==4.9.0 |
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 |
---|---|---|
|
@@ -9,49 +9,47 @@ | |
|
||
|
||
def read(*parts): | ||
with codecs.open(os.path.join(HERE, *parts), 'r') as fp: | ||
with codecs.open(os.path.join(HERE, *parts), "r") as fp: | ||
return fp.read() | ||
|
||
|
||
def find_version(*file_paths): | ||
version_file = read(*file_paths) | ||
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", | ||
version_file, re.M) | ||
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M) | ||
if version_match: | ||
return version_match.group(1) | ||
raise RuntimeError('Unable to find version string.') | ||
raise RuntimeError("Unable to find version string.") | ||
|
||
|
||
LONG_DESCRIPTION = read('README.md') | ||
VERSION = find_version('webauthn', '__init__.py') | ||
LONG_DESCRIPTION = read("README.md") | ||
VERSION = find_version("webauthn", "__init__.py") | ||
|
||
|
||
setup( | ||
name='webauthn', | ||
name="webauthn", | ||
packages=find_packages(exclude=["tests"]), | ||
include_package_data=True, | ||
package_data={"webauthn": ["py.typed"]}, | ||
version=VERSION, | ||
description='Pythonic WebAuthn', | ||
description="Pythonic WebAuthn", | ||
long_description=LONG_DESCRIPTION, | ||
long_description_content_type='text/markdown', | ||
keywords='webauthn fido2', | ||
author='Duo Labs', | ||
author_email='[email protected]', | ||
url='https://github.com/duo-labs/py_webauthn', | ||
download_url='https://github.com/duo-labs/py_webauthn/archive/{}.tar.gz'.format(VERSION), | ||
license='BSD', | ||
long_description_content_type="text/markdown", | ||
keywords="webauthn fido2", | ||
author="Duo Labs", | ||
author_email="[email protected]", | ||
url="https://github.com/duo-labs/py_webauthn", | ||
download_url="https://github.com/duo-labs/py_webauthn/archive/{}.tar.gz".format(VERSION), | ||
license="BSD", | ||
classifiers=[ | ||
'Development Status :: 5 - Production/Stable', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: BSD License', | ||
'Programming Language :: Python :: 3' | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: BSD License", | ||
"Programming Language :: Python :: 3", | ||
], | ||
install_requires=[ | ||
'asn1crypto>=1.4.0', | ||
'cbor2>=5.4.6', | ||
'cryptography>=41.0.4', | ||
'pydantic>=1.10.11', | ||
'pyOpenSSL>=23.2.0', | ||
] | ||
"asn1crypto>=1.4.0", | ||
"cbor2>=5.4.6", | ||
"cryptography>=41.0.7", | ||
"pyOpenSSL>=23.3.0", | ||
], | ||
) |
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
Oops, something went wrong.