Skip to content

Commit

Permalink
chore: prepare release v0.1.9 (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
zifeo authored May 26, 2023
1 parent ae4640f commit ebb322f
Show file tree
Hide file tree
Showing 21 changed files with 86 additions and 27 deletions.
16 changes: 8 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dev/lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ dev:
NODE_VERSION: 19.8.1
PNPM_VERSION: 8.1.0
TYPEGRAPH_VERSION: 0.0.1
METATYPE_VERSION: 0.1.9-dev.0
METATYPE_VERSION: 0.1.9
TAGLINE: >-
Open source, low-code backend platform for developers — build modular APIs
with zero-trust and serverless deployment, no matter where and how
Expand Down
2 changes: 1 addition & 1 deletion examples/templates/new/compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
typegate:
image: ghcr.io/metatypedev/typegate:v0.1.9-dev.0
image: ghcr.io/metatypedev/typegate:v0.1.9
platform: linux/amd64
restart: always
ports:
Expand Down
4 changes: 2 additions & 2 deletions examples/templates/new/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[tool.poetry]
name = "example"
version = "0.1.9-dev.0"
version = "0.1.9"
description = ""
authors = []
readme = "README.md"

[tool.poetry.dependencies]
python = ">=3.8,<4.0"
typegraph = "0.1.9-dev.0"
typegraph = "0.1.9"

[build-system]
requires = ["poetry-core"]
Expand Down
2 changes: 1 addition & 1 deletion examples/typegraphs/petstore/petstore.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typegraph import TypeGraph, policies, t
from typegraph.runtimes.http import HTTPRuntime

with TypeGraph("swagger-petstore") as g:
with TypeGraph("swagger_petstore") as g:
remote = HTTPRuntime("https://petstore.swagger.io/v2")

public = policies.public()
Expand Down
3 changes: 2 additions & 1 deletion examples/typegraphs/petstore_v3/petstore_v3.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from box import Box

from typegraph import TypeGraph, t
from typegraph.importers.base.importer import Import
from typegraph.importers.openapi import OpenApiImporter
Expand Down Expand Up @@ -228,5 +229,5 @@ def import_petstore():
)


with TypeGraph(name="petstore-v3") as g:
with TypeGraph(name="petstore_v3") as g:
pass
2 changes: 1 addition & 1 deletion libs/common/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "common"
version = "0.1.9-dev.0"
version = "0.1.9"
edition = "2021"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion libs/macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "macros"
version = "0.1.9-dev.0"
version = "0.1.9"
edition = "2021"

[lib]
Expand Down
2 changes: 1 addition & 1 deletion libs/typescript/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "typescript"
version = "0.1.9-dev.0"
version = "0.1.9"
edition = "2021"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion libs/xtask/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "xtask"
version = "0.1.9-dev.0"
version = "0.1.9"
edition = "2021"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion meta-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "meta-cli"
version = "0.1.9-dev.0"
version = "0.1.9"
edition = "2021"

description = "Open source, low-code backend platform for developers — build modular APIs with zero-trust and serverless deployment, no matter where and how (legacy) systems are."
Expand Down
2 changes: 1 addition & 1 deletion typegate/native/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "native"
version = "0.1.9-dev.0"
version = "0.1.9"
edition = "2021"

[lib]
Expand Down
2 changes: 1 addition & 1 deletion typegate/tests/runtimes/wasmedge/rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rust"
version = "0.1.9-dev.0"
version = "0.1.9"
edition = "2021"

[lib]
Expand Down
2 changes: 1 addition & 1 deletion typegraph/core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "typegraph_core"
version = "0.1.9-dev.0"
version = "0.1.9"
edition = "2021"


Expand Down
2 changes: 1 addition & 1 deletion typegraph/python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "typegraph"
version = "0.1.9-dev.0"
version = "0.1.9"
description = "Open source, low-code backend platform for developers — build modular APIs with zero-trust and serverless deployment, no matter where and how (legacy) systems are."
authors = ["Metatype Contributors <[email protected]>"]
license = "MPL-2.0"
Expand Down
2 changes: 1 addition & 1 deletion typegraph/python/typegraph/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
from typegraph import types as t # noqa
from typegraph.graph.typegraph import TypeGraph # noqa

version = "0.1.9-dev.0"
version = "0.1.9"
2 changes: 1 addition & 1 deletion typegraph/rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "typegraph"
version = "0.1.9-dev.0"
version = "0.1.9"
edition = "2021"
license-file = "../../LICENSE-MPL-2.0.md"

Expand Down
7 changes: 7 additions & 0 deletions website/docs/reference/typegraph/python/pydoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@
"label": "typegraph.runtimes",
"type": "category"
},
{
"items": [
"docs/reference/typegraph/python/typegraph/utils/sanitizers"
],
"label": "typegraph.utils",
"type": "category"
},
"docs/reference/typegraph/python/typegraph/injection",
"docs/reference/typegraph/python/typegraph/types"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,27 @@ sidebar_label: openapi
title: typegraph.importers.openapi
---

#### ref\_to\_name

```python
def ref_to_name(ref: str) -> str
```

Example match:

`#/components/schemas/financial_connections.account_owner`

#### create\_fn\_name

```python
def create_fn_name(method: str, path: str)
```

**Example**:


`method`=get, `path`=/users/{id} => getUsersId

## OpenApiImporter Objects

```python
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
sidebar_label: sanitizers
title: typegraph.utils.sanitizers
---

#### inject\_params

```python
def inject_params(s: str, params: Union[None, Dict[str, str]])
```

**Example**:


s = `"{protocol}://{hostname}"`, params= `{'protocol': 'http', 'hostname': 'example.com'}`

returns `"http://example.com"`

#### as\_attr

```python
def as_attr(name: str)
```

Convert a string into valid attribute

**Example**:


`root:some complicated/Name` => `root_some_complicated_Name`
4 changes: 2 additions & 2 deletions whiz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ typegate1: &tp
TG_PORT: "7891"
PACKAGED: "false"
LOG_LEVEL: "DEBUG"
DYLD_LIBRARY_PATH: "$HOME/.wasmedge/lib:$DYLD_LIBRARY_PATH"
LD_LIBRARY_PATH: "$HOME/.wasmedge/lib:$LD_LIBRARY_PATH"
DYLD_LIBRARY_PATH: "$HOME/.wasmedge/lib:$DYLD_LIBRARY_PATH" # macOS
LD_LIBRARY_PATH: "$HOME/.wasmedge/lib:$LD_LIBRARY_PATH" # linux
DEBUG: "true"
REDIS_URL: "redis://:password@localhost:6379/0"
TG_SECRET: "a4lNi0PbEItlFZbus1oeH/+wyIxi9uH6TpL8AIqIaMBNvp7SESmuUBbfUwC0prxhGhZqHw8vMDYZAGMhSZ4fLw=="
Expand Down

0 comments on commit ebb322f

Please sign in to comment.