diff --git a/Makefile b/Makefile index 113fa662..b3da3444 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ TEST_OPTS=-v -test.timeout 300s GIT_USER_ID?=koyeb GIT_REPO_ID?=koyeb-api-client-python OPENAPI_GENERATOR_VERSION?=latest -PACKAGE_VERSION?=1.5.6 +PACKAGE_VERSION?=1.6.0 DOCKER ?= docker diff --git a/RELEASING.md b/RELEASING.md new file mode 100644 index 00000000..0aad89e9 --- /dev/null +++ b/RELEASING.md @@ -0,0 +1,16 @@ +# Releasing + +`main` always carries the version of the next release. Pushing a `vX.Y.Z` tag publishes that commit to PyPI through [release.yml](.github/workflows/release.yml); the published version is the one in `pyproject.toml` at the tagged commit. + +1. If the next release needs a minor or major bump instead of the patch bump already on `main`, open a PR with `bumpver update --minor` (or `--major`) and merge it. +2. Tag the commit on `main` and push the tag: + ```bash + git tag vX.Y.Z && git push origin vX.Y.Z + ``` + The tagged version must match `pyproject.toml`, and must not already be on PyPI. +3. Open a "Post release version bump" PR so `main` carries the next version: + ```bash + bumpver update --patch + ``` + +`bumpver` (configured in `bumpver.toml`) does not touch `uv.lock`: run `uv lock` as well, or set the `koyeb-sdk` package version in `uv.lock` by hand, and check the diff only changes that line. diff --git a/bumpver.toml b/bumpver.toml index 8a462480..269ccc5e 100644 --- a/bumpver.toml +++ b/bumpver.toml @@ -1,5 +1,5 @@ [tool.bumpver] -current_version = "1.5.6" +current_version = "1.6.0" version_pattern = "MAJOR.MINOR.PATCH[PYTAGNUM]" commit = false tag = false diff --git a/koyeb/__init__.py b/koyeb/__init__.py index 1c69bdb1..0013c0f7 100644 --- a/koyeb/__init__.py +++ b/koyeb/__init__.py @@ -1,6 +1,6 @@ # coding: utf-8 -__version__ = "1.5.6" +__version__ = "1.6.0" # Make Sandbox available at package level from .sandbox import Sandbox, AsyncSandbox, ConfigFile, Secret diff --git a/koyeb/api/__init__.py b/koyeb/api/__init__.py index bb0e5360..c28fe09f 100644 --- a/koyeb/api/__init__.py +++ b/koyeb/api/__init__.py @@ -14,7 +14,7 @@ """ # noqa: E501 -__version__ = "1.5.6" +__version__ = "1.6.0" # Define package exports __all__ = [ diff --git a/koyeb/api/api_client.py b/koyeb/api/api_client.py index eecf1d03..8eef8775 100644 --- a/koyeb/api/api_client.py +++ b/koyeb/api/api_client.py @@ -87,7 +87,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = "OpenAPI-Generator/1.5.6/python" + self.user_agent = "OpenAPI-Generator/1.6.0/python" self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/koyeb/api/configuration.py b/koyeb/api/configuration.py index 621b5564..ce4c1130 100644 --- a/koyeb/api/configuration.py +++ b/koyeb/api/configuration.py @@ -600,7 +600,7 @@ def to_debug_report(self) -> str: "OS: {env}\n" "Python Version: {pyversion}\n" "Version of the API: 1.0.0\n" - "SDK Package Version: 1.5.6".format(env=sys.platform, pyversion=sys.version) + "SDK Package Version: 1.6.0".format(env=sys.platform, pyversion=sys.version) ) def get_host_settings(self) -> List[HostSetting]: diff --git a/koyeb/api_README.md b/koyeb/api_README.md index 5cfa3afc..55466abf 100644 --- a/koyeb/api_README.md +++ b/koyeb/api_README.md @@ -4,7 +4,7 @@ The Koyeb API allows you to interact with the Koyeb platform in a simple, progra The `koyeb.api` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 1.0.0 -- Package version: 1.5.6 +- Package version: 1.6.0 - Generator version: 7.27.0-SNAPSHOT - Build package: org.openapitools.codegen.languages.PythonClientCodegen diff --git a/koyeb/api_async/__init__.py b/koyeb/api_async/__init__.py index 73f6acd6..c7624f9f 100644 --- a/koyeb/api_async/__init__.py +++ b/koyeb/api_async/__init__.py @@ -14,7 +14,7 @@ """ # noqa: E501 -__version__ = "1.5.6" +__version__ = "1.6.0" # Define package exports __all__ = [ diff --git a/koyeb/api_async/api_client.py b/koyeb/api_async/api_client.py index a8c3a659..5b3d8a2f 100644 --- a/koyeb/api_async/api_client.py +++ b/koyeb/api_async/api_client.py @@ -87,7 +87,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = "OpenAPI-Generator/1.5.6/python" + self.user_agent = "OpenAPI-Generator/1.6.0/python" self.client_side_validation = configuration.client_side_validation async def __aenter__(self): diff --git a/koyeb/api_async/configuration.py b/koyeb/api_async/configuration.py index ea26631d..6db7c146 100644 --- a/koyeb/api_async/configuration.py +++ b/koyeb/api_async/configuration.py @@ -567,7 +567,7 @@ def to_debug_report(self) -> str: "OS: {env}\n" "Python Version: {pyversion}\n" "Version of the API: 1.0.0\n" - "SDK Package Version: 1.5.6".format(env=sys.platform, pyversion=sys.version) + "SDK Package Version: 1.6.0".format(env=sys.platform, pyversion=sys.version) ) def get_host_settings(self) -> List[HostSetting]: diff --git a/koyeb/api_async_README.md b/koyeb/api_async_README.md index 763e8eae..a27793aa 100644 --- a/koyeb/api_async_README.md +++ b/koyeb/api_async_README.md @@ -4,7 +4,7 @@ The Koyeb API allows you to interact with the Koyeb platform in a simple, progra The `koyeb.api_async` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 1.0.0 -- Package version: 1.5.6 +- Package version: 1.6.0 - Generator version: 7.27.0-SNAPSHOT - Build package: org.openapitools.codegen.languages.PythonClientCodegen diff --git a/koyeb/sandbox/__init__.py b/koyeb/sandbox/__init__.py index 60668e7c..a53fdd6f 100644 --- a/koyeb/sandbox/__init__.py +++ b/koyeb/sandbox/__init__.py @@ -4,7 +4,7 @@ Koyeb Sandbox - Interactive execution environment for running arbitrary code on Koyeb """ -__version__ = "1.5.6" +__version__ = "1.6.0" from koyeb.api.models.config_file import ConfigFile from koyeb.api.models.instance_status import InstanceStatus as SandboxStatus diff --git a/pyproject.toml b/pyproject.toml index b3aec716..818933fe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "koyeb-sdk" -version = "1.5.6" +version = "1.6.0" description = "Koyeb python sdk" authors = [{ name = "Koyeb team", email = "support@koyeb.com" }] license = "Apache-2.0" diff --git a/uv.lock b/uv.lock index 819393e7..75c8d083 100644 --- a/uv.lock +++ b/uv.lock @@ -382,7 +382,7 @@ wheels = [ [[package]] name = "koyeb-sdk" -version = "1.5.6" +version = "1.6.0" source = { editable = "." } dependencies = [ { name = "httpx" },