Skip to content

Commit 4441eaf

Browse files
AngRodriguesrabii-chaarani
authored andcommitted
fix: include dependencies in site-packages - issue #169 (#170)
* added custom builds to conda and pip to include dependencies.txt file * DependencyChecker class now working as expected
1 parent 0cfc9b8 commit 4441eaf

File tree

13 files changed

+72
-128
lines changed

13 files changed

+72
-128
lines changed

.github/workflows/conda.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
fail-fast: false
1212
matrix:
1313
os: ${{ fromJSON(vars.BUILD_OS)}}
14-
python-version: ${{ fromJSON(vars.PYTHON_VERSIONS)}}
14+
python-version: ${{ fromJSON(vars.PYTHON_VERSIONS) }}
1515
steps:
1616
- uses: conda-incubator/setup-miniconda@v3
1717
with:
@@ -27,10 +27,14 @@ jobs:
2727
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
2828
shell: bash -l {0}
2929
run: |
30+
conda config --env --add channels conda-forge
31+
conda config --env --add channels loop3d
32+
conda config --env --set channel_priority strict
3033
conda install -c conda-forge conda-build scikit-build-core numpy anaconda-client conda-libmamba-solver -y
31-
conda build -c conda-forge -c loop3d --output-folder conda conda --python ${{matrix.python-version}}
34+
conda config --set solver libmamba
35+
conda build --output-folder conda conda --python ${{matrix.python-version}}
3236
anaconda upload --label main conda/*/*.tar.bz2
33-
37+
3438
- name: upload artifacts
3539
uses: actions/upload-artifact@v4
3640
with:

.github/workflows/linting_and_testing.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ jobs:
1818
- uses: stefanzweifel/git-auto-commit-action@v5
1919
with:
2020
commit_message: "style: style fixes by ruff and autoformatting by black"
21-
21+
22+
2223
testing:
2324
name: Testing
2425
runs-on: ubuntu-24.04

.github/workflows/pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66

77
sdist:
88
name: Build sdist
9-
runs-on: ubuntu-24.04
9+
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v4
1212
- uses: actions/setup-python@v5
@@ -23,7 +23,7 @@ jobs:
2323

2424
publish:
2525
name: Publish wheels to pypi
26-
runs-on: ubuntu-24.04
26+
runs-on: ubuntu-latest
2727
permissions:
2828
# IMPORTANT: this permission is mandatory for trusted publishing
2929
id-token: write

MANIFEST.in

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
include LICENSE
2-
include README.md
3-
41
include map2loop/_datasets/clut_files/*.csv
52
include map2loop/_datasets/config_files/*.json
6-
include map2loop/_datasets/geodata_files/hamersley/*
7-
8-
recursive-include tests *.py
3+
include map2loop/_datasets/geodata_files/hamersley/*

conda/bld.bat

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
mkdir %SP_DIR%\map2loop
2+
copy %RECIPE_DIR%\..\LICENSE %SP_DIR%\map2loop\
3+
copy %RECIPE_DIR%\..\README.md %SP_DIR%\map2loop\
4+
copy %RECIPE_DIR%\..\dependencies.txt %SP_DIR%\map2loop\
5+
%PYTHON% -m pip install . --no-deps

conda/build.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
mkdir -p $SP_DIR/map2loop
3+
cp $RECIPE_DIR/../dependencies.txt $SP_DIR/map2loop/
4+
cp $RECIPE_DIR/../LICENSE $SP_DIR/map2loop/
5+
cp $RECIPE_DIR/../README.md $SP_DIR/map2loop/
6+
$PYTHON -m pip install . --no-deps

conda/conda-build.py

Lines changed: 0 additions & 85 deletions
This file was deleted.

conda/conda_build_config.yaml

Lines changed: 0 additions & 6 deletions
This file was deleted.

conda/meta.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,16 @@ requirements:
2020
run:
2121
- loopprojectfile ==0.2.2
2222
- gdal
23-
- map2model
24-
- beartype
25-
- python
2623
- numpy
27-
- pandas
24+
- scipy
2825
- geopandas
2926
- shapely
30-
- tqdm
3127
- networkx
3228
- owslib
33-
29+
- map2model
30+
- beartype
31+
- pytest
32+
- scikit-learn
3433

3534
about:
3635
home: "https://github.com/Loop3D/map2loop"

dependencies.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
numpy
32
scipy
43
geopandas

0 commit comments

Comments
 (0)