-
-
Notifications
You must be signed in to change notification settings - Fork 469
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
131 additions
and
173 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,5 @@ | ||
[flake8] | ||
exclude = | ||
tests/* | ||
max-line-length = 100 | ||
max-complexity = 10 |
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,55 @@ | ||
name: Release to PyPI | ||
|
||
permissions: | ||
contents: write | ||
|
||
on: | ||
push: | ||
tags: | ||
- "1.*" | ||
|
||
jobs: | ||
build: | ||
name: build dist files | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: install build | ||
run: python -m pip install --upgrade build | ||
|
||
- name: build dist | ||
run: python -m build | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: artifacts | ||
path: dist/* | ||
if-no-files-found: error | ||
|
||
publish: | ||
environment: | ||
name: pypi-release | ||
url: https://pypi.org/project/Authlib/ | ||
permissions: | ||
id-token: write | ||
name: release to pypi | ||
needs: build | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: artifacts | ||
path: dist | ||
|
||
- name: Push build artifacts to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
skip-existing: true | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
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,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="[email protected]"}] | ||
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.*"] |
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,67 +1,10 @@ | ||
[bdist_wheel] | ||
universal = 1 | ||
|
||
[metadata] | ||
name = Authlib | ||
version = attr: authlib.__version__ | ||
author = Hsiaoming Yang | ||
url = https://authlib.org/ | ||
author_email = [email protected] | ||
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 |