From 07ae887a4fdd1841ffad81daa05437dfbf56be8c Mon Sep 17 00:00:00 2001 From: Jonas Lundberg Date: Mon, 18 Mar 2024 17:12:14 +0100 Subject: [PATCH] Add python 3.12 to CI --- flake.lock | 18 +++++++++--------- flake.nix | 4 +++- noxfile.py | 2 +- setup.py | 1 + 4 files changed, 14 insertions(+), 11 deletions(-) diff --git a/flake.lock b/flake.lock index 6783045..f21ed36 100644 --- a/flake.lock +++ b/flake.lock @@ -5,11 +5,11 @@ "systems": "systems" }, "locked": { - "lastModified": 1681202837, - "narHash": "sha256-H+Rh19JDwRtpVPAWp64F+rlEtxUWBAQW28eAi3SRSzg=", + "lastModified": 1710146030, + "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", "owner": "numtide", "repo": "flake-utils", - "rev": "cfacdce06f30d2b68473a46042957675eebb3401", + "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", "type": "github" }, "original": { @@ -20,11 +20,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1684266851, - "narHash": "sha256-DCYaTgZpT9BtHrVEJOc1b0J/8eTDa1SRqyGbcisjauM=", + "lastModified": 1710777701, + "narHash": "sha256-hMyIBLJY2VjsM/dOmXta5XdyxcuQoKUkm4M/K0c0xlo=", "owner": "nixos", "repo": "nixpkgs", - "rev": "5b973b9f07c586dfade51f6736db166f5b97d97c", + "rev": "f78a4dcd452449992e526fd88a60a2d45e0ae969", "type": "github" }, "original": { @@ -51,11 +51,11 @@ }, "nixpkgsUnstable": { "locked": { - "lastModified": 1684242266, - "narHash": "sha256-uaCQ2k1bmojHKjWQngvnnnxQJMY8zi1zq527HdWgQf8=", + "lastModified": 1710734606, + "narHash": "sha256-rFJl+WXfksu2NkWJWKGd5Km17ZGEjFg9hOQNwstsoU8=", "owner": "nixos", "repo": "nixpkgs", - "rev": "7e0743a5aea1dc755d4b761daf75b20aa486fdad", + "rev": "79bb4155141a5e68f2bdee2bf6af35b1d27d3a1d", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 1f802ba..928d215 100644 --- a/flake.nix +++ b/flake.nix @@ -13,15 +13,17 @@ pkgsUnstable = nixpkgsUnstable.legacyPackages.${system}; in { packages = flakeUtils.lib.flattenTree { + python312 = pkgs.python312; python311 = pkgs.python311; python310 = pkgs.python310; python39 = pkgs.python39; - python38 = pkgs.python38; + python38 = pkgs22.python38; python37 = pkgs22.python37; go-task = pkgsUnstable.go-task; }; devShell = pkgs.mkShell { buildInputs = with self.packages.${system}; [ + python312 python311 python310 python39 diff --git a/noxfile.py b/noxfile.py index 249c1f8..cc4d11b 100644 --- a/noxfile.py +++ b/noxfile.py @@ -5,7 +5,7 @@ nox.options.keywords = "test + mypy" -@nox.session(python=["3.7", "3.8", "3.9", "3.10", "3.11"]) +@nox.session(python=["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]) def test(session): deps = ["pytest", "pytest-asyncio", "pytest-cov", "trio", "starlette", "flask"] session.install("--upgrade", *deps) diff --git a/setup.py b/setup.py index eb241bd..f953a9d 100644 --- a/setup.py +++ b/setup.py @@ -28,6 +28,7 @@ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", ], project_urls={ "GitHub": "https://github.com/lundberg/respx",