-
-
Notifications
You must be signed in to change notification settings - Fork 324
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
30 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,31 @@ | ||
SHELL=/bin/bash -e | ||
SHELL=/bin/bash | ||
|
||
test_deps: | ||
pip install coverage flake8 mypy sphinx wheel | ||
python -m pip install .[test] | ||
|
||
lint: test_deps | ||
flake8 src | ||
lint: | ||
ruff src | ||
mypy --install-types --non-interactive --check-untyped-defs src | ||
|
||
typecheck: test_deps | ||
mypy --strict --no-warn-unused-ignores src | ||
|
||
test: lint typecheck | ||
test: | ||
coverage run --branch --include 'src/*' -m unittest discover -s test -v | ||
|
||
init_docs: test_deps | ||
init_docs: | ||
cd docs; sphinx-quickstart | ||
|
||
docs: test_deps | ||
docs: | ||
python -m pip install furo sphinx-copybutton | ||
sphinx-build docs docs/html | ||
|
||
build: | ||
pip install build | ||
install: clean | ||
python -m pip install build | ||
python -m build | ||
|
||
install: clean build | ||
pip install --upgrade dist/*.whl | ||
python -m pip install --upgrade $$(echo dist/*.whl)[test] | ||
|
||
clean: | ||
-rm -rf build dist | ||
-rm -rf *.egg-info | ||
|
||
.PHONY: lint test test_deps docs build install clean | ||
.PHONY: test_deps lint test docs install clean | ||
|
||
include common.mk |
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,9 @@ | ||
[tool.black] | ||
line-length = 120 | ||
|
||
[tool.isort] | ||
profile = "black" | ||
line_length = 120 | ||
|
||
[tool.ruff] | ||
line-length = 120 |
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 |
---|---|---|
|
@@ -6,13 +6,22 @@ | |
name="pyotp", | ||
version="2.8.0", | ||
url="https://github.com/pyotp/pyotp", | ||
project_urls={ | ||
"Documentation": "https://pyauth.github.io/pyotp", | ||
"Source Code": "https://github.com/pyauth/pyotp", | ||
"Issue Tracker": "https://github.com/pyauth/pyotp/issues", | ||
"Change Log": "https://github.com/pyauth/pyotp/blob/master/Changes.rst", | ||
}, | ||
license="MIT License", | ||
author="PyOTP contributors", | ||
author_email="[email protected]", | ||
description="Python One Time Password Library", | ||
long_description=open("README.rst").read(), | ||
python_requires=">=3.7", | ||
install_requires=[], | ||
extras_require={ | ||
"test": ["coverage", "wheel", "ruff", "mypy"], | ||
}, | ||
packages=["pyotp", "pyotp.contrib"], | ||
package_dir={"": "src"}, | ||
package_data={"pyotp": ["py.typed"]}, | ||
|
@@ -26,11 +35,11 @@ | |
"Operating System :: POSIX", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
], | ||
) |