Skip to content

Commit

Permalink
DRAFT: PEP621: Migrate setup.py config into pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Feb 26, 2023
1 parent 3e85431 commit 8d1ad71
Show file tree
Hide file tree
Showing 3 changed files with 108 additions and 106 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,9 @@ repos:
hooks:
- id: pretty-format-yaml
args: [--autofix, --indent, '2']
- id: pretty-format-toml
args: [--autofix]
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.12.1
hooks:
- id: validate-pyproject
102 changes: 102 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools>=61.2",
]

[project]
name = "social-auth-core"
dynamic = ["version"]
description = "Python social authentication made simple."
[project.readme]
file = "README.md"
content-type = "text/markdown"

keywords = [
"auth",
"oauth",
"openid",
"saml",
"social",
]
authors = [{name = "Matias Aguirre", email = "matiasaguirre@gmail.com"}]
license = {text = "BSD"}
requires-python = ">=3.6"
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3",
"Programming Language :: Python",
"Topic :: Internet",
]
dependencies = [
"cryptography>=1.4",
"defusedxml>=0.5.0rc1",
"oauthlib>=1.0.3",
"PyJWT>=2",
"python3-openid>=3.0.10",
"requests>=2.9.1",
"requests-oauthlib>=0.6.1",
]

[project.optional-dependencies]
all = [
"cryptography>=2.1.1",
"python-jose>=3",
"python3-saml>=1.5",
]
allpy3 = [
"cryptography>=2.1.1",
"python-jose>=3",
"python3-saml>=1.5",
]
azuread = [
"cryptography>=2.1.1",
]
openidconnect = [
"python-jose>=3",
]
saml = [
"python3-saml>=1.5",
]
testing = [
"coverage>=3.6",
"cryptography>=2.1.1",
"httpretty>=0.9.6",
"pytest>=4.5",
"pytest-cov>=2.7.1",
"python-jose>=3",
"python3-saml>=1.5",
]
[project.urls]
Homepage = "https://github.com/python-social-auth/social-core"

[tool.setuptools]
packages = [
"social_core",
"social_core.backends",
"social_core.pipeline",
"social_core.tests",
"social_core.tests.actions",
"social_core.tests.backends",
"social_core.tests.backends.data",
]
include-package-data = true
zip-safe = false

[tool.setuptools.dynamic]
version = {attr = "social_core.__version__"}

[tool.setuptools.package-data]
social_core_tests = [
"social_core/tests/*.txt",
"social_core/tests/testkey.pem",
]
106 changes: 0 additions & 106 deletions setup.py

This file was deleted.

0 comments on commit 8d1ad71

Please sign in to comment.