File tree Expand file tree Collapse file tree 7 files changed +12
-12
lines changed Expand file tree Collapse file tree 7 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -38,13 +38,13 @@ jobs:
38
38
# Install GMT and other required dependencies from conda-forge
39
39
- name : Install dependencies
40
40
run : |
41
- mamba install gmt=6.3.0 \
42
- numpy pandas xarray netCDF4 packaging matplotlib
41
+ mamba install gmt=6.3.0 numpy pandas xarray netCDF4 packaging \
42
+ build matplotlib
43
43
44
44
# Install the package that we want to test
45
45
- name : Install the package
46
46
run : |
47
- python setup.py sdist --formats=zip
47
+ python -m build --sdist
48
48
pip install dist/*
49
49
50
50
# Download remote files
Original file line number Diff line number Diff line change 71
71
- name : Install dependencies
72
72
run : |
73
73
mamba install gmt=6.3.0 numpy pandas xarray netCDF4 packaging \
74
- ipython make myst-parser geopandas \
74
+ build ipython make myst-parser geopandas \
75
75
sphinx sphinx-copybutton sphinx-gallery sphinx_rtd_theme
76
76
77
77
# Show installed pkg information for postmortem diagnostic
99
99
# Install the package that we want to test
100
100
- name : Install the package
101
101
run : |
102
- python setup.py sdist --formats=zip
102
+ python -m build --sdist
103
103
pip install dist/*
104
104
105
105
# Build the documentation
Original file line number Diff line number Diff line change 96
96
mamba install gmt=6.3.0 numpy=${{ matrix.numpy-version }} \
97
97
pandas xarray netCDF4 packaging \
98
98
${{ matrix.optional-packages }} \
99
- dvc make pytest>=6.0 \
99
+ build dvc make pytest>=6.0 \
100
100
pytest-cov pytest-doctestplus pytest-mpl sphinx-gallery tomli
101
101
102
102
# Show installed pkg information for postmortem diagnostic
@@ -130,7 +130,7 @@ jobs:
130
130
# Install the package that we want to test
131
131
- name : Install the package
132
132
run : |
133
- python setup.py sdist --formats=zip
133
+ python -m build --sdist
134
134
pip install dist/*
135
135
136
136
# Run the tests
Original file line number Diff line number Diff line change 92
92
geopandas ghostscript libnetcdf hdf5 zlib curl pcre make
93
93
pip install --pre --prefer-binary \
94
94
numpy pandas xarray netCDF4 packaging \
95
- dvc ipython 'pytest>=6.0' pytest-cov \
95
+ build dvc ipython 'pytest>=6.0' pytest-cov \
96
96
pytest-doctestplus pytest-mpl sphinx-gallery tomli
97
97
98
98
# Pull baseline image data from dvc remote (DAGsHub)
@@ -131,11 +131,10 @@ jobs:
131
131
touch ~/.gmt/server/gmt_data_server.txt ~/.gmt/server/gmt_hash_server.txt
132
132
ls -lhR ~/.gmt
133
133
134
-
135
134
# Install the package that we want to test
136
135
- name : Install the package
137
136
run : |
138
- python setup.py sdist --formats=zip
137
+ python -m build --sdist
139
138
pip install dist/*
140
139
141
140
- name : Add GMT's bin to PATH (Linux/macOS)
Original file line number Diff line number Diff line change 34
34
python-version : ' 3.10'
35
35
36
36
- name : Install dependencies
37
- run : python -m pip install setuptools wheel
37
+ run : python -m pip install build
38
38
39
39
# This step is only necessary for testing purposes and for TestPyPI
40
40
- name : Fix up version string for TestPyPI
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ install:
29
29
pip install --no-deps -e .
30
30
31
31
package :
32
- python setup.py sdist bdist_wheel
32
+ python -m build -- sdist --wheel
33
33
34
34
test :
35
35
# Run a tmp folder to make sure the tests are run on the installed version
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ dependencies:
14
14
# Optional dependencies
15
15
- geopandas
16
16
# Development dependencies (general)
17
+ - build
17
18
- dvc
18
19
- ipython
19
20
- jupyter
You can’t perform that action at this time.
0 commit comments