Skip to content

Commit 46a7024

Browse files
committed
chore: convert setup.py to pyprojec.toml for setuptools build
1 parent f263fdd commit 46a7024

File tree

3 files changed

+87
-143
lines changed

3 files changed

+87
-143
lines changed

pyproject.toml

Lines changed: 87 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,89 @@
11
[build-system]
2-
requires = [
3-
"setuptools>=42",
4-
"wheel"
5-
]
2+
requires = ["setuptools >= 75.0"]
63
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "passage-identity"
7+
version = "3.0.1"
8+
dependencies = [
9+
"cryptography ~= 44.0", # used by pyjwt
10+
"pydantic ~= 2.10", # used by codgen
11+
"pyjwt ~= 2.9",
12+
"python-dateutil ~= 2.9", # used by codegen
13+
"requests ~= 2.32",
14+
]
15+
requires-python = ">=3.8"
16+
authors = [
17+
{ name = "Passage by 1Password", email = "support@passage.id" },
18+
]
19+
description = "Passkey Complete for Python - Integrate into your Python API or service to enable a completely passwordless standalone auth solution with Passage by 1Password"
20+
readme = "README.md"
21+
classifiers = [
22+
"Development Status :: 5 - Production/Stable",
23+
"Intended Audience :: Developers",
24+
"License :: OSI Approved :: MIT License",
25+
"Operating System :: OS Independent",
26+
"Topic :: Security",
27+
"Programming Language :: Python",
28+
"Programming Language :: Python :: 3",
29+
"Programming Language :: Python :: 3 :: Only",
30+
"Programming Language :: Python :: 3.8",
31+
"Programming Language :: Python :: 3.9",
32+
"Programming Language :: Python :: 3.10",
33+
"Programming Language :: Python :: 3.11",
34+
"Programming Language :: Python :: 3.12",
35+
"Programming Language :: Python :: 3.13",
36+
]
37+
38+
[project.urls]
39+
Documentation = "https://docs.passage.id/complete"
40+
"Bug Tracker" = "https://github.com/passageidentity/.github/blob/main/SUPPORT.md"
41+
42+
[project.license]
43+
file = "LICENSE"
44+
45+
[project.optional-dependencies]
46+
test = [
47+
"pytest ~= 8.3",
48+
]
49+
lint = [
50+
"ruff ~= 0.8",
51+
]
52+
dev = [
53+
"passage-identity[test,lint]",
54+
]
55+
56+
[tool.setuptools.packages.find]
57+
exclude = ["tests"]
58+
59+
[tool.ruff]
60+
exclude = [
61+
".eggs",
62+
".git",
63+
".pytest_cache",
64+
".ruff_cache",
65+
".venv",
66+
".vscode",
67+
"__pypackages__",
68+
"dist",
69+
"passageidentity/openapi_client",
70+
]
71+
line-length = 120
72+
indent-width = 4
73+
target-version = "py38"
74+
75+
[tool.ruff.lint]
76+
select = ["ALL"]
77+
ignore = []
78+
fixable = ["ALL"]
79+
unfixable = []
80+
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
81+
82+
[tool.ruff.lint.per-file-ignores]
83+
"tests/**.py" = ["D", "S101", "PLR2004"]
84+
85+
[tool.ruff.format]
86+
quote-style = "double"
87+
indent-style = "space"
88+
skip-magic-trailing-comma = false
89+
line-ending = "auto"

ruff.toml

Lines changed: 0 additions & 68 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 71 deletions
This file was deleted.

0 commit comments

Comments
 (0)