Skip to content

Commit

Permalink
Merge pull request #396 from IBM/fix/pyproject
Browse files Browse the repository at this point in the history
Fix/pyproject
  • Loading branch information
Joao-L-S-Almeida authored Feb 4, 2025
2 parents a985214 + 005a21d commit dc2bc64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 33 deletions.
29 changes: 1 addition & 28 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
#pip install -r requirements/required.txt -r requirements/test.txt -r requirements/optional.txt
#pip install -r requirements/test.txt -r requirements/optional.txt
pip install -e .[torchgeo,test]
pip install -e .[test]
pip install git+https://github.com/NASA-IMPACT/Prithvi-WxC.git
pip install git+https://github.com/IBM/granite-wxc.git
- name: List pip dependencies
Expand All @@ -39,29 +37,4 @@ jobs:
run: |
pytest -s tests
# build_weather:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# python-version: ["3.11"]

# steps:
# - name: Clone repo
# uses: actions/checkout@v3
# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v4
# with:
# python-version: ${{ matrix.python-version }}
# cache: 'pip'
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install -r requirements/required.txt -r requirements/test.txt -r requirements/optional.txt
# pip install git+https://github.com/NASA-IMPACT/Prithvi-WxC.git
# pip install git+https://github.com/IBM/granite-wxc.git
# - name: List pip dependencies
# run: pip list
# - name: Test with pytest
# run: |
# pytest -s tests
8 changes: 3 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,12 @@ dependencies = [
"segmentation-models-pytorch",
"jsonargparse",
"pytest",
]

[project.optional-dependencies]
torchgeo = [
#"torchgeo @ git+https://github.com/microsoft/torchgeo.git@fedf99375535f801565856cd774bfa9e5a251d55",
"torchgeo"
"torchgeo",
"einops"
]

[project.optional-dependencies]
dev = [
"black",
"mkdocs-material",
Expand Down

0 comments on commit dc2bc64

Please sign in to comment.