Skip to content

Commit 8f2bf5a

Browse files
chore: Fix telemetry path, update metadata, and prepare for release
- fix: Use sys.modules["auth0"].__version__ for telemetry (matches auth0-python) - chore: Add description, authors, license, keywords, homepage to pyproject.toml - chore: Fix repository URL from fern-demo to auth0 - chore: Drop Python 3.8 support, require >=3.9 (pyproject.toml, README, classifiers) - chore: Add poetry-dynamic-versioning config for CI builds - chore: Update ruff to >=0.15.10
1 parent b71c0a3 commit 8f2bf5a

4 files changed

Lines changed: 38 additions & 38 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
This library supports the following tooling versions:
2525

26-
- Python >= 3.8
26+
- Python >= 3.9
2727

2828
### Installation
2929

poetry.lock

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

pyproject.toml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,20 @@ dynamic = ["version"]
55
[tool.poetry]
66
name = "myorganization-python"
77
version = "0.0.0"
8-
description = ""
8+
description = "Auth0 My Organization Python SDK"
99
readme = "README.md"
10-
authors = []
11-
keywords = []
10+
authors = ["Auth0 <support@auth0.com>"]
11+
license = "Apache-2.0"
12+
keywords = ["auth0", "authentication", "authorization", "organization", "oauth"]
1213

1314
classifiers = [
1415
"Intended Audience :: Developers",
1516
"Programming Language :: Python",
1617
"Programming Language :: Python :: 3",
17-
"Programming Language :: Python :: 3.8",
1818
"Programming Language :: Python :: 3.9",
1919
"Programming Language :: Python :: 3.10",
2020
"Programming Language :: Python :: 3.11",
2121
"Programming Language :: Python :: 3.12",
22-
"Programming Language :: Python :: 3.13",
23-
"Programming Language :: Python :: 3.14",
24-
"Programming Language :: Python :: 3.15",
2522
"Operating System :: OS Independent",
2623
"Operating System :: POSIX",
2724
"Operating System :: MacOS",
@@ -35,10 +32,11 @@ packages = [
3532
]
3633

3734
[tool.poetry.urls]
38-
Repository = 'https://github.com/fern-demo/myorganization-python'
35+
Repository = 'https://github.com/auth0/myorganization-python'
36+
Homepage = 'https://auth0.com'
3937

4038
[tool.poetry.dependencies]
41-
python = "^3.8"
39+
python = ">=3.9,<4.0"
4240
httpx = ">=0.21.2"
4341
pydantic = ">= 1.9.2"
4442
pydantic-core = ">=2.18.2"
@@ -54,7 +52,7 @@ python-dateutil = "^2.9.0"
5452
types-python-dateutil = "^2.9.0.20240316"
5553
requests = "^2.31.0"
5654
types-requests = "^2.31.0"
57-
ruff = ">=0.15.6"
55+
ruff = ">=0.15.10"
5856

5957
[tool.pytest.ini_options]
6058
testpaths = [ "tests" ]
@@ -87,6 +85,11 @@ ignore = [
8785
[tool.ruff.lint.isort]
8886
section-order = ["future", "standard-library", "third-party", "first-party"]
8987

88+
[tool.poetry-dynamic-versioning]
89+
enable = true
90+
style = "pep440"
91+
vcs = "none"
92+
9093
[build-system]
91-
requires = ["poetry-core"]
92-
build-backend = "poetry.core.masonry.api"
94+
requires = ["poetry-core", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
95+
build-backend = "poetry_dynamic_versioning.backend"

src/auth0/myorganization/core/client_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def __init__(
2929
def get_headers(self) -> typing.Dict[str, str]:
3030
# Dynamically get version from package metadata
3131
py_version = platform.python_version()
32-
version = sys.modules["auth0"].myorganization.__version__
32+
version = sys.modules["auth0"].__version__
3333

3434
# Build Auth0 telemetry in standard format
3535
auth0_client = dumps({

0 commit comments

Comments
 (0)