Skip to content

Commit 3af2cc4

Browse files
author
Brett Chaldecott
committed
fix: resolve v1 management API and Python 3.13 compatibility issues
- Update OpenAPI generator to latest version for Python 3.13 support - Regenerate all API models and client code with updated generator - Fix configuration and API client compatibility issues - Update project structure to use Poetry for better dependency management - Add comprehensive test coverage for all API endpoints - Update documentation with new usage examples and migration guides - Resolve deprecated Python syntax and compatibility warnings - Add support for all management API endpoints - Improve error handling and exception management - Update dependencies to compatible versions for Python 3.13 Breaking changes: - Project structure changed from setuptools to Poetry - Some model imports may need updating due to reorganized structure Fixes issues with: - Python 3.13 compatibility warnings - Management API endpoint coverage - Client initialization and configuration - Model serialization/deserialization
1 parent 229ba60 commit 3af2cc4

File tree

811 files changed

+112823
-2307
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

811 files changed

+112823
-2307
lines changed

.github/workflows/python.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# NOTE: This file is auto generated by OpenAPI Generator.
2+
# URL: https://openapi-generator.tech
3+
#
4+
# ref: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
5+
6+
name: kinde_sdk Python package
7+
8+
on: [push, pull_request]
9+
10+
jobs:
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v4
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install -r requirements.txt
28+
pip install -r test-requirements.txt
29+
- name: Test with pytest
30+
run: |
31+
pytest --cov=kinde_sdk

.gitignore

Lines changed: 9 additions & 186 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
### Python template
21
# Byte-compiled / optimized / DLL files
32
__pycache__/
43
*.py[cod]
@@ -9,6 +8,7 @@ __pycache__/
98

109
# Distribution / packaging
1110
.Python
11+
env/
1212
build/
1313
develop-eggs/
1414
dist/
@@ -20,7 +20,6 @@ lib64/
2020
parts/
2121
sdist/
2222
var/
23-
wheels/
2423
*.egg-info/
2524
.installed.cfg
2625
*.egg
@@ -43,201 +42,25 @@ htmlcov/
4342
.cache
4443
nosetests.xml
4544
coverage.xml
46-
*.cover
45+
*,cover
4746
.hypothesis/
47+
venv/
48+
.venv/
49+
.python-version
50+
.pytest_cache
4851

4952
# Translations
5053
*.mo
5154
*.pot
5255

5356
# Django stuff:
54-
staticfiles/
57+
*.log
5558

5659
# Sphinx documentation
5760
docs/_build/
5861

5962
# PyBuilder
6063
target/
6164

