From 2ccccc5e08391bf2cf270282369049b6fef8b7cf Mon Sep 17 00:00:00 2001 From: Giovanni Barillari Date: Tue, 25 Feb 2025 18:54:17 +0100 Subject: [PATCH] Bump version to 2.0 due to breaking changes --- Cargo.lock | 2 +- Cargo.toml | 2 +- README.md | 2 +- pyproject.toml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d7a0bc0c..fadb0c1e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -363,7 +363,7 @@ checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f" [[package]] name = "granian" -version = "1.8.0" +version = "2.0.0" dependencies = [ "anyhow", "bus", diff --git a/Cargo.toml b/Cargo.toml index 00d1aca3..54e7dc14 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "granian" -version = "1.8.0" +version = "2.0.0" description = "A Rust HTTP server for Python applications" authors = ["Giovanni Barillari "] license = "BSD-3-Clause" diff --git a/README.md b/README.md index e80363bb..5ec4ecb0 100644 --- a/README.md +++ b/README.md @@ -332,7 +332,7 @@ Benchmarks suggests **st** mode to be more efficient with a small amount of proc > **Warning:** free-threaded Python support is still experimental and highly discouraged in *production environments*. -Since version 1.8 Granian supports free-threaded Python. While the installation process remains the same, as wheels for the free-threaded version are published separately, here we list some key differences from the GIL version. +Since version 2.0 Granian supports free-threaded Python. While the installation process remains the same, as wheels for the free-threaded version are published separately, here we list some key differences from the GIL version. - Workers are threads instead of separated processes, so there will always be a single Python interpreter running - The application is thus loaded a single time and shared between workers diff --git a/pyproject.toml b/pyproject.toml index 79fb100d..d3ff8668 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,7 +44,7 @@ reload = [ 'watchfiles~=1.0', ] rloop = [ - 'rloop; sys_platform != "win32"', + 'rloop~=0.1; sys_platform != "win32"', ] uvloop = [ 'uvloop>=0.18.0; sys_platform != "win32" and platform_python_implementation == "CPython"',