Package Details: python-cartopy 0.24.1-1

Git Clone URL: https://aur.archlinux.org/python-cartopy.git (read-only, click to copy)
Package Base: python-cartopy
Description: A cartographic Python library with Matplotlib support for visualisation
Upstream URL: https://scitools.org.uk/cartopy/
Licenses: BSD-3-Clause
Submitter: gauteh
Maintainer: gauteh (bcb)
Last Packager: bcb
Votes: 10
Popularity: 0.000001
First Submitted: 2015-11-16 16:00 (UTC)
Last Updated: 2024-11-22 12:04 (UTC)

Pinned Comments

bcb commented on 2023-12-08 10:48 (UTC)

The currently enabled tests pass (repeatedly) for me in a clean chroot. I am reluctant to disable too many tests in the PKGBUILD, especially when I cannot reproduce the failures and make sure I am disabling the correct test for a build failure reported by somebody else. For now, if you run into failures you may have to build with --nocheck. I am hoping to make the checks more robust -- suggestions welcome!

Latest Comments

1 2 3 4 Next › Last »

hansc commented on 2025-06-16 09:32 (UTC)

I had to change "dist/Cartopy-$pkgver-"*.whl to "dist/cartopy-$pkgver-"*.whl to make it build (lines 62 and 77 in PKGBUILD).

Auerhuhn commented on 2024-04-12 10:22 (UTC)

Hi gauteh,

Upstream has now released v0.23.0.

Suggested patch for the PKGBUILD: https://salsa.debian.org/-/snippets/709

You can apply the patch to this PKGBUILD if you like:

curl -LO https://salsa.debian.org/-/snippets/709/raw/main/python-cartopy-0.23.0-1.patch
less python-cartopy-0.23.0-1.patch
patch -p1 < python-cartopy-0.23.0-1.patch

Regards
Claudia

Auerhuhn commented on 2024-04-10 11:43 (UTC) (edited on 2024-04-12 10:23 (UTC) by Auerhuhn)

Update: Superseded as upstream has released version 0.23.0.


There are new test failures, see upstream PR #2365.

I have uploaded a patch for this PKGBUILD: https://salsa.debian.org/-/snippets/708

You can apply the patch to this PKGBUILD if you like:

curl -LO https://salsa.debian.org/-/snippets/708/raw/main/python-cartopy-0.22.0-2.patch
less python-cartopy-0.22.0-2.patch
git apply python-cartopy-0.22.0-2.patch

Regards
Claudia

DeltaV commented on 2024-04-03 18:23 (UTC) (edited on 2024-04-03 18:30 (UTC) by DeltaV)

One more data point. I tried to update to v0.22 today and received the following error:

Successfully built Cartopy-0.22.0-cp311-cp311-linux_x86_64.whl
==> Starting check()...
ImportError while loading conftest '/home/dkruse/.cache/paru/clone/python-cartopy/src/Cartopy-0.22.0/build/lib.linux-x86_64-cpython-311/cartopy/tests/conftest.py'.
cartopy/__init__.py:108: in <module>superbolide
import cartopy.feature  # noqa: E402,F401  (unused import)
cartopy/feature/__init__.py:19: in <module>
import cartopy.io.shapereader as shapereader
cartopy/io/shapereader.py:35: in <module>
import shapefile
E   ModuleNotFoundError: No module named 'shapefile'
==> ERROR: A failure occurred in check().
Aborting...
error: failed to build 'python-cartopy-0.22.0-1':
error: packages failed to build: python-cartopy-0.22.0-1

I have python-pyshp installed. I was able to install this package using --nocheck.

Nestor_013 commented on 2023-12-08 12:12 (UTC)

Builds fine including tests (with some warnings) for me too. Thx.

MarsSeed commented on 2023-12-08 11:45 (UTC)

It builds and installs fine for me.

One polite request: please kindly remove the tests dir from the package by adding the lines marked with +:

 package() {
     cd "$_pypi-$pkgver"
     python -m installer --destdir="$pkgdir" dist/*.whl
+
+    echo 'Removing tests dir from package...'
+    local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+    rm -rv "${pkgdir}${site_packages}/cartopy/tests"
 }

bcb commented on 2023-12-08 10:48 (UTC)

The currently enabled tests pass (repeatedly) for me in a clean chroot. I am reluctant to disable too many tests in the PKGBUILD, especially when I cannot reproduce the failures and make sure I am disabling the correct test for a build failure reported by somebody else. For now, if you run into failures you may have to build with --nocheck. I am hoping to make the checks more robust -- suggestions welcome!

bcb commented on 2023-12-08 10:48 (UTC)

Sorry for the delay, somehow this package fell off my radar (and off my nvchecker configuration).

Nestor_013 commented on 2023-09-08 08:07 (UTC)

For those of you who are missing this package, I've made a crude but working PKGBUILD for version 0.22

https://gist.github.com/nestor013/b83456893bd7c7789c2790638027929a#file-pkgbuild