62-
# pyenv
63-
.python-version
64-
65-
# celery beat schedule file
66-
celerybeat-schedule
67-
68-
# Environments
69-
.venv
70-
venv/
71-
ENV/
72-
73-
# Rope project settings
74-
.ropeproject
75-
76-
# mkdocs documentation
77-
/site
78-
79-
# mypy
80-
.mypy_cache/
81-
82-
83-
### Node template
84-
# Logs
85-
logs
86-
*.log
87-
npm-debug.log*
88-
yarn-debug.log*
89-
yarn-error.log*
90-
91-
# Runtime data
92-
pids
93-
*.pid
94-
*.seed
95-
*.pid.lock
96-
97-
# Directory for instrumented libs generated by jscoverage/JSCover
98-
lib-cov
99-
100-
# Coverage directory used by tools like istanbul
101-
coverage
102-
103-
# nyc test coverage
104-
.nyc_output
105-
106-
# Bower dependency directory (https://bower.io/)
107-
bower_components
108-
109-
# node-waf configuration
110-
.lock-wscript
111-
112-
# Compiled binary addons (http://nodejs.org/api/addons.html)
113-
build/Release
114-
115-
# Dependency directories
116-
node_modules/
117-
jspm_packages/
118-
119-
# Typescript v1 declaration files
120-
typings/
121-
122-
# Optional npm cache directory
123-
.npm
124-
125-
# Optional eslint cache
126-
.eslintcache
127-
128-
# Optional REPL history
129-
.node_repl_history
130-
131-
# Output of 'npm pack'
132-
*.tgz
133-
134-
# Yarn Integrity file
135-
.yarn-integrity
136-
137-
138-
### Linux template
139-
*~
140-
141-
# temporary files which can be created if a process still has a handle open of a deleted file
142-
.fuse_hidden*
143-
144-
# KDE directory preferences
145-
.directory
146-
147-
# Linux trash folder which might appear on any partition or disk
148-
.Trash-*
149-
150-
# .nfs files are created when an open file is removed but is still being accessed
151-
.nfs*
152-
153-
154-
### VisualStudioCode template
155-
.vscode/*
156-
!.vscode/settings.json
157-
!.vscode/tasks.json
158-
!.vscode/launch.json
159-
!.vscode/extensions.json
160-
*.code-workspace
161-
162-
# Local History for Visual Studio Code
163-
.history/
164-
165-
.idea/
166-
167-
# CMake
168-
cmake-build-debug/
169-
170-
## File-based project format:
171-
*.iws
172-
173-
## Plugin-specific files:
174-
175-
# IntelliJ
176-
out/
177-
178-
# mpeltonen/sbt-idea plugin
179-
.idea_modules/
180-
181-
# JIRA plugin
182-
atlassian-ide-plugin.xml
183-
184-
# Crashlytics plugin (for Android Studio and IntelliJ)
185-
com_crashlytics_export_strings.xml
186-
crashlytics.properties
187-
crashlytics-build.properties
188-
fabric.properties
189-
190-
191-
192-
### Windows template
193-
# Windows thumbnail cache files
194-
Thumbs.db
195-
ehthumbs.db
196-
ehthumbs_vista.db
197-
198-
# Dump file
199-
*.stackdump
200-
201-
# Folder config file
202-
Desktop.ini
203-
204-
# Recycle Bin used on file shares
205-
$RECYCLE.BIN/
206-
207-
# Windows Installer files
208-
*.cab
209-
*.msi
210-
*.msm
211-
*.msp
212-
213-
# Windows shortcuts
214-
*.lnk
215-
216-
217-
### macOS template
218-
# General
219-
*.DS_Store
220-
.AppleDouble
221-
.LSOverride
222-
223-
# Icon must end with two \r
224-
Icon
225-
226-
# Thumbnails
227-
._*
228-
229-
# Files that might appear in the root of a volume
230-
.DocumentRevisions-V100
231-
.fseventsd
232-
.Spotlight-V100
233-
.TemporaryItems
234-
.Trashes
235-
.VolumeIcon.icns
236-
.com.apple.timemachine.donotpresent
237-
238-
# Directories potentially created on remote AFP share
239-
.AppleDB
240-
.AppleDesktop
241-
Network Trash Folder
242-
Temporary Items
243-
.apdisk
65+
#Ipython Notebook
66+
.ipynb_checkpoints

.gitlab-ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# NOTE: This file is auto generated by OpenAPI Generator.
2+
# URL: https://openapi-generator.tech
3+
#
4+
# ref: https://docs.gitlab.com/ee/ci/README.html
5+
# ref: https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Python.gitlab-ci.yml
6+
7+
stages:
8+
- test
9+
10+
.pytest:
11+
stage: test
12+
script:
13+
- pip install -r requirements.txt
14+
- pip install -r test-requirements.txt
15+
- pytest --cov=kinde_sdk
16+
17+
pytest-3.9:
18+
extends: .pytest
19+
image: python:3.9-alpine
20+
pytest-3.10:
21+
extends: .pytest
22+
image: python:3.10-alpine
23+
pytest-3.11:
24+
extends: .pytest
25+
image: python:3.11-alpine
26+
pytest-3.12:
27+
extends: .pytest
28+
image: python:3.12-alpine
29+
pytest-3.13:
30+
extends: .pytest
31+
image: python:3.13-alpine

0 commit comments

Comments
 (0)