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

[Fix] Pin py3.11 for MacOS latest / update publish version checks #1503

Merged
merged 15 commits into from
May 22, 2024
1 change: 0 additions & 1 deletion .conda/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ requirements:
- setuptools

run:
- importlib_metadata
- numpy >=1.16.0, <2.0.0
- scipy >=1.4.0, <2.0.0
- pillow >=9.2.0
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
# MacOS issue ref.: https://github.com/actions/setup-python/issues/855 & https://github.com/actions/setup-python/issues/865
python-version: ${{ matrix.os == 'macos-latest' && '3.11' || matrix.python }}
architecture: x64
- if: matrix.framework == 'tensorflow'
name: Cache python modules (TF)
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install python-doctr[torch]
python -c "import doctr; print(doctr.__version__)"
python -c "from importlib.metadata import version; print(version('python-doctr'))"

conda:
if: "!github.event.release.prerelease"
Expand Down Expand Up @@ -110,4 +110,4 @@ jobs:
conda config --set channel_priority strict
conda install pytorch torchvision torchaudio cpuonly -c pytorch
conda install -c techMindee -c pypdfium2-team -c bblanchon -c defaults -c conda-forge python-doctr
python -c "import doctr; print(doctr.__version__)"
python -c "from importlib.metadata import version; print(version('python-doctr'))"
3 changes: 2 additions & 1 deletion .github/workflows/scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
# MacOS issue ref.: https://github.com/actions/setup-python/issues/855 & https://github.com/actions/setup-python/issues/865
python-version: ${{ matrix.os == 'macos-latest' && '3.11' || matrix.python }}
architecture: x64
- name: Run environment collection script
run: python scripts/collect_env.py
Loading