Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"terminal.integrated.env.osx": {
"PYTHONPATH": "${workspaceFolder}"
},
"terminal.integrated.env.windows": {
"PYTHONPATH": "${workspaceFolder}"
},
"files.insertFinalNewline": true,
"[javascript]": {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "always"
},
},
"[python]": {
"editor.codeActionsOnSave": {
"source.fixAll": "explicit",
"source.organizeImports": "explicit"
},
"editor.formatOnSave": true,
"editor.defaultFormatter": "charliermarsh.ruff",
},
"python.languageServer": "Pylance",
"python.analysis.typeCheckingMode": "strict",
}
14 changes: 14 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[mypy]
check_untyped_defs = True
disallow_untyped_calls = True
disallow_untyped_decorators = True
disallow_untyped_defs = True
ignore_missing_imports = True
show_column_numbers = True
strict = True
strict_bytes = True
strict_equality = True
warn_redundant_casts = True
warn_return_any = True
warn_unreachable = True
warn_unused_ignores = True
53 changes: 35 additions & 18 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,35 +1,52 @@
[build-system]
#https://python-poetry.org/docs/pyproject
requires = ["poetry-core>=1.0.0"]
requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"

[tool.poetry]
[project]
name = "pysafeguard"
description = "One Identity Safeguard Python Package"
version = "7.4.0"
readme = "README.md"
keywords = ["safeguard","oneidentity"]
readme = { file = "README.md", content-type = "text/markdown" }
keywords = ["safeguard", "oneidentity"]
license = "Apache"
repository = "https://github.com/OneIdentity/PySafeguard"
authors = [
"Tania Engel <Tania.Engel@oneidentity.com>",
{ name = "Tania Engel", email = "Tania.Engel@oneidentity.com" }
]
maintainers = [
"Stephanie Zinn <Stephanie.Zinn@oneidentity.com>"
{ name = "Stephanie Zinn", email = "Stephanie.Zinn@oneidentity.com" }
]
requires-python = ">=3.10"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3 :: Only",
"Operating System :: OS Independent",
]
dependencies = [
"requests >= 2.32",
"truststore >= 0.10",
"typing_extensions >= 4.15; python_version < '3.11'",
]

[tool.poetry.urls]
"Bug Tracker" = "https://github.com/OneIdentity/PySafeguard/issues"

[tool.poetry.dependencies]
python = "^3.7"
requests = "^2.28.1"
#signalrcore is optional because it is only imported for SignalR functionality
signalrcore = { version="^0.9.5", optional = true }
[project.optional-dependencies]
async = [
"aiohttp >= 3.13",
]
signalr = [
"signalrcore >= 0.9",
]
dev = [
"types-requests >= 2.32",
"mypy >= 1.19",
"ruff >= 0.14",
]

[tool.poetry.extras]
signalr = ["signalrcore"]
[project.urls]
"Bug Tracker" = "https://github.com/OneIdentity/PySafeguard/issues"
1 change: 1 addition & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
line-length = 160
260 changes: 0 additions & 260 deletions src/pysafeguard.py

This file was deleted.

Loading