Skip to content

Commit b25bc34

Browse files
abhiaagarwalrhamzeh
authored andcommitted
chore: move to packaging with pyproject.toml
Original PR: openfga/sdk-generator#550
1 parent 89a39d1 commit b25bc34

File tree

7 files changed

+1050
-82
lines changed

7 files changed

+1050
-82
lines changed

.openapi-generator-ignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ test/*
1515
.travis.yml
1616
tox.ini
1717
setup.cfg
18+
setup.py
19+
requirements.txt
20+
test-requirements.txt

.openapi-generator/FILES

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,9 +254,6 @@ openfga_sdk/telemetry/telemetry.py
254254
openfga_sdk/validation.py
255255
pyproject.toml
256256
README.md
257-
requirements.txt
258-
setup.py
259-
test-requirements.txt
260257
test/__init__.py
261258
test/_/configuration_test.py
262259
test/_/credentials_test.py

pyproject.toml

Lines changed: 62 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,64 @@
1+
#
2+
# Python SDK for OpenFGA
3+
#
4+
# API version: 1.x
5+
# Website: https://openfga.dev
6+
# Documentation: https://openfga.dev/docs
7+
# Support: https://openfga.dev/community
8+
# License: [Apache-2.0](https://github.com/openfga/python-sdk/blob/main/LICENSE)
9+
#
10+
11+
[project]
12+
name = "openfga-sdk"
13+
version = "0.9.5"
14+
description="A high performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar."
15+
authors = [
16+
{ name = "OpenFGA (https://openfga.dev)", email = "[email protected]"}
17+
]
18+
readme = "README.md"
19+
classifiers=[
20+
"Development Status :: 5 - Production/Stable",
21+
"Intended Audience :: Developers",
22+
"License :: OSI Approved :: Apache Software License",
23+
"Programming Language :: Python :: 3.10",
24+
"Programming Language :: Python :: 3.11",
25+
"Programming Language :: Python :: 3.12",
26+
]
27+
keywords=[
28+
"openfga",
29+
"authorization",
30+
"fga",
31+
"fine-grained-authorization",
32+
"rebac",
33+
"zanzibar",
34+
]
35+
requires-python=">=3.10"
36+
license="Apache-2.0"
37+
dependencies = [
38+
"aiohttp>=3.9.3",
39+
"python-dateutil>=2.9.0",
40+
"opentelemetry-api>=1.25.0",
41+
"urllib3>=1.26.19,<3"
42+
]
43+
44+
[project.urls]
45+
Repository="https://github.com/openfga/python-sdk.git"
46+
47+
[dependency-groups]
48+
dev = [
49+
"griffe>=0.41.2",
50+
"mock>=5.1.0",
51+
"pytest-asyncio>=0.25",
52+
"pytest-cov>=5",
53+
"ruff>=0.9",
54+
"mypy>=1.14.1",
55+
]
56+
57+
[build-system]
58+
requires = ["hatchling"]
59+
build-backend = "hatchling.build"
60+
61+
162
[tool.ruff]
263
exclude = [
364
".bzr",
@@ -79,7 +140,7 @@ asyncio_default_fixture_loop_scope = "function"
79140
python_version = "3.10"
80141
packages = "openfga_sdk"
81142
exclude = [
82-
"openfa_sdk/models",
143+
"openfga_sdk/models",
83144
]
84145
#warn_return_any = "True"
85146
#warn_unused_configs = "True"

requirements.txt

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

setup.py

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

test-requirements.txt

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

0 commit comments

Comments
 (0)