Skip to content

Commit 161fc63

Browse files
committed
Remove pixi
1 parent 1f3bde3 commit 161fc63

11 files changed

+3
-573
lines changed

.github/workflows/testing.yml

Lines changed: 0 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -371,76 +371,3 @@ jobs:
371371
working-directory: ${{ env.WORKING_DIR }}
372372
if: matrix.project_type == 'application'
373373
run: .venv/bin/pytest
374-
pixi-linting:
375-
strategy:
376-
fail-fast: false
377-
matrix:
378-
project_type: ["application", "lib"]
379-
runs-on: ubuntu-latest
380-
steps:
381-
- uses: actions/checkout@v6
382-
- name: install Rust
383-
uses: dtolnay/rust-toolchain@stable
384-
- name: Cache Rust dependencies
385-
uses: Swatinem/[email protected]
386-
- name: Build package
387-
run: cargo build --release
388-
- name: Install Pixi
389-
uses: prefix-dev/[email protected]
390-
with:
391-
pixi-version: v0.57.0
392-
run-install: false
393-
env:
394-
PIXI_NO_PROMPT: "1"
395-
- name: Run creation
396-
run: ./scripts/ci_run.sh ${{ matrix.project_type }} 5
397-
shell: bash
398-
- name: Set up Python
399-
working-directory: ${{ env.WORKING_DIR }}
400-
run: pixi add python=="${{ env.MIN_PYTHON_VERSION }}.*"
401-
- name: MyPy
402-
working-directory: ${{ env.WORKING_DIR }}
403-
run: pixi run -e dev mypy .
404-
- name: ruff check
405-
working-directory: ${{ env.WORKING_DIR }}
406-
run: pixi run -e dev ruff check .
407-
- name: ruff format
408-
working-directory: ${{ env.WORKING_DIR }}
409-
run: pixi run -e dev ruff format --check .
410-
pixi-test:
411-
strategy:
412-
fail-fast: false
413-
matrix:
414-
project_type: ["application", "lib"]
415-
os: [ubuntu-latest, windows-latest]
416-
runs-on: ${{ matrix.os }}
417-
steps:
418-
- uses: actions/checkout@v6
419-
- name: install Rust
420-
uses: dtolnay/rust-toolchain@stable
421-
- name: Cache Rust dependencies
422-
uses: Swatinem/[email protected]
423-
- name: Build package
424-
run: cargo build --release
425-
- name: Install Pixi
426-
uses: prefix-dev/[email protected]
427-
with:
428-
pixi-version: v0.57.0
429-
run-install: false
430-
env:
431-
PIXI_NO_PROMPT: "1"
432-
- name: Run creation
433-
run: ./scripts/ci_run.sh ${{ matrix.project_type }} 5
434-
shell: bash
435-
- name: Set up Python
436-
working-directory: ${{ env.WORKING_DIR }}
437-
run: pixi add python=="${{ env.MIN_PYTHON_VERSION }}.*"
438-
- name: Pre-commit check
439-
working-directory: ${{ env.WORKING_DIR }}
440-
run: |
441-
git add .
442-
pixi run -e dev pre-commit run --all-files
443-
- name: Test with pytest
444-
working-directory: ${{ env.WORKING_DIR }}
445-
if: matrix.project_type == 'application'
446-
run: pixi run -e dev pytest

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ For package management choose between:
1414
- [poetry](https://python-poetry.org/)
1515
- [setuptools](https://github.com/pypa/setuptools)
1616
- [uv](https://docs.astral.sh/uv/)
17-
- [pixi](https://prefix.dev/)
1817

1918
Dev packages:
2019

src/dev_dependency_installer.rs

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ pub fn install_dev_dependencies(project_info: &ProjectInfo) -> Result<()> {
1111
ProjectManager::Uv => uv_dev_dependency_installer(project_info)?,
1212
ProjectManager::Poetry => poetry_dev_dependency_installer(project_info)?,
1313
ProjectManager::Setuptools => setuptools_dev_dependency_installer(project_info)?,
14-
ProjectManager::Pixi => pixi_dev_dependency_installer(project_info)?,
1514
ProjectManager::Maturin => maturin_dev_dependency_installer(project_info)?,
1615
};
1716

@@ -119,27 +118,6 @@ fn setuptools_dev_dependency_installer(project_info: &ProjectInfo) -> Result<()>
119118
Ok(())
120119
}
121120

122-
fn pixi_dev_dependency_installer(project_info: &ProjectInfo) -> Result<()> {
123-
let packages = determine_dev_packages(project_info)?;
124-
let package_specs: Vec<String> = packages.iter().map(format_package_with_extras).collect();
125-
126-
let mut args = vec!["add", "--feature", "dev"];
127-
let package_refs: Vec<&str> = package_specs.iter().map(|s| s.as_str()).collect();
128-
args.extend(package_refs);
129-
130-
let output = std::process::Command::new("pixi")
131-
.args(args)
132-
.current_dir(project_info.base_dir())
133-
.output()?;
134-
135-
if !output.status.success() {
136-
let stderr = String::from_utf8_lossy(&output.stderr);
137-
bail!("Failed to install dev dependencies: {stderr}");
138-
}
139-
140-
Ok(())
141-
}
142-
143121
fn maturin_dev_dependency_installer(project_info: &ProjectInfo) -> Result<()> {
144122
if let Some(pyo3_python_manager) = &project_info.pyo3_python_manager {
145123
match pyo3_python_manager {
@@ -156,7 +134,6 @@ pub fn update_precommit_hooks(project_info: &ProjectInfo) -> Result<()> {
156134
ProjectManager::Uv => uv_precommit_autoupdate(project_info)?,
157135
ProjectManager::Poetry => poetry_precommit_autoupdate(project_info)?,
158136
ProjectManager::Setuptools => setuptools_precommit_autoupdate(project_info)?,
159-
ProjectManager::Pixi => pixi_precommit_autoupdate(project_info)?,
160137
ProjectManager::Maturin => maturin_precommit_autoupdate(project_info)?,
161138
};
162139

@@ -218,20 +195,6 @@ fn setuptools_precommit_autoupdate(project_info: &ProjectInfo) -> Result<()> {
218195
Ok(())
219196
}
220197

221-
fn pixi_precommit_autoupdate(project_info: &ProjectInfo) -> Result<()> {
222-
let output = std::process::Command::new("pixi")
223-
.args(["run", "pre-commit", "autoupdate"])
224-
.current_dir(project_info.base_dir())
225-
.output()?;
226-
227-
if !output.status.success() {
228-
let stderr = String::from_utf8_lossy(&output.stderr);
229-
bail!("Failed to update pre-commit hooks: {stderr}");
230-
}
231-
232-
Ok(())
233-
}
234-
235198
fn maturin_precommit_autoupdate(project_info: &ProjectInfo) -> Result<()> {
236199
if let Some(pyo3_python_manager) = &project_info.pyo3_python_manager {
237200
match pyo3_python_manager {
@@ -248,7 +211,6 @@ pub fn install_precommit_hooks(project_info: &ProjectInfo) -> Result<()> {
248211
ProjectManager::Uv => uv_precommit_install(project_info)?,
249212
ProjectManager::Poetry => poetry_precommit_install(project_info)?,
250213
ProjectManager::Setuptools => setuptools_precommit_install(project_info)?,
251-
ProjectManager::Pixi => pixi_precommit_install(project_info)?,
252214
ProjectManager::Maturin => maturin_precommit_install(project_info)?,
253215
};
254216

@@ -310,20 +272,6 @@ fn setuptools_precommit_install(project_info: &ProjectInfo) -> Result<()> {
310272
Ok(())
311273
}
312274

313-
fn pixi_precommit_install(project_info: &ProjectInfo) -> Result<()> {
314-
let output = std::process::Command::new("pixi")
315-
.args(["run", "pre-commit", "install"])
316-
.current_dir(project_info.base_dir())
317-
.output()?;
318-
319-
if !output.status.success() {
320-
let stderr = String::from_utf8_lossy(&output.stderr);
321-
bail!("Failed to install pre-commit hooks: {stderr}");
322-
}
323-
324-
Ok(())
325-
}
326-
327275
fn maturin_precommit_install(project_info: &ProjectInfo) -> Result<()> {
328276
if let Some(pyo3_python_manager) = &project_info.pyo3_python_manager {
329277
match pyo3_python_manager {

src/fastapi/docker_files.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,6 @@ ENTRYPOINT ["./entrypoint.sh"]
802802
bail!("A PyO3 python manager is required for Maturin projects")
803803
}
804804
}
805-
ProjectManager::Pixi => bail!("Pixi is not currently supported for FastAPI projects"),
806805
}
807806
}
808807

src/fastapi/fastapi_installer.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ pub fn install_fastapi_dependencies(project_info: &ProjectInfo) -> Result<()> {
2626
ProjectManager::Uv => uv_fastapi_dependency_installer(project_info)?,
2727
ProjectManager::Poetry => poetry_fastapi_dependency_installer(project_info)?,
2828
ProjectManager::Setuptools => setuptools_fastapi_dependency_installer(project_info)?,
29-
ProjectManager::Pixi => bail!("Pixi is not currently supported for FastAPI projects"),
3029
ProjectManager::Maturin => maturin_fastapi_dependency_installer(project_info)?,
3130
};
3231

0 commit comments

Comments
 (0)