@adhd/apigen-python-env 0.1.5 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,59 @@
1
+ [build-system]
2
+ requires = ["setuptools>=68", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "apigen-python"
7
+ version = "0.0.1"
8
+ description = "Python host for @adhd/apigen — extractor, runtime, gateway adapter (SPEC §14)"
9
+ readme = "README.md"
10
+ requires-python = ">=3.11"
11
+ license = { text = "MIT" }
12
+ keywords = ["apigen", "polyglot", "api", "code-generation"]
13
+
14
+ dependencies = [
15
+ # jsonschema is optional: the runtime falls back to a minimal stdlib validator
16
+ # when it is not installed, so the package works offline/in CI without pip.
17
+ # Add it here for completeness; run_tests.py works either way.
18
+ ]
19
+
20
+ [project.optional-dependencies]
21
+ jsonschema = [
22
+ "jsonschema>=4.0",
23
+ ]
24
+ # flask is an optional HTTP server backend for flask_server.py.
25
+ # When not installed, flask_server.py falls back to Python's stdlib
26
+ # http.server (ThreadingHTTPServer) which is fully functional.
27
+ flask = [
28
+ "flask>=3.0",
29
+ ]
30
+ # grpc is required for grpc_server.py (the py-grpc apigen target).
31
+ # These are C-extension wheels; install separately:
32
+ # pip install grpcio grpcio-tools grpcio-reflection
33
+ grpc = [
34
+ "grpcio>=1.50",
35
+ "grpcio-tools>=1.50",
36
+ "grpcio-reflection>=1.50",
37
+ ]
38
+ dev = [
39
+ "jsonschema>=4.0",
40
+ "pytest>=7.0",
41
+ "pytest-asyncio>=0.21",
42
+ "grpcio>=1.50",
43
+ "grpcio-tools>=1.50",
44
+ "grpcio-reflection>=1.50",
45
+ ]
46
+
47
+ [project.scripts]
48
+ apigen-python-extractor = "apigen_python.extractor:_main"
49
+ apigen-python-adapter = "apigen_python.gateway_adapter:_main"
50
+ apigen-python-flask-server = "apigen_python.flask_server:_main"
51
+ apigen-python-grpc-server = "apigen_python.grpc_server:_main"
52
+
53
+ [tool.setuptools.packages.find]
54
+ where = ["."]
55
+ include = ["apigen_python*"]
56
+
57
+ [tool.pytest.ini_options]
58
+ asyncio_mode = "auto"
59
+ testpaths = ["tests"]