Skip to content

Commit

Permalink
release TrustSpecCli 0.1.24
Browse files Browse the repository at this point in the history
  • Loading branch information
wkarwacki committed Oct 26, 2024
1 parent 546c4c8 commit 53a87af
Show file tree
Hide file tree
Showing 11 changed files with 73 additions and 15 deletions.
2 changes: 1 addition & 1 deletion 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 Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "trust"
version = "0.1.23"
version = "0.1.24"
readme="README.md"
edition = "2021"

Expand Down
8 changes: 3 additions & 5 deletions cli/py/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "trustspeccli"
version = "{VERSION}"
version = "0.1.24"
authors = ["Wojciech Karwacki <karwacki.wojciech@gmail.com>"]
homepage = "https://github.com/wkarwacki/python-openapi-generator-rust"
repository = "https://github.com/wkarwacki/python-openapi-generator-rust"
Expand All @@ -18,8 +18,6 @@ classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Rust",
"Topic :: Internet",
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
Expand All @@ -31,8 +29,8 @@ classifiers = [
]

[tool.poetry.dependencies]
python = "^3.6"
trustspecpy = "{VERSION}"
python = ">=3.10,<3.11"
trustspecpy = "0.1.24"

[tool.poetry.scripts]
trust = "trustspeccli.main:run"
Expand Down
40 changes: 40 additions & 0 deletions cli/py/pyproject.toml.bu
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
[tool.poetry]
name = "trustspeccli"
version = "{VERSION}"
authors = ["Wojciech Karwacki <karwacki.wojciech@gmail.com>"]
homepage = "https://github.com/wkarwacki/python-openapi-generator-rust"
repository = "https://github.com/wkarwacki/python-openapi-generator-rust"
documentation = "https://github.com/wkarwacki/python-openapi-generator-rust"
packages = [{include = "trustspeccli", from="src"}]
readme = "README.md"
description = "Web Integration Specification, easy and lightweight alternative to OpenAPI"
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Environment :: Console",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Rust",
"Topic :: Internet",
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development",
"Topic :: Software Development :: Code Generators",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]

[tool.poetry.dependencies]
python = ">=3.10,<3.11"
trustspecpy = "{VERSION}"

[tool.poetry.scripts]
trust = "trustspeccli.main:run"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
4 changes: 2 additions & 2 deletions plugin/py-binding/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 plugin/py-binding/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "trustspecpy"
version = "{VERSION}"
version = "0.1.24"
edition = "2021"

[lib]
Expand Down
19 changes: 19 additions & 0 deletions plugin/py-binding/Cargo.toml.bu
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[package]
name = "trustspecpy"
version = "{VERSION}"
edition = "2021"

[lib]
name = "trustspecpy"
crate-type = ["cdylib"]

[dependencies]
clap = { version = "4.5.1", features = ["derive"] }
trust = { path = "../../" }

[dependencies.pyo3]
version = "0.22.2"

[features]
extension-module = ["pyo3/extension-module"]
default = ["extension-module"]
5 changes: 1 addition & 4 deletions plugin/py-binding/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,5 @@ pip install maturin

cp ../../README.md README.md

export PYENV_VERSION=3.10
maturin build

export PYENV_VERSION=3.11
rm -rf target
maturin build
2 changes: 1 addition & 1 deletion plugin/py-binding/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "maturin"

[project]
name = "trustspecpy"
requires-python = ">=3.6"
requires-python = ">=3.10,<3.11"
classifiers = [
"Programming Language :: Rust",
"Programming Language :: Python :: Implementation :: CPython",
Expand Down
3 changes: 3 additions & 0 deletions src/lib/gen/gen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ pub(crate) fn go(
.unwrap_or(Default::default());
merged_templates.extend(templates);

println!("Got templates:");
println!("{:?}", merged_templates);

merged_templates.iter().for_each(|(name, template)| {
handlebars
.register_template_string(name, template.clone())
Expand Down
1 change: 1 addition & 0 deletions test/cli/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ set -eox pipefail
SCRIPT_DIR=$(dirname "$(readlink -f "$0")")
cd "$SCRIPT_DIR" || exit

rm -rf .venv
python -m venv .venv
source .venv/bin/activate

Expand Down

0 comments on commit 53a87af

Please sign in to comment.