Skip to content

Commit cb88b5f

Browse files
committed
Fix script paramaters
1 parent b6d372d commit cb88b5f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/testing_fastapi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ jobs:
181181
- name: Build package
182182
run: cargo build --release -F fastapi
183183
- name: Run creation
184-
run: ./scripts/ci_run_fastapi.sh ${{ matrix.project_type }} 1
184+
run: ./scripts/ci_run_fastapi.sh ${{ matrix.project_type }} 2
185185
shell: bash
186186
- name: Install Dependencies
187187
working-directory: ${{ env.WORKING_DIR }}

src/project_generator.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use crate::{
1717
project_info::{LicenseType, ProjectInfo, ProjectManager, Pyo3PythonManager},
1818
python_files::generate_python_files,
1919
rust_files::{save_cargo_toml_file, save_lib_file},
20-
utils::is_python_312_or_greater,
20+
utils::is_python_311_or_greater,
2121
};
2222

2323
#[cfg(feature = "fastapi")]
@@ -302,7 +302,7 @@ fn build_latest_dev_dependencies(project_info: &ProjectInfo) -> Result<String> {
302302
packages.push(PythonPackageVersion::new(PythonPackage::PytestCov));
303303
packages.push(PythonPackageVersion::new(PythonPackage::Ruff));
304304

305-
if !is_python_312_or_greater(&project_info.min_python_version)?
305+
if !is_python_311_or_greater(&project_info.min_python_version)?
306306
&& matches!(project_info.project_manager, ProjectManager::Poetry)
307307
{
308308
packages.push(PythonPackageVersion::new(PythonPackage::Tomli));

0 commit comments

Comments
 (0)