Skip to content

Commit d3f2a02

Browse files
committed
fix: Remove pyproject.toml from .genignore
Update related metadata in `.speakeasy/gen.yaml` so that the `pyproject.toml` can be autogenerated. This fixes a number of issues that we have had with speakeasy generation (basically there was no way for the generation to update dependencies, add scripts, etc).
1 parent 9a3cfc8 commit d3f2a02

File tree

3 files changed

+23
-16
lines changed

3 files changed

+23
-16
lines changed

.genignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
pyproject.toml

.speakeasy/gen.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ python:
4040
- input
4141
asyncMode: both
4242
authors:
43-
- Speakeasy
43+
- Glean Technologies, Inc.
4444
baseErrorName: GleanBaseError
4545
clientServerStatusCodesAsErrors: true
4646
defaultErrorName: GleanError
@@ -69,7 +69,7 @@ python:
6969
moduleName: glean.api_client
7070
outputModelSuffix: output
7171
packageManager: poetry
72-
packageName: glean
72+
packageName: glean-api-client
7373
pytestFilterWarnings: []
7474
pytestTimeout: 0
7575
responseFormat: flat

pyproject.toml

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,37 @@
1+
12
[project]
23
name = "glean-api-client"
34
version = "0.11.22"
45
description = "Python Client SDK Generated by Speakeasy."
5-
authors = [{ name = "Glean Technologies, Inc." }]
6-
license = "MIT"
7-
# NOTE: scripts/prepare_readme.py tweaks this to point to README-PYPI.md for publication
8-
# The published readme has relative URLs converted to absolute URLs for PyPI compatibility
9-
readme = "README.md"
10-
requires-python = ">=3.9"
11-
dependencies = ["httpx >=0.28.1", "pydantic >=2.11.2"]
6+
authors = [{ name = "Glean Technologies, Inc." },]
7+
readme = "README-PYPI.md"
8+
requires-python = ">=3.9.2"
9+
dependencies = [
10+
"httpcore >=1.0.9",
11+
"httpx >=0.28.1",
12+
"pydantic >=2.11.2",
13+
]
1214

1315
[tool.poetry]
14-
packages = [{ include = "glean", from = "src" }]
15-
include = ["py.typed", "src/glean/py.typed"]
16+
repository = "https://github.com/gleanwork/api-client-python.git"
17+
packages = [
18+
{ include = "glean", from = "src" }
19+
]
20+
include = ["py.typed", "src/glean/api_client/py.typed"]
1621

1722
[tool.setuptools.package-data]
18-
"*" = ["py.typed", "src/glean/py.typed"]
23+
"*" = ["py.typed", "src/glean/api_client/py.typed"]
1924

2025
[virtualenvs]
2126
in-project = true
2227

2328
[tool.poetry.group.dev.dependencies]
2429
mypy = "==1.15.0"
2530
pylint = "==3.2.3"
26-
pytest = "^8.3.4"
27-
pytest-asyncio = "^0.25.3"
28-
pytest-xdist = "^3.6.1"
31+
pyright = "==1.1.398"
32+
pytest = "^8.4.1"
33+
pytest-asyncio = "==1.2.0"
34+
pytest-xdist = "^3.8.0"
2935

3036
[build-system]
3137
requires = ["poetry-core"]
@@ -51,3 +57,5 @@ ignore_missing_imports = true
5157
[tool.pyright]
5258
venvPath = "."
5359
venv = ".venv"
60+
61+

0 commit comments

Comments
 (0)