Skip to content

Commit

Permalink
Merge branch 'hotfix-1.3.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
molinav committed Feb 10, 2022
2 parents 60bc19d + 0981b58 commit cbbc2e4
Show file tree
Hide file tree
Showing 28 changed files with 324 additions and 257 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/basemap-data-hires.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,11 @@ jobs:
name: checkout
path: .
-
name: Build wheel
name: Build sdist and wheel
run: |
cd ${{ env.PKGDIR }}
python setup.py sdist bdist_wheel --universal
python setup.py sdist
pip wheel -w dist --no-deps dist/*.zip
-
name: Upload build artifacts
uses: actions/upload-artifact@v1
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/basemap-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,11 @@ jobs:
name: checkout
path: .
-
name: Build wheel
name: Build sdist and wheel
run: |
cd ${{ env.PKGDIR }}
python setup.py sdist bdist_wheel --universal
python setup.py sdist
pip wheel -w dist --no-deps dist/*.zip
-
name: Upload build artifacts
uses: actions/upload-artifact@v1
Expand Down
29 changes: 7 additions & 22 deletions .github/workflows/basemap-for-manylinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,38 +109,23 @@ jobs:
apt-get update
apt-get install -y gcc g++ make
-
name: Install unzip
run: |
apt-get update
apt-get install -y unzip
-
name: Generate NumPy headers
name: Build old numpy from source
run: |
case "${{ matrix.python-version }}" in
2.6|3.[23]) pkgvers=1.11.3;;
2.7|3.[456789]) pkgvers=1.16.6;;
*) pkgvers=1.21.4;;
esac
pkgname=numpy
pkgcode=numpy-${pkgvers}
python -m pip install cython
python -m pip download --no-binary=numpy "numpy == ${pkgvers}"
unzip ${pkgcode}.zip
rm -f ${pkgcode}.zip
cd ${pkgcode}
python setup.py build
cp build/src*/numpy/core/include/numpy/*.h numpy/core/include/numpy/
cd ..
cp -R ${pkgcode}/numpy/core/include ${{ env.PKGDIR }}/extern
rm -rf ${pkgcode}
pip install "numpy == ${pkgvers}"
-
name: Build wheel
run: |
sitepkgdir=$(pip show numpy 2>/dev/null | grep Location: | cut -d' ' -f2)
export GEOS_DIR="${GITHUB_WORKSPACE}/${{ env.PKGDIR }}/extern"
export NUMPY_INCLUDE_PATH=${sitepkgdir}/numpy/core/include
cd ${{ env.PKGDIR }}
export GEOS_DIR=extern
export NUMPY_INCLUDE_PATH=extern/include
pip install -r requirements-setup.txt
python setup.py sdist bdist_wheel
python setup.py sdist
pip wheel -w dist --no-deps dist/*.zip
-
name: Upload build artifacts
uses: actions/upload-artifact@v1
Expand Down
73 changes: 27 additions & 46 deletions .github/workflows/basemap-for-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,22 +61,22 @@ jobs:
name: checkout
path: .
-
name: Set Python
uses: actions/setup-python@v2
with:
architecture: ${{ matrix.arch }}
python-version: "3.6"
-
name: Setup MSVC toolset
name: Set MSVC toolset
uses: pylegacy/actions/setup-msvc@v1
with:
architecture: ${{ matrix.arch }}
version: ${{ matrix.msvc-toolset }}
-
name: Install CMake
name: Set CMake
uses: jwlawson/[email protected]
with:
cmake-version: ${{ matrix.cmake-version }}
-
name: Set Python
uses: actions/setup-python@v2
with:
architecture: ${{ matrix.arch }}
python-version: "3.6"
-
name: Build GEOS from source
run: |
Expand Down Expand Up @@ -107,12 +107,6 @@ jobs:
with:
name: checkout
path: .
-
name: Set Python
uses: actions/setup-python@v2
with:
architecture: ${{ matrix.arch }}
python-version: ${{ matrix.python-version }}
-
name: Set MSVC toolset version
run: |
Expand All @@ -122,52 +116,45 @@ jobs:
echo "msvc-toolset=14.16" >> $env:GITHUB_ENV
}
-
name: Setup MSVC toolset
name: Set MSVC toolset
uses: pylegacy/actions/setup-msvc@v1
with:
architecture: ${{ matrix.arch }}
version: ${{ env.msvc-toolset }}
-
name: Install Python base packages
name: Set Python
uses: actions/setup-python@v2
with:
architecture: ${{ matrix.arch }}
python-version: ${{ matrix.python-version }}
-
name: Set Python base packages
run: |
python -m pip install --upgrade pip setuptools wheel
-
name: Generate NumPy headers
name: Build old numpy from source
run: |
if ("${{ matrix.python-version }}" -In "2.6", "3.2", "3.3") {
Set-Variable -Name "pkgvers" -Value "1.11.3"
} elseif ("${{ matrix.python-version }}" -In "2.7", "3.4", "3.5", "3.6", "3.7", "3.8", "3.9") {
Set-Variable -Name "pkgvers" -Value "1.16.6"
} else {
Set-Variable -Name "pkgvers" -Value "1.21.4"
Switch -regex ("${{ matrix.python-version }}") {
"^2\.6|3\.[123]$" { Set-Variable -Name "pkgvers" -Value "1.11.3" }
"^2\.7|3\.[456789]$" { Set-Variable -Name "pkgvers" -Value "1.16.6" }
default { Set-Variable -Name "pkgvers" -Value "1.21.4" }
}
Set-Variable -Name "pkgname" -Value "numpy"
Set-Variable -Name "pkgcode" -Value "numpy-${pkgvers}"
Set-Variable -Name "includedir" -Value "numpy/core/include"
python -m pip install cython
python -m pip download --no-binary=numpy "numpy == ${pkgvers}"
tar -xf "${pkgcode}.zip"
rm "${pkgcode}.zip"
cd "${pkgcode}"
python setup.py build
cp -R build/src.*/${includedir}/numpy/*.h ${includedir}/numpy
cd ..
cp -R "${pkgcode}/${includedir}/numpy" "${{ env.PKGDIR }}/extern/include/numpy"
rm -r "${pkgcode}"
$env:SETUPTOOLS_USE_DISTUTILS = "stdlib"
python -m pip install "numpy == ${pkgvers}"
-
name: Download GEOS artifacts
uses: actions/download-artifact@v1
with:
name: artifacts-geos-${{ matrix.arch }}-msvc${{ env.msvc-toolset }}
path: ${{ env.PKGDIR }}/extern
-
name: Build wheel
name: Build sdist and wheel
run: |
cd ${{ env.PKGDIR }}
$env:GEOS_DIR = "extern"
$env:NUMPY_INCLUDE_PATH = "extern/include"
$env:GEOS_DIR = "$env:GITHUB_WORKSPACE/${{ env.PKGDIR }}/extern"
pip install -r requirements-setup.txt
python setup.py sdist bdist_wheel
python setup.py sdist
pip wheel -w dist --no-deps (Get-Item dist/*.zip)
-
name: Upload build artifacts
uses: actions/upload-artifact@v1
Expand All @@ -187,12 +174,6 @@ jobs:
needs: build
runs-on: windows-latest
steps:
-
name: Download checkout
uses: actions/download-artifact@v1
with:
name: checkout
path: .
-
name: Set Python
uses: actions/setup-python@v2
Expand Down
21 changes: 11 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,39 +1,40 @@
.eggs
build
dist
.eggs
*.egg-info
*.pyc
*.pyd
*.so
*.c

doc/build
doc/source/_autosummary

htmlcov
.cache
.coverage
.pytest_cache

# File manager files.
.gdb_history
.DS_Store
.DS_Store?
ehthumbs.db
Icon?
Thumbs.db

# Temporary files.
.#*
[#]*#
*~
*$
*.bak

# IDE files.
.project
.pydevproject
.vscode

# Things specific to this project.
examples/*.png
*.pickle
doc/examples
doc/_templates/gallery.html
doc/users/installing.rst
doc/_static/matplotlibrc
examples/*.png
packages/basemap/doc/examples
packages/basemap/doc/users/installing.rst
packages/basemap/doc/_static/matplotlibrc
packages/basemap/doc/_templates/gallery.html
Loading

0 comments on commit cbbc2e4

Please sign in to comment.