-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate python SDK into main python project
- Loading branch information
Showing
8 changed files
with
52 additions
and
1,293 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import importlib.metadata | ||
|
||
__version__ = importlib.metadata.version("infrahub") | ||
__version__ = importlib.metadata.version("infrahub-server") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[tool.poetry] | ||
name = "infrahub" | ||
name = "infrahub-server" | ||
version = "1.0.0-dev0" | ||
description = "Infrahub is taking a new approach to Infrastructure Management by providing a new generation of datastore to organize and control all the data that defines how an infrastructure should run." | ||
authors = ["OpsMill <[email protected]>"] | ||
|
@@ -16,20 +16,15 @@ classifiers = [ | |
"Programming Language :: Python :: 3.12", | ||
] | ||
|
||
packages = [{ include = "infrahub", from = "backend" }] | ||
|
||
|
||
[tool.poetry.group.test-scale] | ||
optional = true | ||
packages = [ | ||
{ include = "infrahub", from = "backend" }, | ||
{ include = "infrahub_sdk", from = "python_sdk" } | ||
] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.10, < 3.13" | ||
neo4j = "~5.24" | ||
neo4j-rust-ext = "^5.24.0.0" | ||
infrahub-sdk = { path = "python_sdk", extras = [ | ||
"ctl", | ||
"tests", | ||
], develop = true } | ||
pydantic = "2.7.2" | ||
pydantic-settings = "~2.2" | ||
pytest = "~7.4" | ||
|
@@ -40,6 +35,11 @@ email-validator = "~2.1" | |
redis = { version = "^5.0.0", extras = ["hiredis"] } | ||
typer = "0.12.3" | ||
prefect = "3.0.3" | ||
ujson = "^5" | ||
Jinja2 = "^3" | ||
gitpython = "^3" | ||
pyyaml = "^6" | ||
toml = "^0.10" | ||
|
||
# Dependencies specific to the API Server | ||
fastapi = "~0.112" | ||
|
@@ -61,6 +61,17 @@ nats-py = "^2.7.2" | |
netaddr = "1.3.0" | ||
authlib = "1.3.2" | ||
|
||
|
||
# Dependencies specific to the SDK | ||
rich = "^13" | ||
pyarrow = "^14" | ||
numpy = [ | ||
{ version = "^1.24.2", optional = true, python = ">=3.9,<3.12" }, | ||
{ version = "^1.26.2", optional = true, python = ">=3.12" }, | ||
] | ||
|
||
|
||
|
||
[tool.poetry.group.dev.dependencies] | ||
yamllint = "*" | ||
pylint = "~3.1" | ||
|
@@ -90,16 +101,20 @@ pytest-env = "^1.1.3" | |
testcontainers = "^4.8.1" | ||
pytest-timeout = "^2.3.1" | ||
|
||
[tool.poetry.group.test-scale.dependencies] | ||
locust = "^2.20.1" | ||
docker = "^7.0.0" | ||
matplotlib = "^3.8" | ||
pandas = "^2.2" | ||
# [tool.poetry.group.test-scale.dependencies] | ||
# locust = "^2.20.1" | ||
# docker = "^7.0.0" | ||
# matplotlib = "^3.8" | ||
# pandas = "^2.2" | ||
|
||
[tool.poetry.scripts] | ||
infrahub = "infrahub.cli:app" | ||
infrahub-git-credential = "infrahub.git_credential.helper:app" | ||
infrahub-git-askpass = "infrahub.git_credential.askpass:app" | ||
infrahubctl = "infrahub_sdk.ctl.cli:app" | ||
|
||
[tool.poetry.plugins."pytest11"] | ||
"pytest-infrahub" = "infrahub_sdk.pytest_plugin.plugin" | ||
|
||
[tool.poetry.plugins."prefect.collections"] | ||
"infrahubasync" = "infrahub.workers.infrahub_async" | ||
|
Submodule python_sdk
updated
19 files
+5 −0 | .github/file-filters.yml | |
+6 −1 | .github/workflows/ci.yml | |
+1 −0 | changelog/+connection-timeout.fixed.md | |
+1 −0 | changelog/64.fixed.md | |
+17 −0 | codecov.yml | |
+4 −1 | infrahub_sdk/__init__.py | |
+1 −1 | infrahub_sdk/config.py | |
+13 −3 | infrahub_sdk/ctl/cli_commands.py | |
+55 −0 | infrahub_sdk/ctl/menu.py | |
+48 −0 | infrahub_sdk/ctl/object.py | |
+3 −43 | infrahub_sdk/ctl/schema.py | |
+27 −2 | infrahub_sdk/ctl/utils.py | |
+2 −1 | infrahub_sdk/playback.py | |
+2 −0 | infrahub_sdk/protocols.py | |
+0 −0 | infrahub_sdk/spec/__init__.py | |
+35 −0 | infrahub_sdk/spec/menu.py | |
+128 −0 | infrahub_sdk/spec/object.py | |
+74 −2 | infrahub_sdk/yaml.py | |
+1 −1 | pyproject.toml |