mirror of
https://github.com/trailbaseio/trailbase.git
synced 2025-12-30 14:19:43 -06:00
Move python client to /client/python/.
This commit is contained in:
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@@ -43,7 +43,7 @@ jobs:
|
||||
python-version: '3.13'
|
||||
- name: Poetry install
|
||||
run: |
|
||||
pipx install poetry && poetry -C client/trailbase-py install
|
||||
pipx install poetry && poetry -C client/python install
|
||||
# - name: Setup Go
|
||||
# uses: actions/setup-go@v5
|
||||
# with:
|
||||
|
||||
@@ -123,21 +123,21 @@ repos:
|
||||
### Python client
|
||||
- id: python_format
|
||||
name: Python format
|
||||
entry: poetry -C client/trailbase-py run black --config pyproject.toml --check .
|
||||
entry: poetry -C client/python run black --config pyproject.toml --check .
|
||||
language: system
|
||||
types: [python]
|
||||
pass_filenames: false
|
||||
|
||||
- id: python_check
|
||||
name: Python check
|
||||
entry: poetry -C client/trailbase-py run pyright --outputjson
|
||||
entry: poetry -C client/python run pyright --outputjson
|
||||
language: system
|
||||
types: [python]
|
||||
pass_filenames: false
|
||||
|
||||
- id: python_test
|
||||
name: Python test
|
||||
entry: poetry -C client/trailbase-py run pytest
|
||||
entry: poetry -C client/python run pytest
|
||||
language: system
|
||||
types: [python]
|
||||
pass_filenames: false
|
||||
|
||||
4
Makefile
4
Makefile
@@ -11,7 +11,7 @@ format:
|
||||
txtpbfmt `find . -regex ".*.textproto" | grep -v config.textproto`; \
|
||||
dotnet format client/dotnet/trailbase; \
|
||||
dotnet format client/dotnet/test; \
|
||||
poetry -C client/trailbase-py run black --config pyproject.toml .; \
|
||||
poetry -C client/python run black --config pyproject.toml .; \
|
||||
swift format -r -i client/swift/trailbase/**/*.swift; \
|
||||
gofmt -w **/*.go;
|
||||
|
||||
@@ -21,7 +21,7 @@ check:
|
||||
dart analyze; \
|
||||
dotnet format client/dotnet/trailbase --verify-no-changes; \
|
||||
dotnet format client/dotnet/test --verify-no-changes; \
|
||||
poetry -C client/trailbase-py run pyright
|
||||
poetry -C client/python run pyright
|
||||
|
||||
docker:
|
||||
docker buildx build --platform linux/arm64,linux/amd64 --output=type=registry -t trailbase/trailbase:latest .
|
||||
|
||||
@@ -21,7 +21,7 @@ class TrailBaseFixture:
|
||||
|
||||
def __init__(self) -> None:
|
||||
cwd = os.getcwd()
|
||||
traildepot = "../testfixture" if cwd.endswith("trailbase-py") else "client/testfixture"
|
||||
traildepot = "../testfixture" if cwd.endswith("python") else "client/testfixture"
|
||||
|
||||
logger.info("Building TrailBase")
|
||||
build = subprocess.run(["cargo", "build"])
|
||||
6
docs/examples/record_api_py/poetry.lock
generated
6
docs/examples/record_api_py/poetry.lock
generated
@@ -493,7 +493,7 @@ files = [
|
||||
|
||||
[[package]]
|
||||
name = "trailbase"
|
||||
version = "0.3.0"
|
||||
version = "0.4.0"
|
||||
description = "TrailBase client for Python"
|
||||
optional = false
|
||||
python-versions = "^3.12"
|
||||
@@ -508,7 +508,7 @@ pyjwt = "^2.10.0"
|
||||
|
||||
[package.source]
|
||||
type = "directory"
|
||||
url = "../../../client/trailbase-py"
|
||||
url = "../../../client/python"
|
||||
|
||||
[[package]]
|
||||
name = "typing-extensions"
|
||||
@@ -526,4 +526,4 @@ markers = {main = "python_version < \"3.13\""}
|
||||
[metadata]
|
||||
lock-version = "2.1"
|
||||
python-versions = "^3.12"
|
||||
content-hash = "71bb1977fce56458d00419bb62a9112bc8c479d1063c3b835fed7c8092f4737b"
|
||||
content-hash = "af05be45b5aa841db3cdc0b17d2ae133b40a7fdd1d22bec70244a3420ff40127"
|
||||
|
||||
@@ -10,7 +10,7 @@ requires-python = "^3.12"
|
||||
requires-poetry = "^2.0"
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
trailbase = { path = "../../../client/trailbase-py" }
|
||||
trailbase = { path = "../../../client/python" }
|
||||
|
||||
[tool.poetry.group.dev.dependencies]
|
||||
black = "^24.10.0"
|
||||
@@ -31,4 +31,4 @@ typeCheckingMode = "strict"
|
||||
useLibraryCodeForTypes = true
|
||||
verboseOutput = true
|
||||
reportMissingTypeStubs = "warning"
|
||||
extraPaths = ["../../../client/trailbase-py/"]
|
||||
extraPaths = ["../../../client/python/"]
|
||||
|
||||
Reference in New Issue
Block a user