Skip to content

Commit

Permalink
Different dependencies per version of Python
Browse files Browse the repository at this point in the history
  • Loading branch information
mx-moth committed Jul 3, 2024
1 parent e127f34 commit e58ca87
Show file tree
Hide file tree
Showing 8 changed files with 486 additions and 96 deletions.
4 changes: 2 additions & 2 deletions .github/actions/environment/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ runs:
with:
cache: 'pip'
cache-dependency-path: |
continuous-integration/requirements.txt
continuous-integration/requirements-${{ inputs.python-version }}.txt
continuous-integration/environment.yaml
setup.cfg
Expand Down Expand Up @@ -72,7 +72,7 @@ runs:
pip install \
"${args[@]}" \
-r continuous-integration/requirements.txt \
-r continuous-integration/requirements-${{ inputs.python-version }}.txt \
"${wheels[0]}[${{ inputs.extras }}]"
pip check
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
workflow_dispatch:

env:
python-version: "3.11"
python-version: "3.12"

jobs:
build:
Expand Down Expand Up @@ -155,7 +155,7 @@ jobs:
- uses: ./.github/actions/environment
with:
python-version: ${{ env.python-version }}
extras: complete,docs
extras: docs
package-artifact-name: ${{ needs.build.outputs.artifact-name }}

- run: |
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ To get set up for development, make a virtual environment and install the depend
$ python3 -m venv
$ source venv/bin/activate
$ pip install --upgrade pip>=21.3
$ pip install -e . -r continuous-integration/requirements.txt
$ pip install -e .[testing]
```

## Tests
Expand Down
2 changes: 1 addition & 1 deletion continuous-integration/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ dependencies:
- python =3.12
- wheel
- pip:
- -r ./requirements.txt
- -r ./requirements-3.12.txt
- -e ..[docs]
239 changes: 239 additions & 0 deletions continuous-integration/requirements-3.10.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,239 @@
#
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --extra=testing --output-file=continuous-integration/requirements-3.10.txt setup.cfg
#
bokeh==3.4.2
# via dask
bottleneck==1.4.0
# via emsarray (setup.cfg)
cartopy==0.23.0
# via emsarray (setup.cfg)
certifi==2024.6.2
# via
# netcdf4
# pyproj
# requests
cftime==1.6.4
# via
# cfunits
# netcdf4
cfunits==3.3.7
# via emsarray (setup.cfg)
charset-normalizer==3.3.2
# via requests
click==8.1.7
# via
# dask
# distributed
cloudpickle==3.0.0
# via
# dask
# distributed
contourpy==1.2.1
# via
# bokeh
# matplotlib
coverage[toml]==7.5.4
# via pytest-cov
cycler==0.12.1
# via matplotlib
dask[array,complete,dataframe,diagnostics,distributed]==2024.6.2
# via
# dask-expr
# distributed
# xarray
dask-expr==1.1.6
# via dask
distributed==2024.6.2
# via dask
exceptiongroup==1.2.1
# via pytest
flake8==7.1.0
# via emsarray (setup.cfg)
fonttools==4.53.0
# via matplotlib
fsspec==2024.6.0
# via dask
geojson==3.1.0
# via emsarray (setup.cfg)
idna==3.7
# via requests
importlib-metadata==8.0.0
# via dask
iniconfig==2.0.0
# via pytest
isort==5.13.2
# via emsarray (setup.cfg)
jinja2==3.1.4
# via
# bokeh
# dask
# distributed
# pytest-mpl
kiwisolver==1.4.5
# via matplotlib
locket==1.0.0
# via
# distributed
# partd
lz4==4.3.3
# via dask
markupsafe==2.1.5
# via jinja2
matplotlib==3.9.0
# via
# cartopy
# emsarray (setup.cfg)
# pytest-mpl
mccabe==0.7.0
# via flake8
msgpack==1.0.8
# via distributed
mypy==1.10.1
# via emsarray (setup.cfg)
mypy-extensions==1.0.0
# via mypy
netcdf4==1.7.1.post1
# via emsarray (setup.cfg)
numpy==2.0.0
# via
# bokeh
# bottleneck
# cartopy
# cftime
# cfunits
# contourpy
# dask
# emsarray (setup.cfg)
# matplotlib
# netcdf4
# pandas
# pandas-stubs
# pyarrow
# pykdtree
# shapely
# xarray
packaging==24.1
# via
# bokeh
# cartopy
# cfunits
# dask
# distributed
# emsarray (setup.cfg)
# matplotlib
# pooch
# pytest
# pytest-mpl
# xarray
pandas==2.2.2
# via
# bokeh
# dask
# dask-expr
# xarray
pandas-stubs==2.2.2.240603
# via emsarray (setup.cfg)
partd==1.4.2
# via dask
pillow==10.3.0
# via
# bokeh
# matplotlib
# pytest-mpl
platformdirs==4.2.2
# via pooch
pluggy==1.5.0
# via pytest
pooch==1.8.2
# via emsarray (setup.cfg)
psutil==6.0.0
# via distributed
pyarrow==16.1.0
# via
# dask
# dask-expr
pyarrow-hotfix==0.6
# via dask
pycodestyle==2.12.0
# via flake8
pyflakes==3.2.0
# via flake8
pykdtree==1.3.12
# via emsarray (setup.cfg)
pyparsing==3.1.2
# via matplotlib
pyproj==3.6.1
# via cartopy
pyshp==2.3.1
# via
# cartopy
# emsarray (setup.cfg)
pytest==8.2.2
# via
# emsarray (setup.cfg)
# pytest-cov
# pytest-mpl
pytest-cov==5.0.0
# via emsarray (setup.cfg)
pytest-mpl==0.17.0
# via emsarray (setup.cfg)
python-dateutil==2.9.0.post0
# via
# matplotlib
# pandas
pytz==2024.1
# via pandas
pyyaml==6.0.1
# via
# bokeh
# dask
# distributed
requests==2.32.3
# via pooch
shapely==2.0.4
# via
# cartopy
# emsarray (setup.cfg)
six==1.16.0
# via python-dateutil
sortedcontainers==2.4.0
# via distributed
tblib==3.0.0
# via distributed
tomli==2.0.1
# via
# coverage
# mypy
# pytest
toolz==0.12.1
# via
# dask
# distributed
# partd
tornado==6.4.1
# via
# bokeh
# distributed
types-pytz==2024.1.0.20240417
# via
# emsarray (setup.cfg)
# pandas-stubs
typing-extensions==4.12.2
# via mypy
tzdata==2024.1
# via pandas
urllib3==2.2.2
# via
# distributed
# requests
xarray[parallel]==2024.6.0
# via emsarray (setup.cfg)
xyzservices==2024.6.0
# via bokeh
zict==3.0.0
# via distributed
zipp==3.19.2
# via importlib-metadata
Loading

0 comments on commit e58ca87

Please sign in to comment.