Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Use pixi to manage dependencies with pyproject.toml #407

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,26 +32,25 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup micromamba
uses: mamba-org/setup-micromamba@v1
- uses: prefix-dev/[email protected]
with:
environment-file: ci/environment.yml
cache-environment: true
create-args: >-
python=${{matrix.python-version}}
pixi-version: v0.39.2
environments: ${{ matrix.environment }}
# we can freeze the environment and manually bump the dependencies to the
# latest version time to time.
frozen: true

- name: Install virtualizarr
run: |
python -m pip install -e . --no-deps

- name: Conda list information
- name: List installed libraries
run: |
micromamba env list
micromamba list
pixi list

- name: Running Tests
run: |
python -m pytest --run-network-tests --verbose --cov=virtualizarr --cov-report=xml
pixi run test-xml-cov

- name: Upload code coverage to Codecov
uses: codecov/[email protected]
Expand Down
63 changes: 0 additions & 63 deletions .github/workflows/min-deps.yml

This file was deleted.

63 changes: 0 additions & 63 deletions .github/workflows/upstream.yml

This file was deleted.

7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -180,3 +180,10 @@ examples/
.ionide

# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode

# Pixi folder
.pixi/

# python virtual environment
.venv
venv
21 changes: 8 additions & 13 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,19 @@
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the version of Python and other tools you might need
build:
os: ubuntu-20.04
os: ubuntu-22.04
tools:
python: "mambaforge-4.10"
# this ensures a viable `mamba` is on `$PATH``
python: mambaforge-latest
commands:
- mamba install -c conda-forge -c nodefaults pixi
- pixi install --environment docs
- pixi run docs
- pixi run readthedocs

# Build documentation in the doc/ directory with Sphinx
sphinx:
configuration: docs/conf.py
fail_on_warning: true

# Optionally declare the Python requirements required to build your docs
conda:
environment: ci/doc.yml
python:
install:
- method: pip
path: .
15 changes: 0 additions & 15 deletions ci/doc.yml

This file was deleted.

39 changes: 0 additions & 39 deletions ci/environment.yml

This file was deleted.

25 changes: 0 additions & 25 deletions ci/min-deps.yml

This file was deleted.

34 changes: 0 additions & 34 deletions ci/upstream.yml

This file was deleted.

Loading
Loading