Skip to content

Commit

Permalink
chore: move configuration from setup.cfg to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
lepture authored Dec 10, 2023
1 parent 04e83f6 commit c7e1b2d
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 57 deletions.
5 changes: 5 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[flake8]
exclude =
tests/*
max-line-length = 100
max-complexity = 10
46 changes: 46 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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.*"]
57 changes: 0 additions & 57 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c7e1b2d

Please sign in to comment.