Skip to content

Conversation

@saicheranb
Copy link
Contributor

@saicheranb saicheranb commented Sep 15, 2025

DEVOPS-693 - migrate from conda-lock to pixi

…ibility

- Changed the required Python version from >=3.10,<4.0 to >=3.9,<4.0.
- Expanded the keywords list for better discoverability.
- Added specific dependencies for geoh5py, lasio, numpy, pydantic, and tqdm.
- Removed unnecessary dynamic dependencies and cleaned up the classifiers section.
- Updated the versioning strategy to maintain consistency with conda recipe versioning in tests.
- Refactored the version test to handle edge cases for version comparison.
@github-actions github-actions bot changed the title DEVOPS - 693 : migrate from conda-lock to pixi DEVOPS-693: migrate from conda-lock to pixi Sep 15, 2025
@codecov
Copy link

codecov bot commented Sep 15, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.60%. Comparing base (768f9dc) to head (8d77856).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop      #90      +/-   ##
===========================================
- Coverage    93.62%   93.60%   -0.03%     
===========================================
  Files           22       22              
  Lines         1176     1172       -4     
===========================================
- Hits          1101     1097       -4     
  Misses          75       75              
Files with missing lines Coverage Δ
tests/version_test.py 79.59% <100.00%> (-1.55%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@saicheranb saicheranb requested a review from sebhmg September 15, 2025 14:20
Comment on lines 35 to 47
if (
project_version.base_version == "0.0.0"
and conda_version.base_version == "0.0.0"
):
return

if "0.0.0" in (project_version.base_version, conda_version.base_version):
assert (
project_version.base_version != "0.0.0"
or conda_version.base_version != "0.0.0"
)
else:
assert project_version.base_version == conda_version.base_version
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue: why this change, when the orignal code is working in the other repos?

*.h5 filter=lfs diff=lfs merge=lfs -text
*.ipynb filter=lfs diff=lfs merge=lfs -text
*.min.js filter=lfs diff=lfs merge=lfs -text
# SCM syntax highlighting & preventing 3-way merges
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# SCM syntax highlighting & preventing 3-way merges
# SCM syntax highlighting & preventing 3-way merges

#version ignore
# auto-generated version file
las_geoh5/_version.py
# not using poetry to lock, but pixi
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# not using poetry to lock, but pixi
# not using poetry to lock, but pixi

pixi.toml Outdated
pytest = "*"
pytest-cov = "*"
pyyaml = "*"
jinja2 = "*"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jinja is not needed anymore

Suggested change
jinja2 = "*"

pixi.toml Outdated

default = {features = ["py310", "mirageo-git", "test", "dev"], solve-group = "default"}
docs = {features = ["py310", "mirageo-git", "doc"], solve-group = "default"}
test-docs = {features = ["py310", "mirageo-git", "test", "doc"], solve-group = "default"}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not needed here (that was for OMF): there is not test of the docs

Suggested change
test-docs = {features = ["py310", "mirageo-git", "test", "doc"], solve-group = "default"}

pixi.toml Outdated

[feature.test.tasks]
test = "pytest tests --cov --cov-report=xml"
_pytest-docs = "pytest docs"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue: thre are not tests in docs

Suggested change
_pytest-docs = "pytest docs"

pixi.toml Outdated
Comment on lines 89 to 91
[tasks.test-docs]
depends-on = [{task = "_pytest-docs", environment = "test-docs"}]

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue: irrevelant in this project

Suggested change
[tasks.test-docs]
depends-on = [{task = "_pytest-docs", environment = "test-docs"}]

license = "MIT"
keywords = ["geology", "geophysics", "earth sciences", "io", "data", "interoperability"]
keywords = [
"las",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

"geoh5",
"geology",
"geophysics",
"earth-sciences",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: add "open-science" and order the list alphabetically


[tool.pytest.ini_options]
#addopts =
testpaths = ["tests"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: remove. Likely not needed

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replace call to poetry for pylint by: pixi run --locked pylint

Copy link
Contributor

@sebhmg sebhmg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see some suggestions for changes

saicheranb and others added 4 commits September 16, 2025 11:01
- Removed the test-docs feature from pixi.toml to streamline dependencies.
- Simplified the get_conda_recipe_version function in version_test.py by directly reading and rendering the recipe.yaml file.
- Updated the test_version_is_consistent function to assert version equality directly, removing unnecessary checks for "0.0.0".
- Modify codespell exclusions in .pre-commit-config.yaml
- Upgrade build environment to Ubuntu 24.04 and adjust Python tools in .readthedocs.yml
- Enhance Sphinx configuration in conf.py with additional extensions and Google Analytics support
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants