diff --git a/.flake8 b/.flake8 new file mode 100644 index 00000000..792698c8 --- /dev/null +++ b/.flake8 @@ -0,0 +1,5 @@ +[flake8] +exclude = + tests/* +max-line-length = 100 +max-complexity = 10 diff --git a/pyproject.toml b/pyproject.toml index 9787c3bd..47061ee9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,49 @@ +[project] +name = "Authlib" +description = "The ultimate Python library in building OAuth and OpenID Connect servers and clients." +authors = [{name = "Hsiaoming Yang", email="me@lepture.com"}] +dependencies = [ + "cryptography", +] +license = {text = "BSD-3-Clause"} +requires-python = ">=3.8" +dynamic = ["version"] +readme = "README.rst" +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Environment :: Console", + "Environment :: Web Environment", + "Intended Audience :: Developers", + "License :: OSI Approved :: BSD License", + "Operating System :: OS Independent", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: Implementation :: CPython", + "Topic :: Security", + "Topic :: Security :: Cryptography", + "Topic :: Internet :: WWW/HTTP :: Dynamic Content", + "Topic :: Internet :: WWW/HTTP :: WSGI :: Application", +] + +[project.urls] +Documentation = "https://docs.authlib.org/" +Purchase = "https://authlib.org/plans" +Issues = "https://github.com/lepture/authlib/issues" +Source = "https://github.com/lepture/authlib" +Donate = "https://github.com/sponsors/lepture" +Blog = "https://blog.authlib.org/" + [build-system] requires = ["setuptools", "wheel"] build-backend = "setuptools.build_meta" + +[tool.setuptools.dynamic] +version = {attr = "authlib.__version__"} + +[tool.setuptools.packages.find] +where = ["."] +include = ["authlib", "authlib.*"] diff --git a/setup.cfg b/setup.cfg index 15d2bf78..b636ad0c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,67 +1,10 @@ [bdist_wheel] universal = 1 -[metadata] -name = Authlib -version = attr: authlib.__version__ -author = Hsiaoming Yang -url = https://authlib.org/ -author_email = me@lepture.com -license = BSD 3-Clause License -license_file = LICENSE -description = The ultimate Python library in building OAuth and OpenID Connect servers and clients. -long_description = file: README.rst -long_description_content_type = text/x-rst -platforms = any -classifiers = - Development Status :: 5 - Production/Stable - Environment :: Console - Environment :: Web Environment - Framework :: Flask - Framework :: Django - Intended Audience :: Developers - License :: OSI Approved :: BSD License - Operating System :: OS Independent - Programming Language :: Python - Programming Language :: Python :: 3 - Programming Language :: Python :: 3.8 - Programming Language :: Python :: 3.9 - Programming Language :: Python :: 3.10 - Programming Language :: Python :: 3.11 - Programming Language :: Python :: 3.12 - Topic :: Internet :: WWW/HTTP :: Dynamic Content - Topic :: Internet :: WWW/HTTP :: WSGI :: Application - -project_urls = - Documentation = https://docs.authlib.org/ - Commercial License = https://authlib.org/plans - Bug Tracker = https://github.com/lepture/authlib/issues - Source Code = https://github.com/lepture/authlib - Donate = https://github.com/sponsors/lepture - Blog = https://blog.authlib.org/ - -[options] -packages = find: -zip_safe = False -include_package_data = True -install_requires = - cryptography>=3.2 - -[options.packages.find] -include= - authlib - authlib.* - [check-manifest] ignore = tox.ini -[flake8] -exclude = - tests/* -max-line-length = 100 -max-complexity = 10 - [tool:pytest] python_files = test*.py norecursedirs = authlib build dist docs htmlcov