Skip to content

Commit 05574da

Browse files
committed
Removed all the redundant Python files and simply migrated everything to Poetry.
1 parent 1b95b2a commit 05574da

File tree

8 files changed

+50
-100
lines changed

8 files changed

+50
-100
lines changed

.openapi-generator-ignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ git_push.sh
1313
setup.cfg
1414
setup.py
1515
pyproject.toml
16+
poetry.lock
17+
requirements.txt
18+
test-requirements.txt
19+
tox.ini

poetry.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 44 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,64 @@
1-
[tool.poetry]
1+
[project]
22
name = "zitadel_client"
33
version = "0.0.1"
44
description = "Official Zitadel SDK for Python. Authenticate and access Zitadel's authentication and management APIs in Python."
5-
authors = ["OpenAPI Generator Community <team@openapitools.org>"]
6-
license = "NoLicense"
5+
license = { text = "Apache-2.0" }
76
readme = "README.md"
8-
repository = "https://github.com/zitadel/python-client"
9-
keywords = ["OpenAPI", "OpenAPI-Generator"]
10-
include = ["zitadel_client/py.typed"]
7+
requires-python = ">=3.8"
8+
authors = [
9+
{ name = "Mridang Agarwalla", email = "mridang@zitadel.com" }
10+
]
11+
keywords = ["sdk", "iam", "client-lib", "client-library", "sdk-python", "zitadel", "zitadel-sdk"]
12+
classifiers = [
13+
"Topic :: Software Development :: Libraries"
14+
]
15+
dependencies = [
16+
"urllib3>=1.25.3,<3.0.0",
17+
"python-dateutil>=2.8.2",
18+
"pydantic>=2",
19+
"typing-extensions>=4.7.1"
20+
]
1121

12-
[tool.poetry.dependencies]
13-
python = "^3.8"
22+
[project.urls]
23+
homepage = "https://zitadel.com/"
24+
repository = "https://github.com/zitadel/client-python"
25+
documentation = "https://python-poetry.org/docs/"
26+
"Bug Tracker" = "https://github.com/zitadel/client-python/issues"
1427

15-
urllib3 = ">= 1.25.3, < 3.0.0"
16-
python-dateutil = ">= 2.8.2"
17-
pydantic = ">= 2"
18-
typing-extensions = ">= 4.7.1"
28+
[tool.poetry]
29+
include = ["zitadel_client/py.typed"]
1930

20-
[tool.poetry.dev-dependencies]
31+
[tool.poetry.group.dev.dependencies]
2132
pytest = ">= 7.2.1"
2233
pytest-cov = ">= 2.8.1"
2334
tox = ">= 3.9.0"
2435
flake8 = ">= 4.0.0"
2536
types-python-dateutil = ">= 2.8.19.14"
2637
mypy = ">= 1.5"
2738

28-
2939
[build-system]
30-
requires = ["setuptools"]
31-
build-backend = "setuptools.build_meta"
40+
requires = ["poetry-core>=1.0.0"]
41+
build-backend = "poetry.core.masonry.api"
42+
43+
[tool.tox]
44+
envlist = ["py3"]
45+
46+
[testenv]
47+
deps = [
48+
"pytest",
49+
"pytest-cov"
50+
]
51+
commands = [
52+
"pytest --cov=zitadel_client"
53+
]
3254

3355
[tool.pylint.'MESSAGES CONTROL']
3456
extension-pkg-whitelist = "pydantic"
3557

3658
[tool.mypy]
3759
files = [
38-
"zitadel_client",
39-
#"test", # auto-generated tests
40-
"tests", # hand-written tests
60+
"zitadel_client",
61+
"tests",
4162
]
4263
# TODO: enable "strict" once all these individual checks are passing
4364
# strict = true
@@ -60,20 +81,9 @@ disallow_subclassing_any = true
6081
disallow_untyped_decorators = true
6182
disallow_any_generics = true
6283

63-
### These next few are various gradations of forcing use of type annotations
64-
#disallow_untyped_calls = true
65-
#disallow_incomplete_defs = true
66-
#disallow_untyped_defs = true
67-
#
68-
### This one isn't too hard to get passing, but return on investment is lower
69-
#no_implicit_reexport = true
70-
#
71-
### This one can be tricky to get passing if you use a lot of untyped libraries
72-
#warn_return_any = true
73-
7484
[[tool.mypy.overrides]]
7585
module = [
76-
"zitadel_client.configuration",
86+
"zitadel_client.configuration",
7787
]
7888
warn_unused_ignores = true
7989
strict_equality = true
@@ -87,3 +97,6 @@ disallow_incomplete_defs = true
8797
disallow_untyped_defs = true
8898
no_implicit_reexport = true
8999
warn_return_any = true
100+
101+
[tool.flake8]
102+
max-line-length = 99

requirements.txt

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

setup.cfg

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

setup.py

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

test-requirements.txt

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

tox.ini

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

0 commit comments

Comments
 (0)