Skip to content

Commit a38885e

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

File tree

3 files changed

+89
-143
lines changed

3 files changed

+89
-143
lines changed

pyproject.toml

Lines changed: 89 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,91 @@
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+
where = ["passageidentity"]
58+
include = ["passageidentity*"]
59+
namespaces = false
60+
61+
[tool.ruff]
62+
exclude = [
63+
".eggs",
64+
".git",
65+
".pytest_cache",
66+
".ruff_cache",
67+
".venv",
68+
".vscode",
69+
"__pypackages__",
70+
"dist",
71+
"passageidentity/openapi_client",
72+
]
73+
line-length = 120
74+
indent-width = 4
75+
target-version = "py38"
76+
77+
[tool.ruff.lint]
78+
select = ["ALL"]
79+
ignore = []
80+
fixable = ["ALL"]
81+
unfixable = []
82+
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
83+
84+
[tool.ruff.lint.per-file-ignores]
85+
"tests/**.py" = ["D", "S101", "PLR2004"]
86+
87+
[tool.ruff.format]
88+
quote-style = "double"
89+
indent-style = "space"
90+
skip-magic-trailing-comma = false
91+
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)