Skip to content

Conversation

@ehrenfeu
Copy link
Member

@ehrenfeu ehrenfeu commented Mar 20, 2025

Previously, a hard-coded version was installed by the Python2 wrapper/setup script, which had to be updated manually when changes were done to pyproject.toml - and hence was mostly forgotten:

echo "== * Installing dependencies..."
vpip install \
python-micrometa \
sjlogging \
"imcf-fiji-mocks>=0.3.0" \
olefile==0.46 \
pytest \
pytest-cov \
pip

This was fine as long as all required changes to imcf-fiji-mocks were published as stable releases (as the pip install command would use the latest stable one), but would fail as soon as changes to the mocks were only available in pre-releases. This is fixed through this PR by installing that package using pip's --pre flag.

NOTE: this was created in order to facilitate the project setup using
Python 2 🐍🪦 but is currently UNUSED as this opens Pandora's box 🪤 of
versions specified via 🎭 Poetry but incompatible with Python 2 etc.
@ehrenfeu ehrenfeu added unit testing A unit test should be created next-release Issues blocking the next release labels Mar 20, 2025
@ehrenfeu ehrenfeu added this to the 1.5.0 milestone Mar 20, 2025
@ehrenfeu ehrenfeu self-assigned this Mar 20, 2025
@codecov
Copy link

codecov bot commented Mar 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 28.81%. Comparing base (a49dac3) to head (b72e685).
Report is 6 commits behind head on devel.

Additional details and impacted files
@@           Coverage Diff           @@
##            devel      #51   +/-   ##
=======================================
  Coverage   28.81%   28.81%           
=======================================
  Files          24       24           
  Lines        1388     1388           
=======================================
  Hits          400      400           
  Misses        988      988           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ehrenfeu ehrenfeu changed the title Update setup and dependencies for Python 2 tests Use pre-releases of imcf-fiji-mocks in Python2 setups Mar 20, 2025
@ehrenfeu ehrenfeu merged commit f46758d into devel Mar 20, 2025
4 of 7 checks passed
@github-project-automation github-project-automation bot moved this to Done in imcflibs Mar 20, 2025
@ehrenfeu ehrenfeu deleted the deps/mocks branch March 20, 2025 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

next-release Issues blocking the next release unit testing A unit test should be created

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants